gov.sandia.cognition.math.matrix
Class DefaultVectorFactoryContainer

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.math.matrix.DefaultVectorFactoryContainer
All Implemented Interfaces:
VectorFactoryContainer, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
AbstractLocalTermWeighter, BagOfWordsTransform, CogxelVectorConverter, DivergencesEvaluator, SubVectorEvaluator

public class DefaultVectorFactoryContainer
extends AbstractCloneableSerializable
implements VectorFactoryContainer

A default implementation of the VectorFactoryContainer interface. A useful base class for implementing classes that contain vector factories.

Since:
3.1
Author:
Justin Basilico
See Also:
Serialized Form

Field Summary
protected  VectorFactory<? extends Vector> vectorFactory
          The vector factory used to create new vectors.
 
Constructor Summary
DefaultVectorFactoryContainer()
          Creates a new DefaultVectorFactoryContainer.
DefaultVectorFactoryContainer(VectorFactory<? extends Vector> vectorFactory)
          Creates a new DefaultVectorFactoryContainer with the given factory.
 
Method Summary
 VectorFactory<? extends Vector> getVectorFactory()
          Gets the vector factory the object to use to create new vectors.
 void setVectorFactory(VectorFactory<? extends Vector> vectorFactory)
          Sets the vector factory for the object to use to create new vectors.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vectorFactory

protected VectorFactory<? extends Vector> vectorFactory
The vector factory used to create new vectors.

Constructor Detail

DefaultVectorFactoryContainer

public DefaultVectorFactoryContainer()
Creates a new DefaultVectorFactoryContainer.


DefaultVectorFactoryContainer

public DefaultVectorFactoryContainer(VectorFactory<? extends Vector> vectorFactory)
Creates a new DefaultVectorFactoryContainer with the given factory.

Parameters:
vectorFactory - The vector factory to use to create vectors.
Method Detail

getVectorFactory

public VectorFactory<? extends Vector> getVectorFactory()
Gets the vector factory the object to use to create new vectors.

Specified by:
getVectorFactory in interface VectorFactoryContainer
Returns:
The vector factory.

setVectorFactory

public void setVectorFactory(VectorFactory<? extends Vector> vectorFactory)
Sets the vector factory for the object to use to create new vectors.

Parameters:
vectorFactory - The vector factory.