|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.sandia.cognition.framework.learning.converter.CogxelDoubleConverter
public class CogxelDoubleConverter
The CogxelDoubleConverter class converts a Cogxel to and from a double value by using its activation.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
protected void |
buildIdentifierCache()
Rebuilds the cache of SemanticIdentifier objects. |
CogxelDoubleConverter |
clone()
|
boolean |
equals(CogxelDoubleConverter other)
Returns true if the two converters have the same label. |
boolean |
equals(Object other)
|
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(Double data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public CogxelDoubleConverter clone()
clone in interface CogxelConverter<Double>clone in interface gov.sandia.cognition.util.CloneableSerializableclone in class Objectpublic boolean equals(Object other)
equals in class Objectother -
public boolean equals(CogxelDoubleConverter other)
other - Another CogxelVectorConverter.
public int hashCode()
hashCode in class Objectprotected void buildIdentifierCache()
public Double fromCogxels(CogxelState cogxels)
fromCogxels in interface CogxelConverter<Double>cogxels - The CogxelState to convert to DataType.
public void toCogxels(Double data,
CogxelState cogxels)
toCogxels in interface CogxelConverter<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<Double>public void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
setSemanticIdentifierMap in interface CogxelConverter<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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||