pacemaker
Class EventAggregation

java.lang.Object
  extended by pacemaker.EventAggregation
All Implemented Interfaces:
java.lang.Cloneable, peersim.core.Protocol, peersim.edsim.EDProtocol, peersim.vector.SingleValue

public class EventAggregation
extends java.lang.Object
implements peersim.vector.SingleValue, peersim.edsim.EDProtocol


Constructor Summary
EventAggregation(java.lang.String prefix)
           
 
Method Summary
 java.lang.Object clone()
           
 double getValue()
           
 void processEvent(peersim.core.Node node, int pid, java.lang.Object event)
           
 void setValue(double value)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventAggregation

public EventAggregation(java.lang.String prefix)
Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in interface peersim.core.Protocol
Overrides:
clone in class java.lang.Object

processEvent

public void processEvent(peersim.core.Node node,
                         int pid,
                         java.lang.Object event)
Specified by:
processEvent in interface peersim.edsim.EDProtocol

getValue

public double getValue()
Specified by:
getValue in interface peersim.vector.SingleValue

setValue

public void setValue(double value)
Specified by:
setValue in interface peersim.vector.SingleValue