|
||||||||||
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
public abstract class Station
A station is an object which can accept other objects.
(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 | |
---|---|
protected StationInterface |
destination
destination refers to the next station in the process-model chain |
protected DEVSSimulatorInterface |
simulator
simulator is the simulator on which behavior is scheduled |
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 | |
---|---|
Station(DEVSSimulatorInterface simulator)
constructs a new Station. |
Method Summary | |
---|---|
StationInterface |
getDestination()
Returns the destination. |
void |
receiveObject(Object object)
receives an object is invoked whenever an entity arrives |
protected void |
releaseObject(Object object)
releases an object |
void |
setDestination(StationInterface destination)
sets the destination of this object |
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 |
---|
protected DEVSSimulatorInterface simulator
protected StationInterface destination
Constructor Detail |
---|
public Station(DEVSSimulatorInterface simulator)
simulator
- is the simulator on which behavior is scheduledMethod Detail |
---|
public void receiveObject(Object object) throws RemoteException
StationInterface
receiveObject
in interface StationInterface
object
- is the entity
RemoteException
- on network failureStationInterface.receiveObject(Object)
public void setDestination(StationInterface destination)
StationInterface
setDestination
in interface StationInterface
destination
- defines the next station in the modelStationInterface.setDestination(StationInterface)
protected void releaseObject(Object object) throws RemoteException
object
- is the entity
RemoteException
- on network failurepublic StationInterface getDestination()
getDestination
in interface StationInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |