public interface ConcurrentCognitiveModule extends CognitiveModule
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
|
void |
readState(CognitiveModelState modelState,
CognitiveModuleState previousModuleState)
Read in and temporarily hold input state information required for
performing module evaluation.
|
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
|
getName, getSettings, initializeState, update
void readState(CognitiveModelState modelState, CognitiveModuleState previousModuleState)
modelState
- The CognitiveModelState to evaluate withpreviousModuleState
- The previous CognitiveModuleState returned
by this modulevoid evaluate()
CognitiveModuleState writeState(CognitiveModelState modelState)
modelState
- The CognitiveModelState to update