gov.sandia.cognition.factory
Interface Factory<CreatedType>

Type Parameters:
CreatedType - The type of object that the factory creates.
All Known Subinterfaces:
SufficientStatistic<DataType,DistributionType>
All Known Implementing Classes:
AbstractSufficientStatistic, BayesianLinearRegression.IncrementalEstimator.SufficientStatistic, BayesianRobustLinearRegression.IncrementalEstimator.SufficientStatistic, ConstructorBasedFactory, DefaultConfusionMatrix.Factory, DefaultDataDistribution.DefaultFactory, DefaultFactory, KMeansFactory, MultivariateGaussian.SufficientStatistic, MultivariateGaussian.SufficientStatisticCovarianceInverse, PrototypeFactory, UnivariateGaussian.SufficientStatistic

@CodeReview(reviewer="Kevin R. Dixon",
            date="2008-12-02",
            changesNeeded=false,
            comments={"I personally don\'t believe this class will be useful.","However, I will defer... the interface itself is fine."})
public interface Factory<CreatedType>

The Factory interface defines a very general interface for a factory object that can be used to create some other type of object.

Since:
2.1
Author:
Justin Basilico

Method Summary
 CreatedType create()
          Creates a new instance of an object.
 

Method Detail

create

CreatedType create()
Creates a new instance of an object.

Returns:
A newly created object.