DRCL J-Sim API

drcl.inet.mac
Class ARPContract

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

public class ARPContract
extends Contract

The contract between LL and ARP.

Author:
Ye Ge

Nested Class Summary
static class ARPContract.Message
          A Message class defined for carrying information between ARP components and LL components.
 
Field Summary
static ARPContract INSTANCE
           
 
Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
ARPContract()
          Constructor
ARPContract(int role_)
          Constructor
 
Method Summary
 java.lang.Object getContractContent()
          Return null
 java.lang.String getName()
          Return "ARP Contract" as its name.
 
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 ARPContract INSTANCE
Constructor Detail

ARPContract

public ARPContract()
Constructor


ARPContract

public ARPContract(int role_)
Constructor

Method Detail

getName

public java.lang.String getName()
Return "ARP Contract" as its name.

Specified by:
getName in class Contract

getContractContent

public java.lang.Object getContractContent()
Return null

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 ~