org.jactr.modules.pm.common.memory
Interface IPerceptualEncoder
- All Known Implementing Classes:
- AbstractAuralEncoder, AbstractVisualEncoder, BasicTextEncoder, CursorEncoder, DigitAuralEncoder, EmptySpaceEncoder, GUIEncoder, LineEncoder, PhraseEncoder, SpeechAuralEncoder, TextEncoder, ToneAuralEncoder, WordAuralEncoder
public interface IPerceptualEncoder
interface that is responsible for encoding a percept
- Author:
- harrison
COMMONREALITY_IDENTIFIER_META_KEY
static final java.lang.String COMMONREALITY_IDENTIFIER_META_KEY
- See Also:
- Constant Field Values
isInterestedIn
boolean isInterestedIn(org.commonreality.object.IAfferentObject afferentObject)
- Parameters:
afferentObject -
- Returns:
encode
IChunk encode(org.commonreality.object.IAfferentObject afferentObject,
IPerceptualMemory memory)
- Parameters:
afferentObject - memory -
- Returns:
isDirty
boolean isDirty(org.commonreality.object.IAfferentObject afferentObject,
IChunk oldChunk,
IPerceptualMemory memory)
- return true if the prior encoding of the percept needs to be amended
- Parameters:
afferentObject - oldChunk - memory -
- Returns:
update
IChunk update(org.commonreality.object.IAfferentObject afferentObject,
IChunk oldChunk,
IPerceptualMemory memory)
- update the contents of the encoded chunk. If the percept has changed too much, a new chunk can be
returned.
- Parameters:
afferentObject - oldChunk - memory -
- Returns: