|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.reports.GraphObserver
peersim.reports.DegreeStats
public class DegreeStats
Prints several statistics about the node degrees in the graph.
| Parameter Summary | |
|---|---|
n
The number of nodes to be used for sampling the degree. |
|
trace
If defined, then the given number of nodes will be traced. |
|
method
Selects a method to use when printing results. |
|
linktype
Selects the types of links to print information about. |
|
| Parameters inherited from class peersim.reports.GraphObserver |
|---|
undir |
| Field Summary |
|---|
| Fields inherited from class peersim.reports.GraphObserver |
|---|
g, ga, name, pid, undir |
| Constructor Summary | |
|---|---|
DegreeStats(java.lang.String name)
Standard constructor that reads the configuration parameters. |
|
| Method Summary | |
|---|---|
boolean |
execute()
Prints statistics about node degree. |
| 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 |
|---|
n
trace
methodIncrementalStats.toString(). "freq" will
use IncrementalFreq.print(java.io.PrintStream). "list" will print the
degrees of the sample nodes one by one in one line, separated by spaces.
Default is "stats".
linktype
| Constructor Detail |
|---|
public DegreeStats(java.lang.String name)
name - the configuration prefix for this class| Method Detail |
|---|
public boolean execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||