public class CogxelVectorCollectionConverter extends java.lang.Object implements CogxelConverter<java.util.Collection<Vector>>
Constructor and Description |
---|
CogxelVectorCollectionConverter(CogxelVectorCollectionConverter other)
Copy Constructor
|
CogxelVectorCollectionConverter(CogxelVectorConverter... vectorConverters)
Creates a new instance of CogxelVectorCollectionConverter
|
CogxelVectorCollectionConverter(java.util.Collection<CogxelVectorConverter> cogxelVectorConverters)
Creates a new instance of CogxelVectorCollectionConverter
|
Modifier and Type | Method and Description |
---|---|
CogxelVectorCollectionConverter |
clone()
Creates a new clone (shallow copy) of this object.
|
java.util.ArrayList<Vector> |
fromCogxels(CogxelState cogxels)
Converts from a CogxelState object to an object of type DataType.
|
java.util.Collection<CogxelVectorConverter> |
getCogxelVectorConverters()
Getter for cogxelVectorConverters
|
int |
getNumVectors()
Gets the number of Vectors that this class converts
|
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets the SemanticIdentifierMap used by this converter.
|
protected void |
setCogxelVectorConverters(java.util.Collection<CogxelVectorConverter> cogxelVectorConverters)
Setter for cogxelVectorConverters
|
void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the SemanticIdentifierMap that the converter is to use.
|
void |
toCogxels(java.util.Collection<Vector> data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState.
|
public CogxelVectorCollectionConverter(java.util.Collection<CogxelVectorConverter> cogxelVectorConverters)
cogxelVectorConverters
- Collection of CogxelVectorConverters that do the heavy liftingpublic CogxelVectorCollectionConverter(CogxelVectorConverter... vectorConverters)
vectorConverters
- Array of CogxelVectorConverters that do the heavy liftingpublic CogxelVectorCollectionConverter(CogxelVectorCollectionConverter other)
other
- CogxelVectorCollectionConverter to copypublic CogxelVectorCollectionConverter clone()
clone
in interface CogxelConverter<java.util.Collection<Vector>>
clone
in interface CloneableSerializable
clone
in class java.lang.Object
public java.util.ArrayList<Vector> fromCogxels(CogxelState cogxels)
fromCogxels
in interface CogxelConverter<java.util.Collection<Vector>>
cogxels
- The CogxelState to convert to DataType.public void toCogxels(java.util.Collection<Vector> data, CogxelState cogxels)
toCogxels
in interface CogxelConverter<java.util.Collection<Vector>>
data
- The object to convert into the CogxelState.cogxels
- The CogxelState to update with the converted data.public SemanticIdentifierMap getSemanticIdentifierMap()
getSemanticIdentifierMap
in interface CogxelConverter<java.util.Collection<Vector>>
public void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
setSemanticIdentifierMap
in interface CogxelConverter<java.util.Collection<Vector>>
semanticIdentifierMap
- The SemanticIdentifierMap the converter is
to use.public int getNumVectors()
public java.util.Collection<CogxelVectorConverter> getCogxelVectorConverters()
protected void setCogxelVectorConverters(java.util.Collection<CogxelVectorConverter> cogxelVectorConverters)
cogxelVectorConverters
- Collection of CogxelVectorConverters that do the heavy lifting