All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----openstar.generic.ParamSet | +----openstar.generic.Factory | +----collage.generic.PartFactory
For a conceptual overview, refer to the description of the
Edge
class in the kernel package, and to the
description of Factory
in the openstar.generic
package.
This class provides a common framework for the creation of user-defined parts that implement specific shapes and/or behaviour. It can be used, for example, by a generic collage grammar parser, or other tools, to instantiate parts of previously unknown classes.
Normally, one will derive an own class from PartFactory that implements
the specific parameters and creates instances of arbitrary
Edge
objects. However, it is also possible to use the PartFactory
class directly. In this case, the generated Edge
objects
are instances of class Part
, which is a generic part class
that accepts arbitrary parameters.
protected final static String DIMENSIONS
public PartFactory()
public Object create()
All objects created from descendants of this factory class must
return Edge
-objects. However, this cannot be
enforced at compile-time due to the generic character of the
factory mechanism.
All Packages Class Hierarchy This Package Previous Next Index