com.sentilla.platform.cmote
Class ClientRadioProtocol.Sender

java.lang.Object
  extended by com.sentilla.platform.cmote.DispatcherAction
      extended by com.sentilla.platform.cmote.Sender
          extended by com.sentilla.platform.cmote.ClientRadioProtocol.Sender
All Implemented Interfaces:
Sender, Action
Enclosing class:
ClientRadioProtocol

public static class ClientRadioProtocol.Sender
extends Sender

Provides sender class for the simulated radio.

See Also:
Sender

Field Summary
 long timestamp
           
 
Fields inherited from class com.sentilla.platform.cmote.Sender
address, data, nextData, protocol
 
Fields inherited from class com.sentilla.platform.cmote.DispatcherAction
actionState
 
Fields inherited from interface com.sentilla.system.Action
DONE, ERROR, IDLE, PENDING
 
Constructor Summary
ClientRadioProtocol.Sender()
          Provides initialization for Sender.
 
Method Summary
 void setAddress(Addressable addr)
          Sets the destination address.
 Action submit()
          Submits this for processing, returns true if succeeded.
 
Methods inherited from class com.sentilla.platform.cmote.Sender
send, setDone, setSend, subsubmit
 
Methods inherited from class com.sentilla.platform.cmote.DispatcherAction
block, block, cancel, getActionState, isDone, subcancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sentilla.system.Action
block, block, cancel, getActionState, isDone
 

Field Detail

timestamp

public long timestamp
Constructor Detail

ClientRadioProtocol.Sender

public ClientRadioProtocol.Sender()
Provides initialization for Sender.

See Also:
Sender
Method Detail

setAddress

public void setAddress(Addressable addr)
Description copied from class: Sender
Sets the destination address. Any valid object implementing the Addressable interface can be set as the destination address. The protocols extending this class should throw an error if the address object is not supported.

Specified by:
setAddress in interface Sender
Specified by:
setAddress in class Sender
Parameters:
addr - object implementing Addressable interface to be used as address
See Also:
Addressable

submit

public Action submit()
Description copied from class: DispatcherAction
Submits this for processing, returns true if succeeded. Used by the Sender and Receiver to implement the system Action interface. Classes deriving from DispatcherAction must implement the subsubmit() method.

Specified by:
submit in interface Action
Overrides:
submit in class DispatcherAction
Returns:
the DispatcherAction object.
See Also:
Action


Copyright © 2007 Sentilla Corporation. All Rights Reserved.