nl.tudelft.simulation.dsol.tutorial.section42.policies
Class StationaryPolicy
java.lang.Object
nl.tudelft.simulation.dsol.tutorial.section42.policies.StationaryPolicy
- All Implemented Interfaces:
- OrderingPolicy
public class StationaryPolicy
- extends Object
- implements OrderingPolicy
A StationaryPolicy
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
- Version:
- 1.0 Dec 8, 2003
- Author:
- Peter Jacobs
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StationaryPolicy
public StationaryPolicy(SimulatorInterface simulator)
throws RemoteException
- constructs a new StationaryPolicy
- Parameters:
simulator
- the simulator which is executing the experiment
- Throws:
RemoteException
- on network failure
computeAmountToOrder
public long computeAmountToOrder(long inventory)
- Description copied from interface:
OrderingPolicy
- decides the amount of product to order
- Specified by:
computeAmountToOrder
in interface OrderingPolicy
- Parameters:
inventory
- the current inventory
- Returns:
- long the amount
- See Also:
#computeAmountToOrder(long)
Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.