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