|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.cdsim.DaemonProtocol
public class DaemonProtocol
A protocol that is not really a protocol, but a trick to carry out all kinds of tasks during the simulation. Many users will probably not need it, but it is a nice way to e.g. run controls at any time, not only between cycles.
| Parameter Summary | |
|---|---|
control
This is the prefix for network dynamism managers. |
|
cstep
The controls will be run according to this frequency. |
|
| Constructor Summary | |
|---|---|
DaemonProtocol(java.lang.String s)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of the protocol. |
void |
nextCycle(Node node,
int protocolID)
Runs the configured controls if CDState.getCycleT() %
"cstep"=0. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Parameter Detail |
|---|
control
cstepCDState.getCycleT()). The first cycletime is 0.
Defaults to 1.
| Constructor Detail |
|---|
public DaemonProtocol(java.lang.String s)
| Method Detail |
|---|
public java.lang.Object clone()
ProtocolControls.
clone in interface Protocolclone in class java.lang.Object
public void nextCycle(Node node,
int protocolID)
CDState.getCycleT() %
"cstep"=0.
nextCycle in interface CDProtocolnode - the node on which this component is runprotocolID - the id of this protocol in the protocol array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||