DRCL J-Sim API

drcl.inet.mac
Class PositionReportContract.Message

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

public static class PositionReportContract.Message
extends Message

The position report message.


Constructor Summary
PositionReportContract.Message()
           
PositionReportContract.Message(double X_, double Y_, double Z_)
          This is only used while MobilityModel responding WirelessPhy's query and reporting its own position.
PositionReportContract.Message(long nid_, double X_, double Y_, double Z_, double X0_, double Y0_, double Z0_)
          Constructor
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 Contract getContract()
          Returns the associated contract of this message.
 long getNid()
           
 double getX()
           
 double getX0()
           
 double getY()
           
 double getY0()
           
 double getZ()
           
 double getZ0()
           
 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

PositionReportContract.Message

public PositionReportContract.Message()

PositionReportContract.Message

public PositionReportContract.Message(long nid_,
                                      double X_,
                                      double Y_,
                                      double Z_,
                                      double X0_,
                                      double Y0_,
                                      double Z0_)
Constructor

Parameters:
nid_ - the node Id
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
X0_ - the x coordinate of the node previous position
Y0_ - the y coordinate of the node previous position
Z0_ - the z coordinate of the node previous position

PositionReportContract.Message

public PositionReportContract.Message(double X_,
                                      double Y_,
                                      double Z_)
This is only used while MobilityModel responding WirelessPhy's query and reporting its own position.

Method Detail

getNid

public long getNid()

getX

public double getX()

getY

public double getY()

getZ

public double getZ()

getX0

public double getX0()

getY0

public double getY0()

getZ0

public double getZ0()

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 ~