com.sentilla.platform.tmote
Class CC2420Radio.Sender

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

public static class CC2420Radio.Sender
extends Sender

Provides sender class for the CC2420 radio. This sender supports the BroadcastAddress and Mac64Address.

See Also:
Sender, BroadcastAddress, Mac64Address

Field Summary
 int port
           
 int timestamp
           
 
Fields inherited from class com.sentilla.platform.tmote.Sender
address, data, protocol
 
Fields inherited from class com.sentilla.platform.tmote.DispatcherAction
actionState
 
Fields inherited from interface com.sentilla.system.Action
DONE, ERROR, IDLE, PENDING
 
Constructor Summary
CC2420Radio.Sender()
          Provides initialization for CC2420Radio.Sender and defaults address to ByteMessage.BROADCAST and port to 249.
 
Method Summary
 void setAddress(Addressable addr)
          Sets the destination address.
 
Methods inherited from class com.sentilla.platform.tmote.Sender
send, setDone, setSend, subsubmit
 
Methods inherited from class com.sentilla.platform.tmote.DispatcherAction
block, block, cancel, getActionState, isDone, subcancel, submit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sentilla.system.Action
block, block, cancel, getActionState, isDone, submit
 

Field Detail

port

public int port

timestamp

public int timestamp
Constructor Detail

CC2420Radio.Sender

public CC2420Radio.Sender()
Provides initialization for CC2420Radio.Sender and defaults address to ByteMessage.BROADCAST and port to 249.

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


Copyright © 2007 Sentilla Corporation. All Rights Reserved.