peersim.dynamics
Interface NodeInitializer

All Known Implementing Classes:
CDScheduler, MethodInvoker, RandNI, StarNI, UniformDistribution, VectCopy

public interface NodeInitializer

Generic interface to initialize a node before inserting it into the simulation. Other components like DynamicNetwork can use a NodeInitializer. It is designed to allow maximal flexibility therefore poses virtually no restrictions on the implementation. It can even be used to implement initializations that require global knowledge of the system.


Method Summary
 void initialize(Node n)
          Performs arbitrary initializations on the given node.
 

Method Detail

initialize

void initialize(Node n)
Performs arbitrary initializations on the given node. It is guaranteed that this is called before inserting the node into the network.