|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.sandia.cognition.util.AbstractCloneableSerializable
gov.sandia.cognition.framework.learning.converter.AbstractCogxelConverter<Boolean>
gov.sandia.cognition.framework.learning.converter.CogxelBooleanConverter
public class CogxelBooleanConverter
Implements a CogxelConverter that encodes booleans as positive and
negative values (+1/-1).
| Field Summary |
|---|
| Fields inherited from class gov.sandia.cognition.framework.learning.converter.AbstractCogxelConverter |
|---|
semanticIdentifierMap |
| Constructor Summary | |
|---|---|
CogxelBooleanConverter()
Creates a new instance of CogxelBooleanConverter. |
|
CogxelBooleanConverter(SemanticLabel label)
Creates a new instance of CogxelDoubleConverter. |
|
CogxelBooleanConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new instance of CogxelBooleanConverter. |
|
CogxelBooleanConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap,
CogxelFactory cogxelFactory)
Creates a new instance of CogxelBooleanConverter. |
|
| Method Summary | |
|---|---|
protected void |
buildIdentifierCache()
Rebuilds the cache of SemanticIdentifier objects. |
CogxelBooleanConverter |
clone()
|
boolean |
equals(CogxelBooleanConverter other)
This converter equals another converter of the same type if their labels are equal. |
boolean |
equals(Object other)
|
Boolean |
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. |
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 |
toCogxels(Boolean data,
CogxelState cogxels)
Converts from an object of type DataType to an updated CogxelState. |
| Methods inherited from class gov.sandia.cognition.framework.learning.converter.AbstractCogxelConverter |
|---|
getSemanticIdentifierMap, setSemanticIdentifierMap |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CogxelBooleanConverter()
public CogxelBooleanConverter(SemanticLabel label)
label - The label for the Cogxel to convert.
public CogxelBooleanConverter(SemanticLabel label,
SemanticIdentifierMap semanticIdentifierMap)
label - The label for the Cogxel to convert.semanticIdentifierMap - The SemanticIdentifierMap for the
converter.
public CogxelBooleanConverter(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.| Method Detail |
|---|
public CogxelBooleanConverter clone()
CogxelConverter
clone in interface CogxelConverter<Boolean>clone in interface gov.sandia.cognition.util.CloneableSerializableclone in class AbstractCogxelConverter<Boolean>public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(CogxelBooleanConverter other)
other - The other converter.
protected void buildIdentifierCache()
AbstractCogxelConverter
buildIdentifierCache in class AbstractCogxelConverter<Boolean>public Boolean fromCogxels(CogxelState cogxels)
CogxelConverter
cogxels - The CogxelState to convert to DataType.
public void toCogxels(Boolean data,
CogxelState cogxels)
CogxelConverter
data - The object to convert into the CogxelState.cogxels - The CogxelState to update with the converted data.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 | |||||||||