J-Sim v1.2.1-p7 API

drcl.comp
Class Contract

java.lang.Object
  extended bydrcl.comp.Contract
Direct Known Subclasses:
ActiveQueueContract, ByteStreamContract, ConfigSwitch, ContractAny, ContractMultiple, DatagramContract, DebugContract, DoubleEventContract, ErrorContract, EventContract, GarbageContract, IDConfig, IDLookup, IFQuery, McastHostEvent, NeighborEvent, PktDelivery, PktSending, PropertyContract, RTConfig, RTLookup, SchedulerConfig, ShellContract, SocketContract, TraceContract

public abstract class Contract
extends java.lang.Object

The base class for describing a contract.


Field Summary
static int Role_INITIATOR
           
static int Role_PEER
           
static int Role_REACTOR
           
 
Constructor Summary
Contract()
           
Contract(int role_)
           
 
Method Summary
abstract  java.lang.Object getContractContent()
          Returns the content of this contract (format?).
abstract  java.lang.String getName()
           
 int getRole()
           
 boolean match(Contract that_)
          Returns true if this contract matches that_.
 void setRole(int role_)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Role_INITIATOR

public static final int Role_INITIATOR
See Also:
Constant Field Values

Role_PEER

public static final int Role_PEER
See Also:
Constant Field Values

Role_REACTOR

public static final int Role_REACTOR
See Also:
Constant Field Values
Constructor Detail

Contract

public Contract()

Contract

public Contract(int role_)
Method Detail

setRole

public void setRole(int role_)

getRole

public int getRole()

match

public boolean match(Contract that_)
Returns true if this contract matches that_.


getName

public abstract java.lang.String getName()

getContractContent

public abstract java.lang.Object getContractContent()
Returns the content of this contract (format?).


J-Sim v1.2.1-p7 API

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