public class CogxelVectorCollectionConverter extends Object implements CogxelConverter<Collection<gov.sandia.cognition.math.matrix.Vector>>
| Constructor and Description |
|---|
CogxelVectorCollectionConverter(CogxelVectorCollectionConverter other)
Copy Constructor
|
CogxelVectorCollectionConverter(CogxelVectorConverter... vectorConverters)
Creates a new instance of CogxelVectorCollectionConverter
|
CogxelVectorCollectionConverter(Collection<CogxelVectorConverter> cogxelVectorConverters)
Creates a new instance of CogxelVectorCollectionConverter
|
| Modifier and Type | Method and Description |
|---|---|
CogxelVectorCollectionConverter |
clone() |
ArrayList<gov.sandia.cognition.math.matrix.Vector> |
fromCogxels(CogxelState cogxels)
Converts from a CogxelState object to an object of type DataType.
|
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(Collection<CogxelVectorConverter> cogxelVectorConverters)
Setter for cogxelVectorConverters
|
void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the SemanticIdentifierMap that the converter is to use.
|
void |
toCogxels(Collection<gov.sandia.cognition.math.matrix.Vector> data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState.
|
public CogxelVectorCollectionConverter(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<Collection<gov.sandia.cognition.math.matrix.Vector>>clone in interface gov.sandia.cognition.util.CloneableSerializableclone in class Objectpublic ArrayList<gov.sandia.cognition.math.matrix.Vector> fromCogxels(CogxelState cogxels)
fromCogxels in interface CogxelConverter<Collection<gov.sandia.cognition.math.matrix.Vector>>cogxels - The CogxelState to convert to DataType.public void toCogxels(Collection<gov.sandia.cognition.math.matrix.Vector> data, CogxelState cogxels)
toCogxels in interface CogxelConverter<Collection<gov.sandia.cognition.math.matrix.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<Collection<gov.sandia.cognition.math.matrix.Vector>>public void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
setSemanticIdentifierMap in interface CogxelConverter<Collection<gov.sandia.cognition.math.matrix.Vector>>semanticIdentifierMap - The SemanticIdentifierMap the converter is
to use.public int getNumVectors()
public Collection<CogxelVectorConverter> getCogxelVectorConverters()
protected void setCogxelVectorConverters(Collection<CogxelVectorConverter> cogxelVectorConverters)
cogxelVectorConverters - Collection of CogxelVectorConverters that do the heavy liftingCopyright © 2006–2019 Sandia National Laboratories. All rights reserved.