Class Warehouse
java.lang.Object
nl.tudelft.simulation.dsol.tutorial.section42.Warehouse
- All Implemented Interfaces:
SellerInterface
A Warehouse.
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
-
Constructor Summary
ConstructorsConstructorDescriptionWarehouse(DevsSimulatorInterface<Double> simulator) constructs a new Warehouse. -
Method Summary
Modifier and TypeMethodDescriptionvoidorder(BuyerInterface buyer, long amount) order a requested amount.
-
Constructor Details
-
Warehouse
constructs a new Warehouse.- Parameters:
simulator- DevsSimulatorInterface<Double>; the simulator to schedule on
-
-
Method Details
-
order
order a requested amount.- Specified by:
orderin interfaceSellerInterface- Parameters:
buyer- BuyerInterface; the requesting buyeramount- long; the requested amount
-