Package | Description |
---|---|
gov.sandia.cognition.framework |
Provides the interfaces for the Cognitive Framework.
|
gov.sandia.cognition.framework.learning.converter |
Provides implementations of
CogxelConverter s. |
gov.sandia.cognition.framework.lite |
Provides a lightweight implementation of the Cognitive Framework.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSemanticIdentifier
The
AbstractSemanticIdentifier class implements the basic
methods that are needed for a SemanticIdentifier to provide
a good speed improvement. |
class |
DefaultSemanticIdentifier
The
DefaultSemanticIdentifier class implements a default
version of the SemanticIdentifier interface that stores the
SemanticLabel the identifier is for and the unique identifier
integer. |
Modifier and Type | Method and Description |
---|---|
SemanticIdentifier |
DefaultSemanticIdentifierMap.addLabel(SemanticLabel label)
Adds a SemanticLabel to the map, or returns an existing
SemanticIdentifier if already in the map
|
SemanticIdentifier |
SemanticIdentifierMap.addLabel(SemanticLabel label)
Adds a SemanticLabel to the map, or returns an existing
SemanticIdentifier if already in the map
|
SemanticIdentifier |
DefaultSemanticIdentifierMap.findIdentifier(SemanticLabel label)
Queries into the map to find a SemanticLabel
|
SemanticIdentifier |
SemanticIdentifierMap.findIdentifier(SemanticLabel label)
Queries into the map to find a SemanticLabel
|
SemanticIdentifier |
SemanticIdentifierMapEvent.getIdentifier()
Gets the SemanticIdentifier involved in the event.
|
SemanticIdentifier |
Cogxel.getSemanticIdentifier()
Gets the SemanticIdentifier for the Cogxel.
|
SemanticIdentifier |
DefaultCogxel.getSemanticIdentifier()
Gets the SemanticIdentifier for the Cogxel.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<SemanticIdentifier> |
DefaultSemanticIdentifierMap.addLabels(java.util.Collection<SemanticLabel> labels)
Adds a list of SemanticLabels to the map, returning the list of
the corresponding SemanticIdentifiers for the given SemanticLabels.
|
java.util.ArrayList<SemanticIdentifier> |
SemanticIdentifierMap.addLabels(java.util.Collection<SemanticLabel> labels)
Adds a list of SemanticLabels to the map, returning the list of
the corresponding SemanticIdentifiers for the given SemanticLabels.
|
java.util.Collection<SemanticIdentifier> |
DefaultSemanticIdentifierMap.getIdentifiers()
Gets all the SemanticIdentifiers in the map.
|
java.util.Collection<SemanticIdentifier> |
SemanticIdentifierMap.getIdentifiers()
Gets all the SemanticIdentifiers in the map.
|
protected java.util.LinkedHashMap<SemanticLabel,SemanticIdentifier> |
DefaultSemanticIdentifierMap.getMapping()
Getter for mapping.
|
Modifier and Type | Method and Description |
---|---|
int |
AbstractSemanticIdentifier.compareTo(SemanticIdentifier o) |
int |
SemanticIdentifier.compareTo(SemanticIdentifier o) |
Cogxel |
CogxelFactory.createCogxel(SemanticIdentifier identifier)
Creates a new Cogxel for the given CogxelFactory from the given
SemanticIdentifier.
|
Cogxel |
DefaultCogxelFactory.createCogxel(SemanticIdentifier identifier)
Creates a new Cogxel for the given CogxelFactory from the given
SemanticIdentifier.
|
boolean |
AbstractSemanticIdentifier.equals(SemanticIdentifier other)
Determines if this identifier is equal to the given one by comparing
the identifier number only.
|
boolean |
SemanticIdentifier.equals(SemanticIdentifier other)
Determines if this identifier is equal to the given one by comparing
the identifier number only.
|
protected void |
DefaultSemanticIdentifierMap.fireSemanticIdentifierAddedEvent(SemanticIdentifier identifier)
Fires off a SemanticIdentifierMapEvent of type SemanticIdentifierAdded
for the given identifier.
|
Cogxel |
CogxelState.getCogxel(SemanticIdentifier identifier)
Gets a Cogxel from the state, if it has been previously added.
|
double |
CogxelState.getCogxelActivation(SemanticIdentifier identifier)
Gets the activation level of a Cogxel in the CogxelState.
|
Cogxel |
CogxelState.getOrCreateCogxel(SemanticIdentifier identifier,
CogxelFactory factory)
Attempts to get an existing Cogxel for a given SemanticIdentifier.
|
boolean |
CogxelState.hasCogxel(SemanticIdentifier identifier)
Returns true if there is an existing Cogxel for the given identifier and
false otherwise.
|
boolean |
CogxelState.removeCogxel(SemanticIdentifier identifier)
Removes a Cogxel from the state, if it exists.
|
void |
SemanticIdentifierMapEvent.setIdentifier(SemanticIdentifier identifier)
Sets the SemanticIdentifier involved in the event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultSemanticIdentifierMap.setMapping(java.util.LinkedHashMap<SemanticLabel,SemanticIdentifier> mapping)
Sets the mapping used by the object.
|
Constructor and Description |
---|
DefaultCogxel(SemanticIdentifier identifier)
Creates a new instance of Cogxel.
|
DefaultCogxel(SemanticIdentifier identifier,
double activation)
Creates a new instance of Cogxel.
|
SemanticIdentifierMapEvent(SemanticIdentifierMap map,
SemanticIdentifierMapEventType eventType,
SemanticIdentifier identifier)
Creates a new instance of CognitiveModelStateChangeEvent.
|
Modifier and Type | Method and Description |
---|---|
protected SemanticIdentifier |
CogxelBooleanConverter.getIdentifier()
Gets the semantic identifier of the cogxel to convert.
|
protected SemanticIdentifier |
CogxelDoubleConverter.getIdentifier()
Gets the semantic identifier of the Cogxel to convert.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.ArrayList<SemanticIdentifier> |
CogxelVectorConverter.getIdentifiers()
Gets the list of cached SemanticIdentifiers.
|
protected java.util.HashMap<SemanticIdentifier,java.lang.Integer> |
CogxelVectorConverter.getIdentifierToIndexMap()
Gets the cached mapping of SemanticIdentifier to vector index.
|
Modifier and Type | Method and Description |
---|---|
protected int |
CogxelVectorConverter.findIndexForIdentifier(SemanticIdentifier identifier)
Finds the vector index for the given SemanticIdentifier.
|
protected void |
CogxelBooleanConverter.setIdentifier(SemanticIdentifier identifier)
Gets the semantic identifier of the cogxel to convert.
|
protected void |
CogxelDoubleConverter.setIdentifier(SemanticIdentifier identifier)
Gets the semantic identifier of the Cogxel to convert.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CogxelVectorConverter.setIdentifiers(java.util.ArrayList<SemanticIdentifier> identifiers)
Sets the list of cached SemanticIdentifiers.
|
protected void |
CogxelVectorConverter.setIdentifierToIndexMap(java.util.HashMap<SemanticIdentifier,java.lang.Integer> identifierToIndexMap)
Sets the cached mapping of SemanticIdentifier to vector index.
|
Modifier and Type | Method and Description |
---|---|
SemanticIdentifier |
ArrayBasedCognitiveModelInput.getIdentifier(int index)
Gets the SemanticIdentifier of the given index in the array.
|
SemanticIdentifier |
VectorBasedCognitiveModelInput.getIdentifier(int index)
Gets the SemanticIdentifier of the given index in the array.
|
protected SemanticIdentifier[] |
ArrayBasedCognitiveModelInput.getIdentifiers()
Gets the array of identifiers.
|
protected SemanticIdentifier[] |
VectorBasedCognitiveModelInput.getIdentifiers()
Getter for identifiers
|
Modifier and Type | Method and Description |
---|---|
protected java.util.ArrayList<SemanticIdentifier> |
AbstractSemanticMemoryLite.getOutputIdentifiers()
Gets the ordered list of output identifiers.
|
Modifier and Type | Method and Description |
---|---|
Cogxel |
BooleanActivatableCogxelFactory.createCogxel(SemanticIdentifier identifier)
Creates a new Cogxel for the given CogxelFactory from the given
SemanticIdentifier.
|
abstract int |
AbstractSemanticMemoryLite.findInputIndexForIdentifier(SemanticIdentifier semanticIdentifier)
Finds the input vector index for a given identifier.
|
int |
MutableSemanticMemoryLite.findInputIndexForIdentifier(SemanticIdentifier semanticIdentifier)
Finds the input vector index for a given identifier.
|
int |
SharedSemanticMemoryLite.findInputIndexForIdentifier(SemanticIdentifier semanticIdentifier)
Finds the input vector index for a given identifier.
|
Cogxel |
CogxelStateLite.getCogxel(SemanticIdentifier identifier)
Gets a Cogxel from the state, if it has been previously added.
|
double |
CogxelStateLite.getCogxelActivation(SemanticIdentifier identifier)
Gets the activation level of a Cogxel in the CogxelState.
|
Cogxel |
CogxelStateLite.getOrCreateCogxel(SemanticIdentifier identifier,
CogxelFactory factory)
Attempts to get an existing Cogxel for a given SemanticIdentifier.
|
boolean |
CogxelStateLite.hasCogxel(SemanticIdentifier identifier)
Returns true if there is an existing Cogxel for the given identifier and
false otherwise.
|
boolean |
CogxelStateLite.removeCogxel(SemanticIdentifier identifier)
Removes a Cogxel from the state, if it exists.
|
protected void |
VectorBasedCognitiveModelInput.setIdentifiers(SemanticIdentifier[] identifiers)
Setter for identifiers
|
Constructor and Description |
---|
ArrayBasedCognitiveModelInput(SemanticIdentifier[] identifiers,
double[] values)
Creates a new instance of ArrayBasedCognitiveModelInput using the two
given arrays underneath by copying them.
|
ArrayBasedCognitiveModelInput(SemanticIdentifier[] identifiers,
double[] values,
boolean copy)
Creates a new instance of ArrayBasedCognitiveModelInput using the two
given arrays underneath.
|
BooleanActivatableCogxel(SemanticIdentifier identifier)
Creates a new instance of BooleanActivatableCogxel.
|
BooleanActivatableCogxel(SemanticIdentifier identifier,
boolean activated)
Creates a new instance of BooleanActivatableCogxel.
|
BooleanActivatableCogxel(SemanticIdentifier identifier,
double activation)
Creates a new instance of BooleanActivatableCogxel.
|
BooleanActivatableCogxel(SemanticIdentifier identifier,
double activation,
boolean activated)
Creates a new instance of BooleanActivatableCogxel.
|
VectorBasedCognitiveModelInput(SemanticIdentifier[] identifiers,
Vector values)
Creates a new instance of VectorBasedCognitiveModelInput
|