|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DataType - Type of data to convert to/from Cogxelspublic interface CogxelConverter<DataType>
The CogxelConverter interface defines the functionality required for an object to act as a converter from some DataType to and from a CogxelState object. This is used to adapt components that use other data types to the Cognitive Framework. It is important that the CogxelConverter not keep dynamic state and that it supports the clone method properly.
| Method Summary | |
|---|---|
CogxelConverter<DataType> |
clone()
|
DataType |
fromCogxels(CogxelState cogxels)
Converts from a CogxelState object to an object of type DataType. |
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets the SemanticIdentifierMap used by this converter. |
void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the SemanticIdentifierMap that the converter is to use. |
void |
toCogxels(DataType data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState. |
| Method Detail |
|---|
DataType fromCogxels(CogxelState cogxels)
cogxels - The CogxelState to convert to DataType.
void toCogxels(DataType data,
CogxelState cogxels)
data - The object to convert into the CogxelState.cogxels - The CogxelState to update with the converted data.SemanticIdentifierMap getSemanticIdentifierMap()
void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
semanticIdentifierMap - The SemanticIdentifierMap the converter is
to use.CogxelConverter<DataType> clone()
clone in interface gov.sandia.cognition.util.CloneableSerializable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||