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-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *

* @author Peter Jacobs * @author Alexander Verbraeck */ public class QC extends IntResource { /** */ private static final long serialVersionUID = 1L; /** QC time delay. */ private final DistContinuous qcTime; /** * @param simulator DEVSSimulatorInterface.TimeDouble; the simulator * @param description String; the description * @param capacity long; the capacity * @param qcTime DistContinuous; 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(); } }