nz.ac.waikato.mcennis.rat.graph
Class GraphFactory

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.GraphFactory

public class GraphFactory
extends java.lang.Object

Create a Graph object of the given type with the given arguments


Constructor Summary
protected GraphFactory()
          Creates a new instance of GraphFactory
 
Method Summary
 Graph create(java.util.Properties args)
          Create a graph object without directly exposing the underlying types Types of graphs are pulled from the "Graph" key with "GraphID" for their unique ID.
 java.lang.String[] getKnownGraphs()
           
static GraphFactory newInstance()
          return a singleton of this type, creating it if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFactory

protected GraphFactory()
Creates a new instance of GraphFactory

Method Detail

newInstance

public static GraphFactory newInstance()
return a singleton of this type, creating it if necessary

Returns:
signelton instance of GraphFactory

create

public Graph create(java.util.Properties args)
Create a graph object without directly exposing the underlying types Types of graphs are pulled from the "Graph" key with "GraphID" for their unique ID.

Parameters:
args - parameters for the new graph
Returns:
newly created Graph object

getKnownGraphs

public java.lang.String[] getKnownGraphs()