|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFairness.NodeMonitor
public class NodeMonitor
NodeMonitor contains methods to measure statistical information in the simulation.
Nested Class Summary | |
---|---|
static class |
NodeMonitor.Mark
A Mark represents collected statistics from a period of a NodeMonitor's collection. |
Constructor Summary | |
---|---|
NodeMonitor()
Creates an unnamed NodeMonitor. |
|
NodeMonitor(java.lang.String name)
Creates a NodeMonitor with a given name. |
Method Summary | |
---|---|
java.util.List<NodeMonitor.Mark> |
getMarks()
Returns a list of all marks created by mark() . |
java.lang.String |
getName()
Returns this monitor's name |
void |
mark()
Saves currently accumulated statistics in a Mark and resets current statistics. |
void |
reportLost()
Reports to the monitor that a packet was lost. |
void |
reportReceived()
Reports to the monitor that a packet was received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeMonitor()
public NodeMonitor(java.lang.String name)
name
- non-null StringMethod Detail |
---|
public java.lang.String getName()
public void reportReceived()
public void reportLost()
public void mark()
public java.util.List<NodeMonitor.Mark> getMarks()
mark()
.
NodeMonitor.Mark
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |