urv.emulator.topology.graph
Class GraphChanges

java.lang.Object
  extended by urv.emulator.topology.graph.GraphChanges

public class GraphChanges
extends java.lang.Object

This class keeps all the changes that must be performed on a graph for a certain instant

Author:
Marcel Arrufat Arias

Constructor Summary
GraphChanges()
           
 
Method Summary
 void addGraphEvent(int timeInterval, GraphEvent information)
           
 boolean performChangesUntilTimeInterval(java.lang.Integer currentTimeInterval, NetworkGraph<Node,Weight> networkGraph)
          Performs the changes stored whose timeInterval is less than currentTimeInterval
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphChanges

public GraphChanges()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addGraphEvent

public void addGraphEvent(int timeInterval,
                          GraphEvent information)

performChangesUntilTimeInterval

public boolean performChangesUntilTimeInterval(java.lang.Integer currentTimeInterval,
                                               NetworkGraph<Node,Weight> networkGraph)
Performs the changes stored whose timeInterval is less than currentTimeInterval

Parameters:
currentTimeInterval -
networkGraph -