public class CogxelMatrixConverter extends Object implements CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>
| Constructor and Description |
|---|
CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters)
Creates a new instance of CogxelMatrixConverter
|
CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new instance of CogxelMatrixConverter
|
CogxelMatrixConverter(CogxelMatrixConverter other)
Copy constructor
|
CogxelMatrixConverter(Collection<? extends Iterable<SemanticLabel>> columns)
Creates a new instance of CogxelMatrixConverter
|
| Modifier and Type | Method and Description |
|---|---|
CogxelMatrixConverter |
clone() |
gov.sandia.cognition.math.matrix.Matrix |
fromCogxels(CogxelState cogxels)
Converts from a CogxelState object to an object of type DataType.
|
ArrayList<CogxelVectorConverter> |
getColumnConverters()
Getter for columnConverters
|
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets the SemanticIdentifierMap used by this converter.
|
protected void |
setColumnConverters(ArrayList<CogxelVectorConverter> columnConverters)
Setter for columnConverters
|
void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the SemanticIdentifierMap that the converter is to use.
|
void |
toCogxels(gov.sandia.cognition.math.matrix.Matrix data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState.
|
public CogxelMatrixConverter(Collection<? extends Iterable<SemanticLabel>> columns)
columns - Iterable of SemanticLabels to create CogxelVectorConverters frompublic CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters)
columnConverters - Collection CogxelVectorConverters that convert the columns of the matrixpublic CogxelMatrixConverter(ArrayList<CogxelVectorConverter> columnConverters, SemanticIdentifierMap semanticIdentifierMap)
columnConverters - Collection CogxelVectorConverters that convert the columns of the matrixsemanticIdentifierMap - SemanticIdentifierMap for the converterpublic CogxelMatrixConverter(CogxelMatrixConverter other)
other - CogxelMatrixConverter to clonepublic CogxelMatrixConverter clone()
clone in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>clone in interface gov.sandia.cognition.util.CloneableSerializableclone in class Objectpublic SemanticIdentifierMap getSemanticIdentifierMap()
getSemanticIdentifierMap in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>public void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
setSemanticIdentifierMap in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>semanticIdentifierMap - The SemanticIdentifierMap the converter is
to use.public gov.sandia.cognition.math.matrix.Matrix fromCogxels(CogxelState cogxels)
fromCogxels in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>cogxels - The CogxelState to convert to DataType.public void toCogxels(gov.sandia.cognition.math.matrix.Matrix data,
CogxelState cogxels)
toCogxels in interface CogxelConverter<gov.sandia.cognition.math.matrix.Matrix>data - The object to convert into the CogxelState.cogxels - The CogxelState to update with the converted data.public ArrayList<CogxelVectorConverter> getColumnConverters()
protected void setColumnConverters(ArrayList<CogxelVectorConverter> columnConverters)
columnConverters - Collection CogxelVectorConverters that convert the columns of the matrixCopyright © 2006-2015 Sandia National Laboratories. All Rights Reserved.