|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.AbstractFactory<Graph>
nz.ac.waikato.mcennis.rat.graph.GraphFactory
public class GraphFactory
Create a Graph object of the given type with the given arguments
| Field Summary | |
|---|---|
static boolean |
isInitialized
|
| Fields inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
|---|
map, properties |
| Constructor Summary | |
|---|---|
protected |
GraphFactory()
Creates a new instance of GraphFactory |
| Method Summary | |
|---|---|
Graph |
create(Properties props)
Create the given object using the settings in the Properties object. |
Graph |
create(java.lang.String id)
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. |
Graph |
create(java.lang.String id,
Properties parameters)
|
Parameter |
getClassParameter()
Return the parameter containing the name of the default type produced by this object. |
java.lang.String[] |
getKnownGraphs()
|
static void |
initialization()
|
static GraphFactory |
newInstance()
return a singleton of this type, creating it if necessary |
| Methods inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
|---|
addDefaultProperty, addType, check, check, getKnownTypes, getParameter, getParameter, setDefaultProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean isInitialized
| Constructor Detail |
|---|
protected GraphFactory()
| Method Detail |
|---|
public static GraphFactory newInstance()
public static void initialization()
public Graph create(java.lang.String id)
args - parameters for the new graph
public Graph create(java.lang.String id,
Properties parameters)
public Graph create(Properties props)
AbstractFactory
create in class AbstractFactory<Graph>props - parameters used to control the factory.
public java.lang.String[] getKnownGraphs()
public Parameter getClassParameter()
AbstractFactory
getClassParameter in class AbstractFactory<Graph>
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||