nl.tudelft.simulation.dsol.statistics
Class Counter

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.jstats.statistics.StatisticsObject
          extended by nl.tudelft.simulation.jstats.statistics.Counter
              extended by nl.tudelft.simulation.dsol.statistics.Counter
All Implemented Interfaces:
Serializable, EventListener, EventListenerInterface, EventProducerInterface, Swingable

public class Counter
extends Counter

The counter extends the counter and links this it to the dsol framework
(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.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:28 $
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.jstats.statistics.Counter
count, COUNT_EVENT, description, n, N_EVENT
 
Fields inherited from class nl.tudelft.simulation.jstats.statistics.StatisticsObject
filter
 
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
Counter(String description, SimulatorInterface simulator)
          constructs a new Counter
Counter(String description, SimulatorInterface simulator, EventProducerInterface target, EventType field)
          constructs a new Counter
 
Method Summary
protected  void endOfReplication()
          endOfReplication is invoked to store the final results
 void notify(EventInterface event)
           
 
Methods inherited from class nl.tudelft.simulation.jstats.statistics.Counter
getCount, getDescription, getN, getTable, initialize, isInitialized, toString
 
Methods inherited from class nl.tudelft.simulation.jstats.statistics.StatisticsObject
getSwingPanel
 
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, wait, wait, wait
 

Constructor Detail

Counter

public Counter(String description,
               SimulatorInterface simulator)
        throws RemoteException
constructs a new Counter

Parameters:
description - refers to the description of this counter
simulator - the simulator
Throws:
RemoteException - on network failure

Counter

public Counter(String description,
               SimulatorInterface simulator,
               EventProducerInterface target,
               EventType field)
        throws RemoteException
constructs a new Counter

Parameters:
description - the description
simulator - the simulator of this model
target - the target on which to count
field - the field which is counted
Throws:
RemoteException - on network failure
Method Detail

notify

public void notify(EventInterface event)
Specified by:
notify in interface EventListenerInterface
Overrides:
notify in class Counter
See Also:
#notify(nl.tudelft.simulation.event.EventInterface)

endOfReplication

protected void endOfReplication()
endOfReplication is invoked to store the final results



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