|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.vector.SingleValueObserver
public class SingleValueObserver
Print statistics over a vector. The vector is defined by a protocol,
specified by "protocol", that has to implement
SingleValue. Single nodes may avoid to be counted in the statistics
by throwing an UnsupportedOperationException in method
SingleValue.getValue().
Statistics printed are: min, max, number of samples, average, variance,
number of minimal instances, number of maximal instances (using
IncrementalStats.toString()).
IncrementalStats| Parameter Summary | |
|---|---|
accuracy
The parameter used to determine the accuracy (standard deviation) before stopping the simulation. |
|
protocol
The protocol to operate on. |
|
| Constructor Summary | |
|---|---|
SingleValueObserver(java.lang.String name)
Standard constructor that reads the configuration parameters. |
|
| Method Summary | |
|---|---|
boolean |
execute()
Print statistics over a vector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Parameter Detail |
|---|
accuracy
execute()protocol
| Constructor Detail |
|---|
public SingleValueObserver(java.lang.String name)
name - the configuration prefix for this class| Method Detail |
|---|
public boolean execute()
SingleValue.
Statistics printed are: min, max, number of samples, average, variance,
number of minimal instances, number of maximal instances (using
IncrementalStats.toString()).
execute in interface Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||