|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeersim.reports.GraphObserver
peersim.reports.RandRemoval
public class RandRemoval
It tests the network for robustness to random node removal. It does not actually remove nodes, it is only an observer, so can be applied several times during the simulation. A warning though: as a side effect it may shuffle the network (see "n") so if this is an issue, it should not be used, or only after the simulation has finished.
Parameter Summary | |
---|---|
n
This parameter defines the number of runs of the iterative removal procedure to get statistics. |
Parameters inherited from class peersim.reports.GraphObserver |
---|
undir |
Field Summary |
---|
Fields inherited from class peersim.reports.GraphObserver |
---|
g, ga, name, pid, undir |
Constructor Summary | |
---|---|
RandRemoval(java.lang.String name)
Standard constructor that reads the configuration parameters. |
Method Summary | |
---|---|
boolean |
execute()
Prints results of node removal tests. |
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
Constructor Detail |
---|
public RandRemoval(java.lang.String name)
name
- the configuration prefix for this classMethod Detail |
---|
public boolean execute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |