nl.tudelft.simulation.dsol.formalisms.flow
Class Duplicate
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.formalisms.flow.Station
nl.tudelft.simulation.dsol.formalisms.flow.Duplicate
- All Implemented Interfaces:
- Serializable, StationInterface, EventProducerInterface
public class Duplicate
- extends Station
A duplicate station duplicates incoming objects and sends them to their
alternative destination.
(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.
- Version:
- $Revision: 1.1 $ $Date: 2007/01/06 13:21:26 $
- Author:
- Peter
Jacobs , Alexander
Verbraeck
- See Also:
- Serialized Form
Method Summary |
void |
receiveObject(Object object)
receives an object is invoked whenever an entity arrives |
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 |
Duplicate
public Duplicate(DEVSSimulatorInterface simulator,
StationInterface duplicateDestination)
- Method Duplicate. Creates a new Duplicate
- Parameters:
simulator
- on which is scheduledduplicateDestination
- the duplicate destination
Duplicate
public Duplicate(DEVSSimulatorInterface simulator,
StationInterface duplicateDestination,
int numberCopies)
- Method Duplicate.
- Parameters:
simulator
- on which is scheduledduplicateDestination
- which is the duplicate definitionnumberCopies
- the number of copies
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.