public class CogxelDoubleConverter extends java.lang.Object implements CogxelConverter<java.lang.Double>
| Constructor and Description |
|---|
CogxelDoubleConverter()
Creates a new instance of CogxelDoubleConverter.
|
CogxelDoubleConverter(CogxelDoubleConverter other)
Creates a new instance of CogxelDoubleConverter.
|
CogxelDoubleConverter(SemanticLabel label)
Creates a new instance of CogxelDoubleConverter.
|
CogxelDoubleConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new instance of CogxelDoubleConverter.
|
CogxelDoubleConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap,
CogxelFactory cogxelFactory)
Creates a new instance of CogxelDoubleConverter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildIdentifierCache()
Rebuilds the cache of SemanticIdentifier objects.
|
CogxelDoubleConverter |
clone()
Creates a new clone (shallow copy) of this object.
|
boolean |
equals(CogxelDoubleConverter other)
Returns true if the two converters have the same label.
|
boolean |
equals(java.lang.Object other) |
java.lang.Double |
fromCogxels(CogxelState cogxels)
Converts from a CogxelState object to an object of type DataType.
|
CogxelFactory |
getCogxelFactory()
Gets the CogxelFactory used to create the Cogxels used by the converter.
|
protected SemanticIdentifier |
getIdentifier()
Gets the semantic identifier of the Cogxel to convert.
|
SemanticLabel |
getLabel()
Gets the label of the Cogxel to convert.
|
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets the SemanticIdentifierMap used by this converter.
|
int |
hashCode() |
void |
setCogxelFactory(CogxelFactory cogxelFactory)
Gets the CogxelFactory used to create the Cogxels used by the converter.
|
protected void |
setIdentifier(SemanticIdentifier identifier)
Gets the semantic identifier of the Cogxel to convert.
|
void |
setLabel(SemanticLabel label)
Sets the label of the Cogxel to convert.
|
void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the SemanticIdentifierMap that the converter is to use.
|
void |
toCogxels(java.lang.Double data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState.
|
public CogxelDoubleConverter()
public CogxelDoubleConverter(SemanticLabel label)
label - The label for the Cogxel to convert.public CogxelDoubleConverter(SemanticLabel label, SemanticIdentifierMap semanticIdentifierMap)
label - The label for the Cogxel to convert.semanticIdentifierMap - The SemanticIdentifierMap for the
converter.public CogxelDoubleConverter(SemanticLabel label, SemanticIdentifierMap semanticIdentifierMap, CogxelFactory cogxelFactory)
label - The label for the Cogxel to convert.semanticIdentifierMap - The SemanticIdentifierMap for the
converter.cogxelFactory - The CogxelFactory to use.public CogxelDoubleConverter(CogxelDoubleConverter other)
other - A CogxelDoubleConverter to copy.public CogxelDoubleConverter clone()
clone in interface CogxelConverter<java.lang.Double>clone in interface CloneableSerializableclone in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - public boolean equals(CogxelDoubleConverter other)
other - Another CogxelVectorConverter.public int hashCode()
hashCode in class java.lang.Objectprotected void buildIdentifierCache()
public java.lang.Double fromCogxels(CogxelState cogxels)
fromCogxels in interface CogxelConverter<java.lang.Double>cogxels - The CogxelState to convert to DataType.public void toCogxels(java.lang.Double data,
CogxelState cogxels)
toCogxels in interface CogxelConverter<java.lang.Double>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.lang.Double>public void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
setSemanticIdentifierMap in interface CogxelConverter<java.lang.Double>semanticIdentifierMap - The SemanticIdentifierMap the converter is
to use.public SemanticLabel getLabel()
public void setLabel(SemanticLabel label)
label - The label of the Cogxel to convert.protected SemanticIdentifier getIdentifier()
protected void setIdentifier(SemanticIdentifier identifier)
identifier - The semantic identifier of the Cogxel to convert.public CogxelFactory getCogxelFactory()
public void setCogxelFactory(CogxelFactory cogxelFactory)
cogxelFactory - The CogxelFactory used to create the Cogxels used
by the converter.