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.
* BSD-style license. See DSOL License.
* @author Peter Jacobs
* @author Alexander Verbraeck
* @version Jul 25, 2018
*/
public class AGV extends IntResource
{
/** */
private static final long serialVersionUID = 1L;
/** AGV time delay. */
private final DistContinuous agvTime;
/**
* @param simulator the simulator
* @param description the description
* @param capacity the capacity
* @param agvTime 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();
}
}