|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.edsim.NextCycleEvent
peersim.edsim.RegRandNextCycle
public class RegRandNextCycle
Implements a random delay, but making sure there is exactly one call in each
consecutive step time units.
| Constructor Summary | |
|---|---|
RegRandNextCycle(java.lang.String n)
Calls super constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Calls super.clone(). |
protected long |
nextDelay(long step)
Returns a random delay but making sure there is exactly one invocation in each consecutive interval of length step. |
| Methods inherited from class peersim.edsim.NextCycleEvent |
|---|
execute |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegRandNextCycle(java.lang.String n)
| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class NextCycleEventjava.lang.CloneNotSupportedExceptionprotected long nextDelay(long step)
step. The beginning of these
intervals is defined by the first invocation which is in turn defined by
CDScheduler that initiates the protocol in question.
nextDelay in class NextCycleEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||