|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.cdsim.FullNextCycle
public class FullNextCycle
Control to run a cycle of the cycle driven simulation. This does not need to be explicitly configured (although you can do it for hacking purposes).
| Parameter Summary | |
|---|---|
getpair
The type of the getPair function. |
|
shuffle
Shuffle iteration order if set. |
|
| Field Summary | |
|---|---|
protected boolean |
getpair_rand
|
protected Scheduler[] |
protSchedules
Holds the protocol schedulers of this simulation |
protected RandPermutation |
rperm
The random permutation to use if config par "shuffle" is set. |
protected boolean |
shuffle
|
| Constructor Summary | |
|---|---|
FullNextCycle(java.lang.String prefix)
Reads config parameters and Schedulers. |
|
| Method Summary | |
|---|---|
boolean |
execute()
Execute all the CDProtocols on all nodes that are up. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Parameter Detail |
|---|
getpair
shuffle
| Field Detail |
|---|
protected final boolean getpair_rand
protected final boolean shuffle
protected Scheduler[] protSchedules
protected RandPermutation rperm
| Constructor Detail |
|---|
public FullNextCycle(java.lang.String prefix)
Schedulers.
| Method Detail |
|---|
public boolean execute()
CDProtocols on all nodes that are up.
If the node goes down as a result of the execution of a protocol, then
the rest of the protocols on that node are not executed and we move on
to the next node.
It sets the CDState appropriately.
execute in interface Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||