|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.formalisms.flow.Station
nl.tudelft.simulation.dsol.formalisms.flow.Seize
public class Seize
The Seize requests a resource and releases an entity whenever this resource is actually claimed.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
static EventType |
DELAY_TIME
DELAY_TIME is fired when a new delayTime is computed |
static EventType |
QUEUE_LENGTH_EVENT
QUEUE_LENGTH_EVENT is fired when the queue length is changed |
Fields inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Station |
---|
destination, simulator |
Fields inherited from class nl.tudelft.simulation.event.EventProducer |
---|
listeners |
Fields inherited from interface nl.tudelft.simulation.dsol.formalisms.flow.StationInterface |
---|
RECEIVE_EVENT, RELEASE_EVENT |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
FIRST_POSITION, LAST_POSITION |
Constructor Summary | |
---|---|
Seize(DEVSSimulatorInterface simulator,
Resource resource)
Constructor for Seize. |
|
Seize(DEVSSimulatorInterface simulator,
Resource resource,
double requestedCapacity)
Constructor for Seize. |
Method Summary | |
---|---|
List |
getQueue()
returns the queue |
void |
receiveObject(Object object)
receives an object is invoked whenever an entity arrives |
void |
receiveObject(Object object,
double requestedCapacity)
receives an object which request an amount |
void |
receiveRequestedResource(double requestedCapacity,
Resource resource)
receive the requested resource |
void |
setQueue(List queue)
sets the queue to this seize. |
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Station |
---|
getDestination, releaseObject, setDestination |
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
---|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
addListener, addListener, addListener, addListener, getEventTypes, removeListener |
Field Detail |
---|
public static final EventType QUEUE_LENGTH_EVENT
public static final EventType DELAY_TIME
Constructor Detail |
---|
public Seize(DEVSSimulatorInterface simulator, Resource resource)
simulator
- on which behavior is scheduledresource
- which is claimedpublic Seize(DEVSSimulatorInterface simulator, Resource resource, double requestedCapacity)
simulator
- on which behavior is scheduledresource
- which is claimedrequestedCapacity
- is the amount which is claimed by the seizeMethod Detail |
---|
public void receiveObject(Object object, double requestedCapacity) throws RemoteException
object
- the objectrequestedCapacity
- the requested capacity
RemoteException
- on network failurespublic void receiveObject(Object object) throws RemoteException
StationInterface
receiveObject
in interface StationInterface
receiveObject
in class Station
object
- is the entity
RemoteException
- on network failureStationInterface.receiveObject(Object)
public void setQueue(List queue)
queue
- is a new queue.public List getQueue()
public void receiveRequestedResource(double requestedCapacity, Resource resource) throws RemoteException
ResourceRequestorInterface
receiveRequestedResource
in interface ResourceRequestorInterface
requestedCapacity
- reflects the amount requestedresource
- the requested resource
RemoteException
- on network failure#receiveRequestedResource(double,
nl.tudelft.simulation.dsol.formalisms.Resource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |