|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeersim.edsim.NextCycleEvent
peersim.edsim.RandNextCycle
public class RandNextCycle
Implements random delay between calling the nextCycle method of the protocol.
nextDelay(long)
Constructor Summary | |
---|---|
RandNextCycle(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 with uniform distribution between 1 (inclusive) and 2* step (exclusive)
(expected value is therefore 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 RandNextCycle(java.lang.String n)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class NextCycleEvent
java.lang.CloneNotSupportedException
protected long nextDelay(long step)
step
(exclusive)
(expected value is therefore step
).
nextDelay
in class NextCycleEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |