sidnet.stack.std.routing.heartbeat
Class MessageHeartbeat

java.lang.Object
  extended by sidnet.stack.std.routing.heartbeat.MessageHeartbeat
All Implemented Interfaces:
JistAPI.Timeless, Message
Direct Known Subclasses:
RoutingMsg

public class MessageHeartbeat
extends java.lang.Object
implements Message


Field Summary
static boolean UNREGISTER
           
 
Fields inherited from interface jist.swans.misc.Message
NULL
 
Constructor Summary
MessageHeartbeat()
           
MessageHeartbeat(boolean unregister)
          Creates a new instance of MessageHeartbeat
 
Method Summary
 void getBytes(byte[] b, int offset)
          Store packet into byte array.
 NCS_Location2D getNCS_Location()
           
 int getSize()
          Return packet size or Constants.ZERO_WIRE_SIZE.
 boolean isUnregistering()
           
 void setNCS_Location(NCS_Location2D loc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNREGISTER

public static final boolean UNREGISTER
See Also:
Constant Field Values
Constructor Detail

MessageHeartbeat

public MessageHeartbeat(boolean unregister)
Creates a new instance of MessageHeartbeat


MessageHeartbeat

public MessageHeartbeat()
Method Detail

getNCS_Location

public NCS_Location2D getNCS_Location()

setNCS_Location

public void setNCS_Location(NCS_Location2D loc)

getSize

public int getSize()
Return packet size or Constants.ZERO_WIRE_SIZE.

Specified by:
getSize in interface Message
Returns:
packet size [in bytes]

getBytes

public void getBytes(byte[] b,
                     int offset)
Store packet into byte array.

Specified by:
getBytes in interface Message
Parameters:
b - destination byte array
offset - byte array starting offset

isUnregistering

public boolean isUnregistering()