Class StationaryPolicy

    • Constructor Detail

      • StationaryPolicy

        public StationaryPolicy​(SimulatorInterface<Double> simulator)
        constructs a new StationaryPolicy.
        Parameters:
        simulator - SimulatorInterface<Double>; the simulator which is executing the experiment
    • Method Detail

      • computeAmountToOrder

        public long computeAmountToOrder​(long inventory)
        decides the amount of product to order.
        Specified by:
        computeAmountToOrder in interface OrderingPolicy
        Parameters:
        inventory - long; the current inventory
        Returns:
        long the amount