public class BasicTextEncoder extends AbstractVisualEncoder
COMMONREALITY_IDENTIFIER_META_KEY
Constructor and Description |
---|
BasicTextEncoder(java.lang.String chunkTypeName,
java.lang.String commonTypeName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEncodeVisualObjectType(IAfferentObject afferentObject)
returns true if this particular encoder can be used for this object
|
protected java.lang.String |
guessChunkName(IAfferentObject afferentObject) |
boolean |
isDirty(IAfferentObject afferentObject,
IChunk oldChunk,
IPerceptualMemory memory)
checks the expected visual location against the previously encoded visual
location.
|
protected boolean |
isTooDirty(IAfferentObject afferentObject,
IChunk oldChunk,
IVisualMemory visualMemory)
used to trigger a reencoding if the old chunk is too dirty.
|
protected boolean |
textHasChanged(IAfferentObject afferentObject,
IChunk encoding) |
protected void |
updateSlots(IAfferentObject afferentObject,
IChunk encoding,
IVisualMemory memory)
fill the slot values of the encoded chunk.
|
encode, exceedsMovementTolerance, getHandler, getLocation, getVisualLocation, getVisualLocation, isAttendedSticky, isInterestedIn, update
public BasicTextEncoder(java.lang.String chunkTypeName, java.lang.String commonTypeName)
protected boolean canEncodeVisualObjectType(IAfferentObject afferentObject)
AbstractVisualEncoder
canEncodeVisualObjectType
in class AbstractVisualEncoder
public boolean isDirty(IAfferentObject afferentObject, IChunk oldChunk, IPerceptualMemory memory)
AbstractVisualEncoder
isDirty
in interface IPerceptualEncoder
isDirty
in class AbstractVisualEncoder
IPerceptualEncoder.isDirty(org.commonreality.object.IAfferentObject,
org.jactr.core.chunk.IChunk,
org.jactr.modules.pm.common.memory.IPerceptualMemory)
protected boolean isTooDirty(IAfferentObject afferentObject, IChunk oldChunk, IVisualMemory visualMemory)
AbstractVisualEncoder
isTooDirty
in class AbstractVisualEncoder
protected void updateSlots(IAfferentObject afferentObject, IChunk encoding, IVisualMemory memory)
AbstractVisualEncoder
updateSlots
in class AbstractVisualEncoder
protected java.lang.String guessChunkName(IAfferentObject afferentObject)
guessChunkName
in class AbstractVisualEncoder
protected boolean textHasChanged(IAfferentObject afferentObject, IChunk encoding)