|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gscg.singleuser.production.ProductionSchedule
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.
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 |
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)
product
- the productamount
- the amount to produce per time the schedule is executedtime
- the time necessary to execute one schedulestock
- the stock to add the produced products tosimulator
- the simulatorMethod Detail |
public nl.tudelft.simulation.supplychain.product.Product getProduct()
public double getTime()
public void produce()
public void changeAmount(double percentage, boolean increase)
percentage
- the percentage to change the amount withincrease
- true for increase, false for decreasepublic void changeProductionTime(double percentage, boolean increase)
percentage
- the percentage to change the production time withincrease
- true for increase, false for decreaseprotected void addToStock()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |