|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.tutorial.section42.Retailer
A Retailer
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
static nl.tudelft.simulation.event.EventType |
BACKLOG_LEVEL
BACKLOG_LEVEL is fired on BACKLOG_LEVEL changes |
static nl.tudelft.simulation.event.EventType |
INVENTORY_LEVEL_EVENT
INVENTORY_LEVEL_EVENT is fired on changes in inventory |
static nl.tudelft.simulation.event.EventType |
TOTAL_ORDERING_COST_EVENT
TOTAL_ORDERING_COST_EVENT is fired whenever ordering occurs |
| Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
| Constructor Summary | |
Retailer(nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
SellerInterface warehouse)
constructs a new Retailer |
|
| Method Summary | |
void |
order(BuyerInterface buyer,
long amount)
order a requested amount |
void |
receiveProduct(long amount)
receive the ordered Product |
| Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final nl.tudelft.simulation.event.EventType TOTAL_ORDERING_COST_EVENT
public static final nl.tudelft.simulation.event.EventType INVENTORY_LEVEL_EVENT
public static final nl.tudelft.simulation.event.EventType BACKLOG_LEVEL
| Constructor Detail |
public Retailer(nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
SellerInterface warehouse)
throws java.rmi.RemoteException
simulator - the simulator on which we can schedulewarehouse - the warehouse to buy at
java.rmi.RemoteException - on failure| Method Detail |
public void receiveProduct(long amount)
BuyerInterface
receiveProduct in interface BuyerInterfaceamount - the amount to receive#receiveProduct(long)
public void order(BuyerInterface buyer,
long amount)
SellerInterface
order in interface SellerInterfacebuyer - the requesting buyeramount - the requested amount#order(BuyerInterface,long)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||