superpeer
Class SuperpeerKiller
java.lang.Object
superpeer.SuperpeerKiller
- All Implemented Interfaces:
- peersim.dynamics.Dynamics
public class SuperpeerKiller
- extends java.lang.Object
- implements peersim.dynamics.Dynamics
A network dynamics manager which can grow networks.
Field Summary |
static java.lang.String |
PAR_PROTOCOL
String name of the parameter |
static java.lang.String |
PAR_REMOVE
The number of superpeer to remove when nodes are scheduled for removal. |
protected double |
remove
|
protected int |
sppID
|
Method Summary |
void |
modify()
Calls #add or remove with the parameters defined by
the configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PAR_PROTOCOL
public static final java.lang.String PAR_PROTOCOL
- String name of the parameter
- See Also:
- Constant Field Values
PAR_REMOVE
public static final java.lang.String PAR_REMOVE
- The number of superpeer to remove when nodes are scheduled for removal.
If less then 1, is interpreted as a percentage of nodes to be removed.
- See Also:
- Constant Field Values
remove
protected final double remove
sppID
protected final int sppID
SuperpeerKiller
public SuperpeerKiller(java.lang.String prefix)
modify
public final void modify()
- Calls
#add
or remove
with the parameters defined by
the configuration.
- Specified by:
modify
in interface peersim.dynamics.Dynamics