DRCL J-Sim API

drcl.inet.mac
Class NeighborQueryContract.Message

java.lang.Object
  extended bydrcl.comp.Message
      extended bydrcl.inet.mac.NeighborQueryContract.Message
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable
Enclosing class:
NeighborQueryContract

public static class NeighborQueryContract.Message
extends Message


Constructor Summary
NeighborQueryContract.Message()
           
NeighborQueryContract.Message(long[] nodeList_)
          Construct.
NeighborQueryContract.Message(long nid_, double X_, double Y_, double Z_)
          Constructor.
NeighborQueryContract.Message(long nid_, double X_, double Y_, double Z_, int nGrids_)
          Constructor.
NeighborQueryContract.Message(long nid_, double X_, double Y_, double Z_, long[] nodeList_, int nGrids_)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 Contract getContract()
          Returns the associated contract of this message.
 int getnGrids()
          Gets nGrids
 long getNid()
          Gets the node id
 long[] getNodeList()
          Gets node list in the message
 double getX()
          Gets the X coordinate
 double getY()
          Gets the Y coordinate
 double getZ()
          Gets the Z coordinate
 java.lang.String toString(java.lang.String separator_)
          Prints the content of the message by separating each field with the separator string.
 
Methods inherited from class drcl.comp.Message
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NeighborQueryContract.Message

public NeighborQueryContract.Message()

NeighborQueryContract.Message

public NeighborQueryContract.Message(long nid_,
                                     double X_,
                                     double Y_,
                                     double Z_)
Constructor. Assumes nGrids is 1.

Parameters:
nid_ - the id of the querying node.
X_ - the x coordinate of the node current position.
Y_ - the y coordinate of the node current position.
Z_ - the z coordinate of the node current position.

NeighborQueryContract.Message

public NeighborQueryContract.Message(long nid_,
                                     double X_,
                                     double Y_,
                                     double Z_,
                                     int nGrids_)
Constructor.

Parameters:
nid_ - the id of the querying node.
X_ - the x coordinate of the node current position.
Y_ - the y coordinate of the node current position.
Z_ - the z coordinate of the node current position.

NeighborQueryContract.Message

public NeighborQueryContract.Message(long[] nodeList_)
Construct. Constructs a reply message containning only a node list.

Parameters:
nodeList_ - the list of all neighbour node id.

NeighborQueryContract.Message

public NeighborQueryContract.Message(long nid_,
                                     double X_,
                                     double Y_,
                                     double Z_,
                                     long[] nodeList_,
                                     int nGrids_)
Constructor. Constructs a message

Parameters:
nid_ - the node id
X_ - the X coordinate of the querying node
Y_ - the Y coordinate of the querying node
Z_ - the Z coordinate of the querying node
nodeList_ - the id list of all neighbour nodes
nGrids_ - the value of nGrids
Method Detail

getNid

public long getNid()
Gets the node id


getX

public double getX()
Gets the X coordinate


getY

public double getY()
Gets the Y coordinate


getZ

public double getZ()
Gets the Z coordinate


getnGrids

public int getnGrids()
Gets nGrids


getNodeList

public long[] getNodeList()
Gets node list in the message


clone

public java.lang.Object clone()
Description copied from interface: ObjectCloneable
Returns a clone of this object.

Specified by:
clone in interface ObjectCloneable
Specified by:
clone in class Message

getContract

public Contract getContract()
Description copied from class: Message
Returns the associated contract of this message.

Specified by:
getContract in class Message

toString

public java.lang.String toString(java.lang.String separator_)
Description copied from class: Message
Prints the content of the message by separating each field with the separator string.

Specified by:
toString in class Message

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~