|
||||||||||
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
public abstract class Protocol
Provides the template that message protocols must follow.
Abstract class for creating a new messaging protocol. Protocols must
extend this class. To use the a new protocol, it must be registered
as a Driver
on the platform.
Dispatcher
,
DriverAdapter
,
Drivers
Field Summary |
---|
Fields inherited from class com.sentilla.system.DriverAdapter |
---|
m_nextDriver |
Constructor Summary | |
---|---|
Protocol()
|
Method Summary | |
---|---|
abstract boolean |
doesInstanceMatch(Object obj)
Checks if input object matches class type of implementing protocols messages. |
abstract Receiver |
newReceiver()
Creates a new receiver. |
abstract Sender |
newSender()
Creates a new sender. |
abstract void |
stackReceive(Receiver rcvr)
Processes a message sent with the implementing protocol. |
abstract void |
stackSend(Sender s)
Processes a message to send with the implementing protocol. |
Methods inherited from class com.sentilla.system.DriverAdapter |
---|
getDriverName, getNextDriver, setNextDriver |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Protocol()
Method Detail |
---|
public abstract void stackReceive(Receiver rcvr)
Dispatcher.dispatch( Receiver rcvr )
.
rcvr
- Receiver object containing received objectReceiver
public abstract void stackSend(Sender s)
Dispatcher
and by protocols. Sends
objects with the implementing protocol.
s
- Sender object containing the object to be sent.Dispatcher
,
Sender
public abstract Sender newSender()
Sender
public abstract Receiver newReceiver()
Receiver
public abstract boolean doesInstanceMatch(Object obj)
obj
- received object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |