Fairness
Class PublisherSendEvent

java.lang.Object
  extended by Fairness.PublisherSendEvent
All Implemented Interfaces:
SimulationEvent

public class PublisherSendEvent
extends java.lang.Object
implements SimulationEvent

PublisherSendEvent implements the event when the publisher sends a packet on each stripe to the roots of each stripe.


Constructor Summary
PublisherSendEvent(TreeManager manager)
          Constructs a new PublisherSendEvent with the TreeManager that is needed to get all of the root nodes for each stripe.
 
Method Summary
 void perform(Simulation sim, double time)
          Performs the event by sending a packet to each stripe root Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublisherSendEvent

public PublisherSendEvent(TreeManager manager)
Constructs a new PublisherSendEvent with the TreeManager that is needed to get all of the root nodes for each stripe.

Method Detail

perform

public void perform(Simulation sim,
                    double time)
Performs the event by sending a packet to each stripe root Node.

Specified by:
perform in interface SimulationEvent
Parameters:
sim - non-null Simulation
time - simulation time, exactly equal to the result of Simulation.getTime()