org.gscg.singleuser.interactionlayer.business.statistics
Class CustomerStatistics

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended byorg.gscg.singleuser.interactionlayer.business.statistics.CustomerStatistics
All Implemented Interfaces:
AnnounceInterface, nl.tudelft.simulation.event.EventProducerInterface, nl.tudelft.simulation.content.HandlerInterface, java.io.Serializable

public class CustomerStatistics
extends nl.tudelft.simulation.event.EventProducer
implements nl.tudelft.simulation.content.HandlerInterface, AnnounceInterface

The CustomerStatistics subscribes to messages between a supplier and a customer. It collects the messages sent between these actors and based on their content statistics are generated. One might think of for example the average amount of an order per customer per product.

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

Field Summary
static nl.tudelft.simulation.event.EventType CUSTOMER_STATISTICS_NEW_PERSISTENT
          fired to update a customer client-side statistic
static nl.tudelft.simulation.event.EventType CUSTOMER_STATISTICS_SENT_GUI_UPDATE
          fired in case of announce event when a gui is initialized
static nl.tudelft.simulation.event.EventType ORDERCOMMIT_SENT
          fired when an order commitment has been sent
 
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
CustomerStatistics(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, SingleUserInteractionLayerInterface singleUserInteractionLayer)
          constructs a new CustomerStatistics
 
Method Summary
 void announce(nl.tudelft.simulation.event.EventType eventType, boolean announce)
          Method announce.
 nl.tudelft.simulation.event.EventInterface fireEvent(nl.tudelft.simulation.event.EventInterface event)
           
 java.util.Map getClientPersistentEventTypes()
           
 boolean handleContent(java.io.Serializable content)
           
 
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, getEventTypes, removeAllListeners, removeAllListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDERCOMMIT_SENT

public static final nl.tudelft.simulation.event.EventType ORDERCOMMIT_SENT
fired when an order commitment has been sent


CUSTOMER_STATISTICS_NEW_PERSISTENT

public static final nl.tudelft.simulation.event.EventType CUSTOMER_STATISTICS_NEW_PERSISTENT
fired to update a customer client-side statistic


CUSTOMER_STATISTICS_SENT_GUI_UPDATE

public static final nl.tudelft.simulation.event.EventType CUSTOMER_STATISTICS_SENT_GUI_UPDATE
fired in case of announce event when a gui is initialized

Constructor Detail

CustomerStatistics

public CustomerStatistics(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                          SingleUserInteractionLayerInterface singleUserInteractionLayer)
constructs a new CustomerStatistics

Parameters:
simulator - the simulator
singleUserInteractionLayer - the single user interaction layer
Method Detail

handleContent

public boolean handleContent(java.io.Serializable content)
Specified by:
handleContent in interface nl.tudelft.simulation.content.HandlerInterface
See Also:
HandlerInterface.handleContent(java.io.Serializable)

fireEvent

public nl.tudelft.simulation.event.EventInterface fireEvent(nl.tudelft.simulation.event.EventInterface event)
See Also:
EventProducer.fireEvent(nl.tudelft.simulation.event.EventInterface)

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 eventType
announce - indicates whether this is an announce
See Also:
AnnounceInterface.announce(nl.tudelft.simulation.event.EventType, boolean)

getClientPersistentEventTypes

public java.util.Map getClientPersistentEventTypes()
Returns:
returns the client persistent event types


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.