java.lang.Object
nl.tudelft.simulation.examples.dsol.terminal.Container
All Implemented Interfaces:
IntResourceRequestorInterface<Double>

public class Container extends Object implements 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 Details

    • Container

      public Container(DevsSimulatorInterface<Double> simulator, int containerNumber, QuayCrane qc, Agv agv, Ship ship)
      Parameters:
      simulator - DevsSimulatorInterface<Double>; the simulator
      containerNumber - int; the container number
      qc - QC; the QC resources
      agv - AGV; the AGV resources
      ship - Ship; the ship
  • Method Details

    • receiveRequestedResource

      public void receiveRequestedResource(long requestedCapacity, IntResource<Double> resource) throws RemoteException
      receive the requested resource.
      Specified by:
      receiveRequestedResource in interface IntResourceRequestorInterface<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()