org.grinvin.factories
Interface Factory
- GraphFactory, InvariantFactory, VisualFactory, VisualGraphFactory
- AbstractGraphFactory
An object which can be used to create other objects. This is a common superinterface
of several factory classes, each generating their own type of object. The general idea
is to first set the parameter values for this factory, by means of
setParameterValues(Object[])
and then to create a specific object by calling a
create...
method, which is
specific for each implementation of this interface.
getParameterValues
public Object[] getParameterValues()
Return the (current) parameter values.
getParameters
public ParameterList getParameters()
Returns the list of parameters accepted by this factory.
setParameterValues
public void setParameterValues(Object[] values)
throws FactoryParameterException
Initialize the factory with new parameter values.