DRCL J-Sim API

drcl.inet.mac
Class NodeChannelContract

java.lang.Object
  extended bydrcl.comp.Contract
      extended bydrcl.inet.mac.NodeChannelContract

public class NodeChannelContract
extends Contract

The NodeChannelContract contract. This contract defines the message format between Node and Channel components.

Author:
Ye Ge
See Also:
WirelessPhy, Channel

Nested Class Summary
static class NodeChannelContract.Message
          The message class which is defined for exchanging information between Node and Channel components.
 
Field Summary
static NodeChannelContract INSTANCE
           
 
Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
NodeChannelContract()
           
NodeChannelContract(int role_)
           
 
Method Summary
 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

INSTANCE

public static final NodeChannelContract INSTANCE
Constructor Detail

NodeChannelContract

public NodeChannelContract()

NodeChannelContract

public NodeChannelContract(int role_)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Contract

getContractContent

public java.lang.Object getContractContent()
Description copied from class: Contract
Returns the content of this contract (format?).

Specified by:
getContractContent in class Contract

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~