|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
org.gscg.singleuser.interactionlayer.business.statistics.StockStatistics
The StockStatistics subscribes to stock changed events fired by the stock of an actor. During execution of the simulation, all the stock account changed events are stored. When a player becomes online, its client side charts are updated. And as long as the player is online, future stock changed events are stored and immediately sent to the client-side gui.
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 is proprietary information of Delft University of Technology.
Field Summary | |
static int |
ACTUAL_AMOUNT
the actual amount |
static int |
CLAIMED_AMOUNT
the claimed amount |
static int |
ORDERED_AMOUNT
the ordered amount |
static nl.tudelft.simulation.event.EventType |
STOCK_CHANGED_EVENT
fired in case of bank changed events |
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 | |
StockStatistics(SingleUserInteractionLayerInterface owner,
nl.tudelft.simulation.supplychain.actor.Trader trader,
int numberOfDays)
constructs a new StockStatistics |
Method Summary | |
void |
announce(nl.tudelft.simulation.event.EventType eventType,
boolean announce)
Method announce. |
void |
notify(nl.tudelft.simulation.event.EventInterface event)
|
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 int ACTUAL_AMOUNT
public static final int ORDERED_AMOUNT
public static final int CLAIMED_AMOUNT
public static final nl.tudelft.simulation.event.EventType STOCK_CHANGED_EVENT
Constructor Detail |
public StockStatistics(SingleUserInteractionLayerInterface owner, nl.tudelft.simulation.supplychain.actor.Trader trader, int numberOfDays)
owner
- the ownertrader
- the tradernumberOfDays
- the number of days in the simulationMethod Detail |
public void announce(nl.tudelft.simulation.event.EventType eventType, boolean announce)
AnnounceInterface
announce
in interface AnnounceInterface
eventType
- the eventTypeannounce
- indicates whether this is an announceAnnounceInterface.announce(nl.tudelft.simulation.event.EventType,
boolean)
public void notify(nl.tudelft.simulation.event.EventInterface event) throws java.rmi.RemoteException
notify
in interface nl.tudelft.simulation.event.EventListenerInterface
java.rmi.RemoteException
EventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |