Class StationaryPolicy
java.lang.Object
nl.tudelft.simulation.dsol.tutorial.section42.policies.StationaryPolicy
- All Implemented Interfaces:
OrderingPolicy
A StationaryPolicy.
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
ConstructorsConstructorDescriptionStationaryPolicy(SimulatorInterface<Double> simulator) constructs a new StationaryPolicy. -
Method Summary
Modifier and TypeMethodDescriptionlongcomputeAmountToOrder(long inventory) decides the amount of product to order.
-
Constructor Details
-
StationaryPolicy
constructs a new StationaryPolicy.- Parameters:
simulator- SimulatorInterface<Double>; the simulator which is executing the experiment
-
-
Method Details
-
computeAmountToOrder
public long computeAmountToOrder(long inventory) decides the amount of product to order.- Specified by:
computeAmountToOrderin interfaceOrderingPolicy- Parameters:
inventory- long; the current inventory- Returns:
- long the amount
-