|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.reports.GraphObserver
peersim.reports.ConnectivityObserver
public class ConnectivityObserver
Reports statistics about connectivity properties of the network, such as weakly or strongly connected clusters.
| Parameter Summary | |
|---|---|
stats
The parameter used to request cluster size statistics instead of the usual list of clusters. |
|
type
Defines the types of connected clusters to discover. |
|
| Parameters inherited from class peersim.reports.GraphObserver |
|---|
undir |
| Field Summary |
|---|
| Fields inherited from class peersim.reports.GraphObserver |
|---|
g, ga, name, pid, undir |
| Constructor Summary | |
|---|---|
ConnectivityObserver(java.lang.String name)
Standard constructor that reads the configuration parameters. |
|
| Method Summary | |
|---|---|
boolean |
execute()
Prints information about clusters. |
| Methods inherited from class peersim.reports.GraphObserver |
|---|
updateGraph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Parameter Detail |
|---|
stats
type
| Constructor Detail |
|---|
public ConnectivityObserver(java.lang.String name)
name - the configuration prefix for this class| Method Detail |
|---|
public boolean execute()
IncrementalStats.toString(), over the sizes of the
clusters.
Otherwise one line is printed that contains the string representation of
a map, that holds cluster IDs mapped to cluster sizes.
The meaning of the cluster IDs is not specified, but is printed for
debugging purposes.
GraphAlgorithms.tarjan(peersim.graph.Graph),
GraphAlgorithms.weaklyConnectedClusters(peersim.graph.Graph)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||