nl.tudelft.simulation.dsol.formalisms.flow
Interface StationInterface

All Superinterfaces:
EventProducerInterface
All Known Implementing Classes:
Delay, Departure, Duplicate, Generator, Release, Schedule, Seize, Station

public interface StationInterface
extends EventProducerInterface

A station is an object which accepts other objects and is linked to a 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.

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

Field Summary
static EventType RECEIVE_EVENT
          RECEIVE_EVENT is fired whenever an entity enters the station
static EventType RELEASE_EVENT
          RECEIVE_EVENT is fired whenever an entity leaves the station
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Method Summary
 StationInterface getDestination()
          Method getDestination.
 void receiveObject(Object object)
          receives an object is invoked whenever an entity arrives
 void setDestination(StationInterface destination)
          sets the destination of this object
 
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypes, removeListener
 

Field Detail

RECEIVE_EVENT

static final EventType RECEIVE_EVENT
RECEIVE_EVENT is fired whenever an entity enters the station


RELEASE_EVENT

static final EventType RELEASE_EVENT
RECEIVE_EVENT is fired whenever an entity leaves the station

Method Detail

getDestination

StationInterface getDestination()
                                throws RemoteException
Method getDestination.

Returns:
StationInterface is the destination of this station
Throws:
RemoteException - on network failure

receiveObject

void receiveObject(Object object)
                   throws RemoteException
receives an object is invoked whenever an entity arrives

Parameters:
object - is the entity
Throws:
RemoteException - on network failure

setDestination

void setDestination(StationInterface destination)
                    throws RemoteException
sets the destination of this object

Parameters:
destination - defines the next station in the model
Throws:
RemoteException - on network failure


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