peersim.cdsim
Interface CDProtocol

All Superinterfaces:
java.lang.Cloneable, Protocol
All Known Implementing Classes:
AverageED, AverageFunction, AvgBalance, BasicBalance, DaemonProtocol, SimpleNewscast

public interface CDProtocol
extends Protocol

Defines cycle driven protocols, that is, protocols that have a periodic activity in regular time intervals.


Method Summary
 void nextCycle(Node node, int protocolID)
          A protocol which is defined by performing an algorithm in more or less regular periodic intervals.
 
Methods inherited from interface peersim.core.Protocol
clone
 

Method Detail

nextCycle

void nextCycle(Node node,
               int protocolID)
A protocol which is defined by performing an algorithm in more or less regular periodic intervals. This method is called by the simulator engine once in each cycle with the appropriate parameters.

Parameters:
node - the node on which this component is run
protocolID - the id of this protocol in the protocol array