|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.comp.Message
drcl.inet.mac.NodeChannelContract.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 |
public long nid
public double X
public double Y
public double Z
public double Pt
public double Gt
| Constructor Detail |
public NodeChannelContract.Message()
public NodeChannelContract.Message(long nid_,
double X_,
double Y_,
double Z_,
double Pt_,
double Gt_,
java.lang.Object pkt_)
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 gainpkt_ - the packet being transmitted| Method Detail |
public long getNid()
public double getX()
public double getY()
public double getZ()
public double getGt()
public double getPt()
public java.lang.Object getPkt()
public java.lang.Object clone()
ObjectCloneable
clone in interface ObjectCloneableclone in class Messagepublic Contract getContract()
Message
getContract in class Messagepublic java.lang.String toString(java.lang.String separator_)
Message
toString in class Message
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||