|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.comp.Contract
drcl.inet.mac.LLMacContract
Defines soem convenient methods which are used by the LL
components and the MAC components.
| Field Summary | |
static LLMacContract |
INSTANCE
|
| Fields inherited from class drcl.comp.Contract |
Role_INITIATOR, Role_PEER, Role_REACTOR |
| Constructor Summary | |
LLMacContract()
Constructor. |
|
LLMacContract(int role_)
Constructor. |
|
| Method Summary | |
LLPacket |
createLLPacket(long dst_macaddr_,
long src_macaddr_,
ARPPacket body_)
Creates a LLPacket. |
LLPacket |
createLLPacket(long dst_macaddr_,
long src_macaddr_,
InetPacket body_)
Creates a LLPacket. |
java.lang.Object |
getContractContent()
Returns the content of this contract (format?). |
java.lang.String |
getName()
|
| Methods inherited from class drcl.comp.Contract |
getRole, match, setRole |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final LLMacContract INSTANCE
| Constructor Detail |
public LLMacContract()
public LLMacContract(int role_)
| Method Detail |
public java.lang.String getName()
getName in class Contractpublic java.lang.Object getContractContent()
Contract
getContractContent in class Contract
public LLPacket createLLPacket(long dst_macaddr_,
long src_macaddr_,
InetPacket body_)
dst_macaddr_ - the destination mac address.src_macaddr_ - the source mac address.body_ - the InetPacket object which is the payload of the constructed LLPacket object.
public LLPacket createLLPacket(long dst_macaddr_,
long src_macaddr_,
ARPPacket body_)
dst_macaddr_ - the destination mac address.src_macaddr_ - the source mac address.body_ - the ARPPacket object which is the payload of the constructed LLPacket object.
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||