org.grinvin.factories.graphs

Interface GraphFactory

All Superinterfaces:
Factory, NamedFactory
Known Implementing Classes:
AbstractGraphFactory

public interface GraphFactory
extends NamedFactory

An object that satisfies this interface can be used to create a graph and store it into a graph bundle. To have a factory create a graph, first set its parameters using GraphFactory and then call createGraph(GraphBundle).

Method Summary

URI
createGraph(GraphBundle graphBundle)
Create a graph and store it into the given graph bundle.
String
getId()
Return the string that uniquely identifies this factory.
URI
getURI()
Return the URI of the graph which will be created from this factory when using the current parameter values.

Methods inherited from interface org.grinvin.factories.Factory

getParameterValues, getParameters, setParameterValues

Methods inherited from interface org.grinvin.factories.NamedFactory

getDescription, getIconPath, getLongName, getName, getSelectedIconPath

Method Details

createGraph

public URI createGraph(GraphBundle graphBundle)
            throws FactoryParameterException,
                   FactoryException
Create a graph and store it into the given graph bundle.
Returns:
an URI which represents the graph being created.
Throws:
FactoryParameterException - when the parameters for this graph were not set in an appropriate manner before this method was called.

getId

public String getId()
Return the string that uniquely identifies this factory. This id is typically used for retreiving documentation pages for this factory and for building URIs for the graphs created by this factory.

getURI

public URI getURI()
            throws FactoryParameterException
Return the URI of the graph which will be created from this factory when using the current parameter values.