View Javadoc

    1   /*
    2    * @(#)StationInterface.java Feb 1, 2003
    3    *
    4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
    5    * the Netherlands All rights reserved.
    6    *
    7    * This software is proprietary information of Delft University of Technology
    8    * The code is published under the General Public License
    9    */
    10  package nl.tudelft.simulation.dsol.formalisms.flow;
    11
    12  import nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface;
    13
    14  /***
    15   * The exit station on which statistics are updated and entities destroyed. <br>
    16   * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
    17   * University of Technology </a>, the Netherlands. <br>
    18   * See for project information <a href="http://www.simulation.tudelft.nl">
    19   * www.simulation.tudelft.nl </a> <br>
    20   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
    21   * License (GPL) </a>, no warranty <br>
    22   *
    23   * @version 2.0 21.09.2003 <br>
    24   * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
    25   *         Jacobs </a>, <a
    26   *         href="http://www.tbm.tudelft.nl/webstaf/alexandv/index.htm">Alexander
    27   *         Verbraeck </a>
    28   */
    29  public class Departure extends Station
    30  {
    31  	/***
    32  	 * Constructor for Departure.
    33  	 *
    34  	 * @param simulator on which is scheduled
    35  	 */
    36  	public Departure(final DEVSSimulatorInterface simulator)
    37  	{
    38  		super(simulator);
    39  	}
    40
    41  	/***
    42  	 * @see StationInterface#receiveObject(java.lang.Object)
    43  	 */
    44  	public synchronized void receiveObject(final Object object)
    45  	{
    46  		this.fireEvent(StationInterface.RECEIVE_EVENT, object);
    47  		this.fireEvent(StationInterface.RELEASE_EVENT, object);
    48  	}
    49  }