org.gscg.gameactors.statistics
Class StatisticOrderAverageUnitPriceHandler

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended byorg.gscg.gameactors.statistics.StatisticOrderAverageUnitPriceHandler
All Implemented Interfaces:
java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface, nl.tudelft.simulation.content.HandlerInterface, java.io.Serializable, StatisticContentHandlerInterface

public class StatisticOrderAverageUnitPriceHandler
extends nl.tudelft.simulation.event.EventProducer
implements StatisticContentHandlerInterface

The StatisticOrderAverageUnitPriceHandler is used to collect statistics with regards to ordersPerProduct.

(c) copyright 2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
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 are proprietary information of Delft University of Technology.

Since:
1.1.3
Version:
$Revision: 1.1 $ $Date: 2005/08/03 08:52:49 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Field Summary
 
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
StatisticOrderAverageUnitPriceHandler(RegionInterface owner, java.lang.String prefix)
          constructs a new StatisticOrderAverageUnitPriceHandler
 
Method Summary
 RegionInterface getRegion()
           
 java.util.Set getSeries()
           
 nl.tudelft.simulation.event.EventType[] getStatisticEventTypes()
           
 boolean handleContent(java.io.Serializable content)
           
 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
 

Constructor Detail

StatisticOrderAverageUnitPriceHandler

public StatisticOrderAverageUnitPriceHandler(RegionInterface owner,
                                             java.lang.String prefix)
constructs a new StatisticOrderAverageUnitPriceHandler

Parameters:
owner - the owner of the handler
prefix - the prefix
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)

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)

getStatisticEventTypes

public nl.tudelft.simulation.event.EventType[] getStatisticEventTypes()
Specified by:
getStatisticEventTypes in interface StatisticContentHandlerInterface
Returns:
returns the set of event types fired by the statistic handler
See Also:
StatisticContentHandlerInterface.getStatisticEventTypes()

getSeries

public java.util.Set getSeries()
Specified by:
getSeries in interface StatisticContentHandlerInterface
Returns:
returns the set with XYSeries for the handler
See Also:
StatisticContentHandlerInterface.getSeries()

getRegion

public RegionInterface getRegion()
Specified by:
getRegion in interface StatisticContentHandlerInterface
Returns:
returns the region
See Also:
StatisticContentHandlerInterface.getRegion()


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