graphlab.library.algorithms
Class Algorithm

java.lang.Object
  extended by graphlab.library.algorithms.Algorithm
All Implemented Interfaces:
AlgorithmInterface
Direct Known Subclasses:
AcyclicSP, AnimatedPrim, AppVertexCover, BellmanFord, BiconnectedComponents, BreadthFirstSearch, DepthFirstSearch, Dijkstra, GJoin, GUnion, Johnson, Kruskal, Prim, SampleColoring

public abstract class Algorithm
extends java.lang.Object
implements AlgorithmInterface

Author:
Omid Aladini Animated algorithms should extend this class.

Constructor Summary
Algorithm()
           
 
Method Summary
 void acceptEventDispatcher(EventDispatcher D)
          Gets a reference to the dispatcher object responsible for dispatching events.
 void dispatchEvent(Event ae)
          Sends the event ae to the dispatcher.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Algorithm

public Algorithm()
Method Detail

acceptEventDispatcher

public void acceptEventDispatcher(EventDispatcher D)
Gets a reference to the dispatcher object responsible for dispatching events.

Specified by:
acceptEventDispatcher in interface AlgorithmInterface
Parameters:
D - Reference to the dispatcher object.

dispatchEvent

public void dispatchEvent(Event ae)
Sends the event ae to the dispatcher.

Parameters:
ae - The event object to be dispatched.