org.jactr.modules.pm.aural.memory.impl.encoder
Class AbstractAuralEncoder

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface org.jactr.modules.pm.common.memory.IPerceptualEncoder
COMMONREALITY_IDENTIFIER_META_KEY
 
Constructor Summary
AbstractAuralEncoder(java.lang.String chunkTypeName)
           
 
Method Summary
 IChunk encode(org.commonreality.object.IAfferentObject afferentObject, IPerceptualMemory memory)
           
static IChunk getAudioEvent(org.commonreality.object.IAfferentObject afferent, IAuralMemory memory)
           
 boolean isDirty(org.commonreality.object.IAfferentObject afferentObject, IChunk oldChunk, IPerceptualMemory memory)
          return true if the prior encoding of the percept needs to be amended
 boolean isInterestedIn(org.commonreality.object.IAfferentObject afferentObject)
           
 IChunk update(org.commonreality.object.IAfferentObject afferentObject, IChunk oldChunk, IPerceptualMemory memory)
          update the contents of the encoded chunk.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuralEncoder

public AbstractAuralEncoder(java.lang.String chunkTypeName)
Method Detail

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: