org.grinvin.factories

Interface Factory

Known Subinterfaces:
GraphFactory, InvariantFactory, VisualFactory, VisualGraphFactory
Known Implementing Classes:
AbstractGraphFactory

public interface Factory

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.

Method Summary

Object[]
getParameterValues()
Return the (current) parameter values.
ParameterList
getParameters()
Returns the list of parameters accepted by this factory.
void
setParameterValues(Object[] values)
Initialize the factory with new parameter values.

Method Details

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.