GraphLab Project

graphlab.library.algorithms
Class Algorithm

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

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.
protected  EventDispatcher getDispatcher()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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.

getDispatcher

protected EventDispatcher getDispatcher()

GraphLab Project