DRCL JavaSim API

drcl.comp
Class Contract

java.lang.Object
  |
  +--drcl.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

Role_PEER

public static final int Role_PEER

Role_REACTOR

public static final int Role_REACTOR
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?).

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~