public class ArrayBasedPerceptionModule extends AbstractConcurrentCognitiveModule implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MODULE_NAME
The name of the module.
|
| Constructor and Description |
|---|
ArrayBasedPerceptionModule(SemanticIdentifierMap semanticIdentifierMap,
CogxelFactory cogxelFactory)
Creates a new instance of ArrayBasedPerceptionModule.
|
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate()
Perform evaluation of sampled and held input state information that
was captured by a call to readState, and hold the resultant output
changes to model and module state pending a call to writeState
NOTE: input and output state is held temporarily for the sole purpose
of supporting concurrency of module evaluation; state is NEVER
retained locally across module update cycles
|
protected CogxelFactory |
getCogxelFactory()
Getter for cogxelFactory
|
java.lang.String |
getName()
Gets the human-readable name of module.
|
protected SemanticIdentifierMap |
getSemanticIdentifierMap()
Getter for semanticIdentifierMap
|
CognitiveModuleSettings |
getSettings()
Returns null because this module has no settings.
|
CognitiveModuleState |
initializeState(CognitiveModelState modelState)
This method initializes the state object for a CognitiveModel by adding
any necessary information to the model state and returining the default
state for the module.
|
void |
readState(CognitiveModelState modelState,
CognitiveModuleState previousModuleState)
Read in and temporarily hold input state information required for
performing module evaluation.
|
protected void |
setCogxelFactory(CogxelFactory cogxelFactory)
Sets the cogxel factory to use.
|
protected void |
setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
Sets the semantic identifier map.
|
CognitiveModuleState |
writeState(CognitiveModelState modelState)
Write out the model and module state changes resulting from a call to
evaluate
NOTE: output state was held temporarily for the sole purpose
of supporting concurrency of module evaluation; state is NEVER
retained locally across module update cycles
|
updatepublic static final java.lang.String MODULE_NAME
public ArrayBasedPerceptionModule(SemanticIdentifierMap semanticIdentifierMap, CogxelFactory cogxelFactory)
semanticIdentifierMap - The semantic identifier map to use.cogxelFactory - The CogxelFactory for creating Cogxels.public CognitiveModuleState initializeState(CognitiveModelState modelState)
initializeState in interface CognitiveModulemodelState - The CognitiveModelState to initalizepublic void readState(CognitiveModelState modelState, CognitiveModuleState previousModuleState)
readState in interface ConcurrentCognitiveModulemodelState - The CognitiveModelState to evaluate withpreviousModuleState - The previous CognitiveModuleState returned
by this modulepublic void evaluate()
evaluate in interface ConcurrentCognitiveModulepublic CognitiveModuleState writeState(CognitiveModelState modelState)
writeState in interface ConcurrentCognitiveModulemodelState - The CognitiveModelState to updatepublic java.lang.String getName()
getName in interface CognitiveModulepublic CognitiveModuleSettings getSettings()
getSettings in interface CognitiveModuleprotected void setSemanticIdentifierMap(SemanticIdentifierMap semanticIdentifierMap)
semanticIdentifierMap - The new semantic identifier map.protected void setCogxelFactory(CogxelFactory cogxelFactory)
cogxelFactory - The new cogxel factory to use.protected SemanticIdentifierMap getSemanticIdentifierMap()
protected CogxelFactory getCogxelFactory()