org.jactr.modules.pm.aural.memory.impl.encoder
Class AbstractAuralEncoder
java.lang.Object
org.jactr.modules.pm.aural.memory.impl.encoder.AbstractAuralEncoder
- All Implemented Interfaces:
- IPerceptualEncoder
- Direct Known Subclasses:
- DigitAuralEncoder, SpeechAuralEncoder, ToneAuralEncoder, WordAuralEncoder
public abstract class AbstractAuralEncoder
- extends java.lang.Object
- implements IPerceptualEncoder
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAuralEncoder
public AbstractAuralEncoder(java.lang.String chunkTypeName)
getAudioEvent
public static IChunk getAudioEvent(org.commonreality.object.IAfferentObject afferent,
IAuralMemory memory)
encode
public IChunk encode(org.commonreality.object.IAfferentObject afferentObject,
IPerceptualMemory memory)
- Specified by:
encode in interface IPerceptualEncoder
- Returns:
isDirty
public boolean isDirty(org.commonreality.object.IAfferentObject afferentObject,
IChunk oldChunk,
IPerceptualMemory memory)
- Description copied from interface:
IPerceptualEncoder
- return true if the prior encoding of the percept needs to be amended
- Specified by:
isDirty in interface IPerceptualEncoder
- Returns:
isInterestedIn
public boolean isInterestedIn(org.commonreality.object.IAfferentObject afferentObject)
- Specified by:
isInterestedIn in interface IPerceptualEncoder
- Returns:
update
public IChunk update(org.commonreality.object.IAfferentObject afferentObject,
IChunk oldChunk,
IPerceptualMemory memory)
- Description copied from interface:
IPerceptualEncoder
- update the contents of the encoded chunk. If the percept has changed too much, a new chunk can be
returned.
- Specified by:
update in interface IPerceptualEncoder
- Returns: