|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.system.DriverAdapter
com.sentilla.platform.tmote.Protocol
com.sentilla.platform.tmote.LoopBackProtocol
public class LoopBackProtocol
Provides Loopback protocol for sending messages to self or other applications running on the mote.
Protocol
Nested Class Summary | |
---|---|
static class |
LoopBackProtocol.LoopBackReceiver
Provides the receiver implementation for the loop back protocol. |
static class |
LoopBackProtocol.LoopBackSender
Provides the sender implementation for the loop back protocol. |
Field Summary |
---|
Fields inherited from class com.sentilla.system.DriverAdapter |
---|
m_nextDriver |
Constructor Summary | |
---|---|
LoopBackProtocol()
Provides instantiation of the LoopBackProtocol. |
Method Summary | |
---|---|
boolean |
doesInstanceMatch(Object obj)
Provided for compatability with Protocol. |
String |
getDriverName(int n)
Returns "loopback". |
Receiver |
newReceiver()
Creates a new LoopBackProtocol receiver. |
Sender |
newSender()
Creates a new LoopBackProtocol sender. |
void |
stackReceive(Receiver rcvr)
Do not use. |
void |
stackSend(Sender sender)
Sends a message to user applications. |
Methods inherited from class com.sentilla.system.DriverAdapter |
---|
getNextDriver, setNextDriver |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoopBackProtocol()
Method Detail |
---|
public void stackReceive(Receiver rcvr)
stackReceive
in class Protocol
rcvr
- the Receiver object containing the object receivedDispatcher
public void stackSend(Sender sender)
stackSend
in class Protocol
sender
- Sender object containing the object to sendDispatcher
public Sender newSender()
newSender
in class Protocol
LoopBackProtocol.LoopBackSender
public Receiver newReceiver()
newReceiver
in class Protocol
Receiver
public boolean doesInstanceMatch(Object obj)
doesInstanceMatch
in class Protocol
obj
- object to evaluate
public String getDriverName(int n)
getDriverName
in interface Driver
getDriverName
in class DriverAdapter
n
- index of the LoopBackProtocol string name
Driver
,
Drivers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |