|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.jstats.statistics.StatisticsObject
nl.tudelft.simulation.jstats.statistics.Counter
The Counter class defines a statistics event counter.
(c) copyright 2003-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
protected long |
count
count represents the value of the counter |
static nl.tudelft.simulation.event.EventType |
COUNT_EVENT
COUNT_EVENT is fired whenever setCount() is invoked |
protected java.lang.String |
description
description refers to the title of this counter |
protected long |
n
n represents the number of measurements |
static nl.tudelft.simulation.event.EventType |
N_EVENT
N_EVENT is fired on every new measurement |
| 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(java.lang.String description)
constructs a new CounterTest |
|
| Method Summary | |
long |
getCount()
Returns the current counter value |
java.lang.String |
getDescription()
returns the description of the counter |
long |
getN()
Returns the current number of observations |
javax.swing.table.TableModel |
getTable()
represents the statistics object as Table. |
void |
initialize()
initializes the counter |
boolean |
isInitialized()
is the counter initialized? |
void |
notify(nl.tudelft.simulation.event.EventInterface event)
|
java.lang.String |
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 |
| Field Detail |
public static final nl.tudelft.simulation.event.EventType COUNT_EVENT
public static final nl.tudelft.simulation.event.EventType N_EVENT
protected long count
protected long n
protected java.lang.String description
| Constructor Detail |
public Counter(java.lang.String description)
description - the description for this counter| Method Detail |
public long getCount()
public long getN()
public void notify(nl.tudelft.simulation.event.EventInterface event)
notify in interface nl.tudelft.simulation.event.EventListenerInterface#notify(nl.tudelft.simulation.event.EventInterface)public java.lang.String toString()
Object.toString()public void initialize()
public boolean isInitialized()
public java.lang.String getDescription()
public javax.swing.table.TableModel getTable()
StatisticsObject
getTable in class StatisticsObject#getTable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||