Class Subnode

  extended by org.mbari.siam.distributed.Subnode
All Implemented Interfaces:
Direct Known Subclasses:

public class Subnode
extends java.lang.Object

This class represents a subnode. A subnode periodically contacts its parent node. The 'contact time' is the time the parent node last had contact from the subnode, expressed in msec since epoch.

See Also:
Serialized Form

Field Summary
protected _address
protected  long _contactTimestamp
protected  long _deviceID
Constructor Summary
Subnode( address, long t, long deviceID)
Method Summary getAddress()
          Get subnode's address
 long getContactTime()
          Get time of most recent contact from subnode.
 void setContactTime(long t)
          Set time of most recent contact from subnode.
 java.lang.String toString()
          Output String representation.
 void update(long contactTime, NodeNotifyMessage info)
          Update subnode fields
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


protected _address


protected long _contactTimestamp


protected long _deviceID
Constructor Detail


public Subnode( address,
               long t,
               long deviceID)
Method Detail


public getAddress()
Get subnode's address


public void setContactTime(long t)
Set time of most recent contact from subnode.


public long getContactTime()
Get time of most recent contact from subnode.


public void update(long contactTime,
                   NodeNotifyMessage info)
Update subnode fields


public java.lang.String toString()
Output String representation.

toString in class java.lang.Object

Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.