org.gscg.singleuser.production
Class ProductionSchedule

java.lang.Object
  extended byorg.gscg.singleuser.production.ProductionSchedule
All Implemented Interfaces:
java.io.Serializable

public class ProductionSchedule
extends java.lang.Object
implements java.io.Serializable

The ProductionSchedule is used to produce a product according to a predefined schedule. In this case it simply takes a number of time specified in days to produce a certain amount of products. After production, the products are added to the stock.

(c) copyright 2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software are proprietary information of Delft University of Technology.

Since:
1.1.10
Version:
$Revision: 1.1 $ $Date: 2005/08/09 15:43:41 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Constructor Summary
ProductionSchedule(nl.tudelft.simulation.supplychain.product.Product product, double amount, double time, nl.tudelft.simulation.supplychain.stock.StockInterface stock, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
          constructs a new ProductionSchedule
 
Method Summary
protected  void addToStock()
          adds the products to the stock
 void changeAmount(double percentage, boolean increase)
          changes the amount of the schedule
 void changeProductionTime(double percentage, boolean increase)
          changes the production time of the schedule
 nl.tudelft.simulation.supplychain.product.Product getProduct()
           
 double getTime()
           
 void produce()
          produces the product and adds the produced product to the stock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductionSchedule

public ProductionSchedule(nl.tudelft.simulation.supplychain.product.Product product,
                          double amount,
                          double time,
                          nl.tudelft.simulation.supplychain.stock.StockInterface stock,
                          nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
constructs a new ProductionSchedule

Parameters:
product - the product
amount - the amount to produce per time the schedule is executed
time - the time necessary to execute one schedule
stock - the stock to add the produced products to
simulator - the simulator
Method Detail

getProduct

public nl.tudelft.simulation.supplychain.product.Product getProduct()
Returns:
returns the product

getTime

public double getTime()
Returns:
returns the time expressed in simulator time units

produce

public void produce()
produces the product and adds the produced product to the stock


changeAmount

public void changeAmount(double percentage,
                         boolean increase)
changes the amount of the schedule

Parameters:
percentage - the percentage to change the amount with
increase - true for increase, false for decrease

changeProductionTime

public void changeProductionTime(double percentage,
                                 boolean increase)
changes the production time of the schedule

Parameters:
percentage - the percentage to change the production time with
increase - true for increase, false for decrease

addToStock

protected void addToStock()
adds the products to the stock



Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.