|
||||||||||
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
public class Retailer
A Retailer
(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.
Field Summary | |
---|---|
static EventType |
BACKLOG_LEVEL
BACKLOG_LEVEL is fired on BACKLOG_LEVEL changes |
static EventType |
INVENTORY_LEVEL_EVENT
INVENTORY_LEVEL_EVENT is fired on changes in inventory |
static 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(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 EventType TOTAL_ORDERING_COST_EVENT
public static final EventType INVENTORY_LEVEL_EVENT
public static final EventType BACKLOG_LEVEL
Constructor Detail |
---|
public Retailer(DEVSSimulatorInterface simulator, SellerInterface warehouse) throws RemoteException
simulator
- the simulator on which we can schedulewarehouse
- the warehouse to buy at
RemoteException
- on failureMethod Detail |
---|
public void receiveProduct(long amount)
BuyerInterface
receiveProduct
in interface BuyerInterface
amount
- the amount to receive#receiveProduct(long)
public void order(BuyerInterface buyer, long amount)
SellerInterface
order
in interface SellerInterface
buyer
- 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 |