package nl.tudelft.simulation.examples.dsol.terminal; import nl.tudelft.simulation.dsol.simtime.SimTimeDouble; import nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface; import nl.tudelft.simulation.jstats.distributions.DistContinuous; /** * The QCs modeled as resources. *

* copyright (c) 2002-2018 Delft University of Technology.
* BSD-style license. See DSOL License.
* @author Peter Jacobs * @author Alexander Verbraeck * @version Jul 25, 2018 */ public class QC extends IntResource { /** */ private static final long serialVersionUID = 1L; /** QC time delay. */ private final DistContinuous qcTime; /** * @param simulator the simulator * @param description the description * @param capacity the capacity * @param qcTime QC time delay */ public QC(final DEVSSimulatorInterface.TimeDouble simulator, final String description, final long capacity, final DistContinuous qcTime) { super(simulator, description, capacity); this.qcTime = qcTime; } /** * @return the QC handling time */ public double drawDelay() { return this.qcTime.draw(); } }