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 AGVs modeled as resources. *

* Copyright (c) 2002-2018 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 AGV extends IntResource { /** */ private static final long serialVersionUID = 1L; /** AGV time delay. */ private final DistContinuous agvTime; /** * @param simulator DEVSSimulatorInterface.TimeDouble; the simulator * @param description String; the description * @param capacity long; the capacity * @param agvTime DistContinuous; AGV time delay */ public AGV(final DEVSSimulatorInterface.TimeDouble simulator, final String description, final long capacity, final DistContinuous agvTime) { super(simulator, description, capacity); this.agvTime = agvTime; } /** * @return the AGV handling time */ public double drawDelay() { return this.agvTime.draw(); } }