nl.tudelft.simulation.dsol.formalisms.flow
Class Delay

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.dsol.formalisms.flow.Station
          extended by nl.tudelft.simulation.dsol.formalisms.flow.Delay
All Implemented Interfaces:
Serializable, StationInterface, EventProducerInterface

public class Delay
extends Station

The Delay object is a station which delays an entity by some time units. When an entity arrives at a delay object, dsol delays the entity by the resulting time period. During the time delay, the entity is held in the delay object.

(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.

Since:
1.0
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:26 $
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
protected  DistContinuous delayDistribution
          delayDistribution which is the distribution defining the delay
 
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
Delay(DEVSSimulatorInterface simulator, DistContinuous delayDistribution)
          Constructor for Delay.
 
Method Summary
 void receiveObject(Object object)
          receives an object is invoked whenever an entity arrives
 
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

delayDistribution

protected DistContinuous delayDistribution
delayDistribution which is the distribution defining the delay

Constructor Detail

Delay

public Delay(DEVSSimulatorInterface simulator,
             DistContinuous delayDistribution)
Constructor for Delay.

Parameters:
simulator - is the simulator
delayDistribution - is the delayDistribution
Method Detail

receiveObject

public void receiveObject(Object object)
                   throws RemoteException
Description copied from interface: StationInterface
receives an object is invoked whenever an entity arrives

Specified by:
receiveObject in interface StationInterface
Overrides:
receiveObject in class Station
Parameters:
object - is the entity
Throws:
RemoteException - on network failure
See Also:
StationInterface.receiveObject(Object)


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.