|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlrw.msg.org.MessageFormater
Constructor Summary | |
---|---|
MessageFormater()
|
Method Summary | |
---|---|
void |
attach(Observer observer)
each observer object that wants to register himself by a subject has to call the attach function, otherwise the subject will not be able to inform it when that state in our when it receives an new message |
void |
createInitMsg()
creates the init message that is used to initialize the mote network |
void |
fireUpdate()
informs the observer object on receiving new messages from the motes |
FodesyMsg |
getFodesyMsg()
|
net.tinyos.message.MoteIF |
getMote()
|
java.lang.String[] |
getMoteData()
will be called by the controller on update and sends the data array to the gui |
void |
messageReceived(int dstaddr,
net.tinyos.message.Message msg)
notifies MessageFormater when a new message has been received (non-Javadoc) |
void |
sendMsg(FodesyMsg message)
sends a message to the mote connected to the pc |
void |
setMoteData(java.lang.String[] data)
sets the data that will be displayed afterwards by the gui into moteData array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageFormater()
Method Detail |
public void attach(Observer observer)
attach
in interface Subject
observer
- public void fireUpdate()
fireUpdate
in interface Subject
public void messageReceived(int dstaddr, net.tinyos.message.Message msg)
messageReceived
in interface net.tinyos.message.MessageListener
MessageListener.messageReceived(int,
net.tinyos.message.Message)
public void sendMsg(FodesyMsg message)
message
- public void createInitMsg()
public void setMoteData(java.lang.String[] data)
public java.lang.String[] getMoteData()
getMoteData
in interface Subject
public net.tinyos.message.MoteIF getMote()
public FodesyMsg getFodesyMsg()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |