SimJava 2.0.1

eduni.simdiag
Class GraphLoader

Object
  extended by GraphLoader
All Implemented Interfaces:
Runnable

public class GraphLoader
extends Object
implements Runnable

Converts graph from URL to GraphEventListener format.


Field Summary
(package private)  Thread thread
           
(package private)  String urlName
           
 
Constructor Summary
GraphLoader(String urlName)
          Create a graph loader with the given url
 
Method Summary
 void addGraphListener(GraphListener l)
           
 void forwardGraph(GraphEventObject e)
           
protected  String nextLine(BufferedReader r)
           
 void removeGraphListener(GraphListener l)
           
 void run()
           
 void startLoading()
          Called after output has been wired
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thread

transient Thread thread

urlName

String urlName
Constructor Detail

GraphLoader

public GraphLoader(String urlName)
Create a graph loader with the given url

Method Detail

startLoading

public void startLoading()
Called after output has been wired


nextLine

protected String nextLine(BufferedReader r)

run

public void run()
Specified by:
run in interface Runnable

addGraphListener

public void addGraphListener(GraphListener l)

removeGraphListener

public void removeGraphListener(GraphListener l)

forwardGraph

public void forwardGraph(GraphEventObject e)

SimJava 2.0.1

The University of Edinburgh, 2009