edu.indiana.iucbrf.domain.componentfactory
Class StandardComponentFactory
java.lang.Object
edu.indiana.iucbrf.domain.componentfactory.AbstractComponentFactory
edu.indiana.iucbrf.domain.componentfactory.StandardComponentFactory
- All Implemented Interfaces:
- ComponentFactory, java.io.Serializable
- Direct Known Subclasses:
- RDBComponentFactory
public class StandardComponentFactory
- extends AbstractComponentFactory
Provides some standard component factory method implementations that don't involve a database.
- See Also:
- Serialized Form
Method Summary |
CCBRFeatureSpec |
constructCCBRFeatureSpec(FeatureKey featureKey,
java.lang.String description,
java.lang.String questionText,
java.lang.String typeName)
|
FeatureCollection |
constructFeatureCollection(double[] featureValues,
int collectionType)
|
FeatureCollection |
constructFeatureCollection(DoubleCollection someFeatureValues,
int collectionType)
|
FeatureCollection |
constructFeatureCollection(FeatureKey[] keys,
Feature[] features,
int collectionType)
|
FeatureSpec |
constructFeatureSpec(FeatureKey featureKey,
java.lang.String description,
java.lang.String typeName)
|
Problem |
constructProblem(FeatureCollection featureCollection)
Construct a problem in this domain, containing the given features. |
FeatureSpecCollection |
constructProblemFeatureSpecCollection()
|
FeatureSpecCollection |
constructProblemFeatureSpecCollection(FeatureKey[] featureKeys,
java.lang.String[] featureDescriptions,
java.lang.String[] featureTypeClassNames)
|
FeatureSpecCollection |
constructProblemFeatureSpecCollection(FeatureKey[] featureKeys,
java.lang.String[] featureDescriptions,
java.lang.String[] questionTexts,
java.lang.String[] featureTypeClassNames)
|
Question |
constructQuestion(FeatureKey key,
java.lang.String text)
|
Solution |
constructSolution(FeatureCollection featureCollection)
Construct a solution, containing the given features. |
FeatureSpecCollection |
constructSolutionFeatureSpecCollection()
|
FeatureSpecCollection |
constructSolutionFeatureSpecCollection(FeatureKey[] featureKeys,
java.lang.String[] featureDescriptions,
java.lang.String[] featureTypeClassNames)
|
Methods inherited from class edu.indiana.iucbrf.domain.componentfactory.AbstractComponentFactory |
constructFeature, constructFeature, constructFeature, constructFeatureCollection, constructFeatureCollection, constructFeatureKeys, constructProblem, constructProblem, constructProblem, constructProblemFeature, constructProblemFeature, constructProblemFeature, constructRunningAggregate, constructRunningAggregate, constructSolution, constructSolution, constructSolution, constructSolution, constructSolutionFeature, constructSolutionFeature, constructSolutionFeature, setDomain |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardComponentFactory
public StandardComponentFactory()
- Creates a new instance of StandardComponentFactory
constructProblem
public Problem constructProblem(FeatureCollection featureCollection)
- Construct a problem in this domain, containing the given features.
constructSolution
public Solution constructSolution(FeatureCollection featureCollection)
- Construct a solution, containing the given features.
constructFeatureCollection
public FeatureCollection constructFeatureCollection(FeatureKey[] keys,
Feature[] features,
int collectionType)
constructFeatureCollection
public FeatureCollection constructFeatureCollection(double[] featureValues,
int collectionType)
constructFeatureCollection
public FeatureCollection constructFeatureCollection(DoubleCollection someFeatureValues,
int collectionType)
constructFeatureSpec
public FeatureSpec constructFeatureSpec(FeatureKey featureKey,
java.lang.String description,
java.lang.String typeName)
constructCCBRFeatureSpec
public CCBRFeatureSpec constructCCBRFeatureSpec(FeatureKey featureKey,
java.lang.String description,
java.lang.String questionText,
java.lang.String typeName)
constructSolutionFeatureSpecCollection
public FeatureSpecCollection constructSolutionFeatureSpecCollection()
constructSolutionFeatureSpecCollection
public FeatureSpecCollection constructSolutionFeatureSpecCollection(FeatureKey[] featureKeys,
java.lang.String[] featureDescriptions,
java.lang.String[] featureTypeClassNames)
constructProblemFeatureSpecCollection
public FeatureSpecCollection constructProblemFeatureSpecCollection()
constructProblemFeatureSpecCollection
public FeatureSpecCollection constructProblemFeatureSpecCollection(FeatureKey[] featureKeys,
java.lang.String[] featureDescriptions,
java.lang.String[] featureTypeClassNames)
constructProblemFeatureSpecCollection
public FeatureSpecCollection constructProblemFeatureSpecCollection(FeatureKey[] featureKeys,
java.lang.String[] featureDescriptions,
java.lang.String[] questionTexts,
java.lang.String[] featureTypeClassNames)
constructQuestion
public Question constructQuestion(FeatureKey key,
java.lang.String text)