|
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.MacPhyContract.Message
This class defines the data structure of the message between Mac and Phy components.
| Constructor Summary | |
MacPhyContract.Message()
|
|
MacPhyContract.Message(boolean error_,
double RxPr_,
double CPThresh_,
double CSThresh_,
double RXThresh_,
java.lang.Object pkt_)
Construct a Mac-Phy Message |
|
MacPhyContract.Message(boolean error_,
double RxPr_,
double CPThresh_,
java.lang.Object pkt_)
Construct a Mac-Phy Message |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this object. |
Contract |
getContract()
Returns the associated contract of this message. |
double |
getCPThresh()
Get the capture threshold |
double |
getCSThresh()
Get the carrier sense threshold |
boolean |
getError()
Get the error flag |
java.lang.Object |
getPkt()
Get the data packet |
double |
getRxPr()
Get the transmission power |
double |
getRXThresh()
Get the receiving threshold |
void |
setError(boolean error_)
Sets the error flag. |
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 |
public MacPhyContract.Message()
public MacPhyContract.Message(boolean error_,
double RxPr_,
double CPThresh_,
java.lang.Object pkt_)
error_ - - indicating if the frame is corruptedRxPr_ - - received powerCPThresh_ - - capture thresholdpkt_ - - data packet
public MacPhyContract.Message(boolean error_,
double RxPr_,
double CPThresh_,
double CSThresh_,
double RXThresh_,
java.lang.Object pkt_)
error_ - - indicating if the frame is corruptedRxPr_ - - received powerCPThresh_ - - capture thresholdCSThresh_ - - carrier sensing thresholdRXThresh_ - - receiving thresholdpkt_ - - data packet| Method Detail |
public boolean getError()
public double getRxPr()
public double getCPThresh()
public double getRXThresh()
public double getCSThresh()
public java.lang.Object getPkt()
public void setError(boolean error_)
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 | ||||||||||