DRCL JavaSim API

drcl.comp.queue
Class ActiveQueueContract

java.lang.Object
  |
  +--drcl.comp.Contract
        |
        +--drcl.comp.queue.ActiveQueueContract

public class ActiveQueueContract
extends Contract

Defines the commands used in the contract of queue component.


Field Summary
static java.lang.String DEQUEUE
           
static java.lang.String GET_CAPACITY
           
static java.lang.String GET_SIZE
           
static java.lang.String IS_EMPTY
           
static java.lang.String IS_FULL
           
static java.lang.String OUTPUT_PORT_ID
           
static java.lang.String PEEK
           
 
Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
ActiveQueueContract()
           
ActiveQueueContract(int role_)
           
 
Method Summary
static java.lang.Object dequeue(Port out_)
           
static void enqueue(java.lang.Object data_, Port out_)
           
static int getCapacity(Port out_)
           
 java.lang.Object getContractContent()
          Returns the content of this contract (format?).
static java.lang.Object getDequeueRequest()
           
static java.lang.Object getEnqueueRequest(java.lang.Object data_)
           
static java.lang.Object getGetCapacityRequest()
           
static java.lang.Object getGetSizeRequest()
           
static java.lang.Object getIsEmptyRequest()
           
static java.lang.Object getIsFullRequest()
           
 java.lang.String getName()
           
static java.lang.Object getPeekRequest()
           
static java.lang.Object getPullRequest()
           
static java.lang.Object getSetCapacityRequest(int size_)
           
static int getSize(Port out_)
           
static boolean isEmpty(Port out_)
           
static boolean isFull(Port out_)
           
static java.lang.Object peek(Port out_)
           
static java.lang.Object pull(Port out_)
           
static void setCapacity(int size_, Port out_)
           
 
Methods inherited from class drcl.comp.Contract
getRole, match, setRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEQUEUE

public static final java.lang.String DEQUEUE

PEEK

public static final java.lang.String PEEK

IS_FULL

public static final java.lang.String IS_FULL

IS_EMPTY

public static final java.lang.String IS_EMPTY

GET_SIZE

public static final java.lang.String GET_SIZE

GET_CAPACITY

public static final java.lang.String GET_CAPACITY

OUTPUT_PORT_ID

public static final java.lang.String OUTPUT_PORT_ID
Constructor Detail

ActiveQueueContract

public ActiveQueueContract()

ActiveQueueContract

public ActiveQueueContract(int role_)
Method Detail

enqueue

public static void enqueue(java.lang.Object data_,
                           Port out_)

dequeue

public static java.lang.Object dequeue(Port out_)

peek

public static java.lang.Object peek(Port out_)

isFull

public static boolean isFull(Port out_)

isEmpty

public static boolean isEmpty(Port out_)

getSize

public static int getSize(Port out_)

getCapacity

public static int getCapacity(Port out_)

setCapacity

public static void setCapacity(int size_,
                               Port out_)

getEnqueueRequest

public static java.lang.Object getEnqueueRequest(java.lang.Object data_)

getDequeueRequest

public static java.lang.Object getDequeueRequest()

getPeekRequest

public static java.lang.Object getPeekRequest()

getIsFullRequest

public static java.lang.Object getIsFullRequest()

getIsEmptyRequest

public static java.lang.Object getIsEmptyRequest()

getGetSizeRequest

public static java.lang.Object getGetSizeRequest()

getGetCapacityRequest

public static java.lang.Object getGetCapacityRequest()

getSetCapacityRequest

public static java.lang.Object getSetCapacityRequest(int size_)

pull

public static java.lang.Object pull(Port out_)

getPullRequest

public static java.lang.Object getPullRequest()

getName

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

getContractContent

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

DRCL JavaSim API

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