DataType
- Type of data to convert to/from Cogxelspublic interface CogxelConverter<DataType> extends CloneableSerializable
Modifier and Type | Method and Description |
---|---|
CogxelConverter<DataType> |
clone()
Creates a new clone (shallow copy) of this object.
|
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.
|
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 CloneableSerializable