|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpeersim.vector.SingleValueObserver
it.unitn.ds.peersim.observers.ConsensusObserver
public class ConsensusObserver
Distributed Systems Course Project
Year: 2009/2010
University of Trento
ConsensusObserver -. Implements controls about the execution of the protocol, creates the logs necessary to creates the graphs and checks when the execution is terminated.
http://peersim.sourceforge.net/| Constructor Summary | |
|---|---|
ConsensusObserver(java.lang.String prefix)
This method is called when information about an Consensus which was previously requested using an asynchronous interface becomes available. |
|
| Method Summary | |
|---|---|
void |
countDecided()
This method is called when information about an Consensus which was previously requested using an asynchronous interface becomes available. |
boolean |
execute()
Print statistics over a vector. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsensusObserver(java.lang.String prefix)
prefix - the prefix| Method Detail |
|---|
public boolean execute()
execute in interface peersim.core.Controlexecute in class peersim.vector.SingleValueObserverSingleValue. Statistics printed are: min, max, number of
samples, average, variance, number of minimal instances, number
of maximal instances (using IncrementalStats.toString()).
, and the time of the simulation is larger
then zero (i.e. it has started).
public void countDecided()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||