DRCL J-Sim API

drcl.inet.mac
Class NodeChannelContract.Message

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

public static class NodeChannelContract.Message
extends Message

The message class which is defined for exchanging information between Node and Channel components.


Field Summary
 double Gt
          The sender's antenna gain
 long nid
          The sender's node id
 double Pt
          The sender's transmission power
 double X
          The x coordinate of the sender's position
 double Y
          The y coordinate of the sender's position
 double Z
          The z coordinate of the sender's position
 
Constructor Summary
NodeChannelContract.Message()
           
NodeChannelContract.Message(long nid_, double X_, double Y_, double Z_, double Pt_, double Gt_, java.lang.Object pkt_)
          Constructs a message
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 Contract getContract()
          Returns the associated contract of this message.
 double getGt()
          Gets the channel gain
 long getNid()
          Gets the node id
 java.lang.Object getPkt()
          Gets the packet
 double getPt()
          Gets the transmission power
 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
 

Field Detail

nid

public long nid
The sender's node id


X

public double X
The x coordinate of the sender's position


Y

public double Y
The y coordinate of the sender's position


Z

public double Z
The z coordinate of the sender's position


Pt

public double Pt
The sender's transmission power


Gt

public double Gt
The sender's antenna gain

Constructor Detail

NodeChannelContract.Message

public NodeChannelContract.Message()

NodeChannelContract.Message

public NodeChannelContract.Message(long nid_,
                                   double X_,
                                   double Y_,
                                   double Z_,
                                   double Pt_,
                                   double Gt_,
                                   java.lang.Object pkt_)
Constructs a message

Parameters:
nid_ - the id of the sender node.
X_ - the x coordinate of the sender node's current position.
Y_ - the y coordinate of the sender node's current position.
Z_ - the z coordinate of the sender node's current position.
Gt_ - the transmitting antenna gain
pkt_ - the packet being transmitted
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


getGt

public double getGt()
Gets the channel gain


getPt

public double getPt()
Gets the transmission power


getPkt

public java.lang.Object getPkt()
Gets the packet


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 ~