Class Container
java.lang.Object
nl.tudelft.simulation.examples.dsol.terminal.Container
- All Implemented Interfaces:
IntResourceRequestorInterface<Double>
The 'active' container object.
Copyright (c) 2002-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Peter Jacobs, Alexander Verbraeck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidagvReady()protected voidprotected voidqcReady()voidreceiveRequestedResource(long requestedCapacity, IntResource<Double> resource) receive the requested resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.examples.dsol.terminal.IntResourceRequestorInterface
receiveRequestedResource
-
Constructor Details
-
Container
public Container(DevsSimulatorInterface<Double> simulator, int containerNumber, QuayCrane qc, Agv agv, Ship ship) - Parameters:
simulator- the simulatorcontainerNumber- the container numberqc- the QC resourcesagv- the AGV resourcesship- the ship
-
-
Method Details
-
receiveRequestedResource
Description copied from interface:IntResourceRequestorInterfacereceive the requested resource.- Specified by:
receiveRequestedResourcein interfaceIntResourceRequestorInterface<Double>- Parameters:
requestedCapacity- reflects the amount requested.resource- the requested resource.
-
agvReady
protected void agvReady() -
qcReady
protected void qcReady() -
checkPhase
protected void checkPhase()
-