com.sentilla.platform.tmote
Class MimeoMessage

java.lang.Object
  extended by com.sentilla.net.mimeo.MimeoImage
      extended by com.sentilla.net.mimeo.RamByteImage
          extended by com.sentilla.platform.tmote.MimeoMessage

public class MimeoMessage
extends RamByteImage

Viral dissemination protocol for sending messages from a client application to a mote network.

This is the mote mimeo message type that is used to receive messages. This class is not available to application developers.

The mimeo dissemination protocol is a viral dissemination protocol. It will transmit messages to a network and they will be maintained in that network until replaced. If a new mote enters the network after a message has been disseminated, that message will be disseminated to the new mote. These messages constantly persist in the network, and will continue being disseminated to new motes as long as the message exists in the network. However, if a message is replaced by sending a new message, the old message can not be guaranteed to be disseminated to new motes.

It can take up to 40 seconds per hop for a message to be disseminated with this protocol. Care should be taken not to transmit message too quickly. If a message is replaced before the old message has reached all the motes then there is a possibility that some motes may not received the old message.

The protocol does not make any guarantees about what order messages will be received in. It is possible that messages will be received out of order.

The available payload for this protocol is 70 bytes.

This protocol supports the BroadcastAddress class and the Mac64Address class.

See Also:
Protocol, Mac64Address, BroadcastAddress

Field Summary
 Dispatcher ds
           
 Addressable id
           
static int IMAGE_TYPE
           
 int imgnum
           
 Leds leds
           
 
Fields inherited from class com.sentilla.net.mimeo.RamByteImage
data
 
Fields inherited from class com.sentilla.net.mimeo.MimeoImage
datacount, pagedone, version
 
Constructor Summary
MimeoMessage(int imgnum)
           
 
Method Summary
protected  void completed()
           
static MimeoImageFactory getFactory()
           
 
Methods inherited from class com.sentilla.net.mimeo.RamByteImage
getLength, newImage, readBytes, writeBytes
 
Methods inherited from class com.sentilla.net.mimeo.MimeoImage
compareVersion, getImgnum, getNumRequestsToComplete, getTimeMillisToComplete, getVersion, invalidate, isComplete, isPageComplete, newImageVersion, setAllComplete, setPageComplete, writePage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_TYPE

public static final int IMAGE_TYPE
See Also:
Constant Field Values

imgnum

public int imgnum

ds

public Dispatcher ds

id

public Addressable id

leds

public Leds leds
Constructor Detail

MimeoMessage

public MimeoMessage(int imgnum)
Method Detail

getFactory

public static MimeoImageFactory getFactory()

completed

protected void completed()
Overrides:
completed in class MimeoImage


Copyright © 2007 Sentilla Corporation. All Rights Reserved.