|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
br.org.fito.j8051.micro.MicroFarejadorSender
public abstract class MicroFarejadorSender
Class thats represents a process in the microcontroler. This class have the objective to provide for the classes that will henriret it, some functions for the treatement of the processo in the microcontroler. Theses functions are: * Automatic post of messages for the microcontroler. * Treatement for microcontroler`s message response referencing a given process. Classe que representa um processo no microcontrolador. Esta classe tem a funçào de prover as classes que vão herda-las, uma série de funcionalidades para o tratamento do processo do microcontrolador. Estas funcionalidades são: * Envio automático de mensagens para o microcontrolador; * Tratamento do recebimento das mensagens de resposta do microcontrolador referente ao processo indicado.
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
MicroFarejadorSender()
Creates a new instance of MicroFarejadorSender Cria uma nova instância de MicroFarejadorSender |
|
MicroFarejadorSender(int processo,
long tempoEspera,
int prioridade,
java.lang.String mensagem)
Creates a new instance of MicroFarejadorSender given a process, wait time, priority and parameter message. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getMensagem()
|
int |
getPrioridade()
|
int |
getProcesso()
|
long |
getTempoEspera()
|
abstract void |
receberMensagem(java.lang.String msg)
|
void |
run()
Override Thread`s method that, given a time frequency, send a message for the microcontroler connected. |
void |
setBluetoothConnection(BluetoothConnection bluetoothConnection)
set a BluetoothConnection object for the communication between the Sender(this class) and the microcontroler. |
void |
setContinuaEnviando(boolean continuaEnviando)
Inform if the Sender(this class) have continue to send messages or not for the microcontroler. |
void |
setMensagem(java.lang.String mensagem)
|
void |
setPrioridade(int prioridade)
|
void |
setProcesso(int processo)
|
void |
setTempoEspera(long tempoEspera)
|
Methods inherited from class java.lang.Thread |
---|
activeCount, currentThread, getPriority, isAlive, join, setPriority, sleep, start, toString, yield |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MicroFarejadorSender()
public MicroFarejadorSender(int processo, long tempoEspera, int prioridade, java.lang.String mensagem)
Method Detail |
---|
public abstract void receberMensagem(java.lang.String msg) throws J8051Exception
J8051Exception
public void setBluetoothConnection(BluetoothConnection bluetoothConnection)
bluetoothConnection
- public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setContinuaEnviando(boolean continuaEnviando)
continuaEnviando
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public long getTempoEspera()
public void setTempoEspera(long tempoEspera)
public java.lang.String getMensagem()
public void setMensagem(java.lang.String mensagem)
public int getProcesso()
public void setProcesso(int processo)
public int getPrioridade()
public void setPrioridade(int prioridade)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |