Class Container
java.lang.Object
nl.tudelft.simulation.examples.dsol.terminal.Container
- All Implemented Interfaces:
IntResourceRequestorInterface<Double>
The 'active' container object.
Copyright (c) 2002-2024 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://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- 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- DevsSimulatorInterface<Double>; the simulatorcontainerNumber- int; the container numberqc- QC; the QC resourcesagv- AGV; the AGV resourcesship- Ship; the ship
-
-
Method Details
-
receiveRequestedResource
public void receiveRequestedResource(long requestedCapacity, IntResource<Double> resource) throws RemoteException receive the requested resource.- Specified by:
receiveRequestedResourcein interfaceIntResourceRequestorInterface<Double>- Parameters:
requestedCapacity- long; reflects the amount requested.resource- IntResource<T>; the requested resource.- Throws:
RemoteException- on network failure.
-
agvReady
protected void agvReady() -
qcReady
protected void qcReady() -
checkPhase
protected void checkPhase()
-