peersim.core
Interface Protocol

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
CDProtocol, EDProtocol<T>, MaliciousProtocol, Transport
All Known Implementing Classes:
AverageED, AverageFunction, AvgBalance, BasicBalance, DaemonProtocol, E2ETransport, IdleProtocol, InetCoordinates, OracleIdleProtocol, SimpleNewscast, SingleValueHolder, TestVectors, UniformRandomTransport, UnreliableTransport

public interface Protocol
extends java.lang.Cloneable

Interface to identify protocols.


Method Summary
 java.lang.Object clone()
          Returns a clone of the protocol.
 

Method Detail

clone

java.lang.Object clone()
Returns a clone of the protocol. It is important to pay attention to implement this carefully because in peersim all nodes are generated by cloning except a prototype node. That is, the constructor of protocols is used only to construct the prototype. Initialization can be done via Controls.