org.gscg.singleuser.interactionlayer.business.statistics
Class BankStatistics
java.lang.Object
nl.tudelft.simulation.event.EventProducer
org.gscg.singleuser.interactionlayer.business.statistics.BankStatistics
- All Implemented Interfaces:
- AnnounceInterface, java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface, java.io.Serializable
- public class BankStatistics
- extends nl.tudelft.simulation.event.EventProducer
- implements nl.tudelft.simulation.event.EventListenerInterface, AnnounceInterface
The BankStatistics subscribes to bank account changed events fired by the
bank account of an actor. During execution of the simulation, all the bank
account changed events are stored. When a player becomes online, its client
side chart is updated. And as long as the player is online, future bank
account 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.
- Since:
- 1.0.0
- Version:
- $Revision: 1.2 $ $Date: 2005/08/09 15:43:42 $
- Author:
- Stijn-Pieter
van Houten
- See Also:
- Serialized Form
Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
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 |
BANK_ACCOUNT_CHANGED_EVENT
public static final nl.tudelft.simulation.event.EventType BANK_ACCOUNT_CHANGED_EVENT
- fired in case of bank changed events
BankStatistics
public BankStatistics(SingleUserInteractionLayerInterface owner,
nl.tudelft.simulation.supplychain.actor.Trader trader,
int numberOfDays)
- constructs a new BankStatistics
- Parameters:
owner
- the ownertrader
- the tradernumberOfDays
- the number of days in the simulation
announce
public void announce(nl.tudelft.simulation.event.EventType eventType,
boolean announce)
- Description copied from interface:
AnnounceInterface
- Method announce.
- Specified by:
announce
in interface AnnounceInterface
- Parameters:
eventType
- the eventTypeannounce
- indicates whether this is an announce- See Also:
AnnounceInterface.announce(nl.tudelft.simulation.event.EventType,
boolean)
notify
public void notify(nl.tudelft.simulation.event.EventInterface event)
throws java.rmi.RemoteException
- Specified by:
notify
in interface nl.tudelft.simulation.event.EventListenerInterface
- Throws:
java.rmi.RemoteException
- See Also:
EventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)
Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.