public abstract class AbstractAuralModule extends AbstractPerceptualModule implements IAuralModule, IParameterized
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AURAL_DECAY_TIME_PARAM |
static java.lang.String |
ENABLE_BUFFER_STUFF_PARAM |
static java.lang.String |
ENCODING_TIME_EQUATION_PARAM |
ATTENDED_STATUS_SLOT, AUDIO_EVENT_CHUNK_TYPE, AURAL_BUFFER, AURAL_LOCATION_BUFFER, AZIMUTH_SLOT, CLEAR_CHUNK_TYPE, CONTENT_SLOT, DIGIT_CHUNK_TYPE, DURATION_SLOT, ELEVATION_SLOT, EVENT_SLOT, EXTERNAL_CHUNK, INTERNAL_CHUNK, KIND_SLOT, LOCATION_SLOT, OFFSET_SLOT, ONSET_SLOT, PITCH_SLOT, SOUND_CHUNK_TYPE, SPEECH_CHUNK_TYPE, TONE_CHUNK_TYPE, WORD_CHUNK_TYPE
GREATER_THAN_CURRENT_CHUNK, HIGHEST_CHUNK, LESS_THAN_CURRENT_CHUNK, LOWEST_CHUNK
STRICT_SYNCHRONIZATION_PARAM
Constructor and Description |
---|
AbstractAuralModule() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IAuralModuleListener listener,
java.util.concurrent.Executor executor) |
protected void |
applyParameters()
apply the deferred parameters to the audicon
|
protected void |
connectToCommonReality()
called immediately after common reality connection has been established.
|
protected abstract IAuralActivationBuffer |
createAuralBuffer(IAuralLocationBuffer locationBuffer) |
protected abstract IAuralLocationBuffer |
createAuralLocationBuffer() |
protected abstract IAuralMemory |
createAuralMemory() |
protected java.util.Collection<IActivationBuffer> |
createBuffers()
called to create any buffers used by this buffer.
|
protected void |
disconnectFromCommonReality()
called on model termination to give modules a chance to remove their
listeners
|
void |
dispatch(AuralModuleEvent event) |
void |
dispose()
release any resources.
|
IChunkType |
getAudioEventChunkType() |
IAuralActivationBuffer |
getAuralActivationBuffer() |
double |
getAuralDecayTime()
how long does a sound take to decay out of the audicon
|
IAuralLocationBuffer |
getAuralLocationBuffer() |
IAuralMemory |
getAuralMemory()
return the backing aural memory.
|
IChunkType |
getClearChunkType() |
IAuralEncodingTimeEquation |
getEncodingTimeEquation() |
IChunk |
getExternalChunk() |
IChunk |
getHighestChunk() |
IChunk |
getInternalChunk() |
IChunk |
getLowestChunk() |
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
IPerceptualMemory |
getPerceptualMemory() |
double |
getRecodeTime(IChunkType chunkType) |
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set.
|
IChunkType |
getSoundChunkType() |
boolean |
hasListeners() |
void |
initialize()
this will be called after all the modules have been installed permitting
the module to attach listeners to other modules.
|
boolean |
isBufferStuffEnabled() |
void |
removeListener(IAuralModuleListener listener) |
void |
setAuralDecayTime(double time) |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter
|
void |
setRecodeTime(IChunkType chunkType,
double time) |
getBusyChunk, getCommonRealityExecutor, getErrorChunk, getExecutor, getFreeChunk, getNamedChunk, getNamedChunkType, getRequestedChunk, getSymbolGrounder, getUnrequestedChunk, setSymbolGrounder
getPossibleParameters, isStrictSynchronizationEnabled, setStrictSynchronizationEnabled, synchronizedTimedEvent
delayedFuture, delayedFuture, getModel, getName, getSafeName, immediateFuture, immediateReturn, install, setExecutor, uninstall
addAdapterFactory, getAdapter, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset
attendTo, search
getCommonRealityExecutor, getSymbolGrounder, setSymbolGrounder
getExecutor, isStrictSynchronizationEnabled, setStrictSynchronizationEnabled, synchronizedTimedEvent
uninstall
getAdapter
getPossibleParameters
public static final java.lang.String ENABLE_BUFFER_STUFF_PARAM
public static final java.lang.String AURAL_DECAY_TIME_PARAM
public static final java.lang.String ENCODING_TIME_EQUATION_PARAM
protected abstract IAuralMemory createAuralMemory()
protected abstract IAuralLocationBuffer createAuralLocationBuffer()
protected abstract IAuralActivationBuffer createAuralBuffer(IAuralLocationBuffer locationBuffer)
protected java.util.Collection<IActivationBuffer> createBuffers()
AbstractModule
createBuffers
in class AbstractModule
public void addListener(IAuralModuleListener listener, java.util.concurrent.Executor executor)
addListener
in interface IAuralModule
public void removeListener(IAuralModuleListener listener)
removeListener
in interface IAuralModule
public boolean hasListeners()
hasListeners
in interface IAuralModule
public void dispatch(AuralModuleEvent event)
dispatch
in interface IAuralModule
public void initialize()
IModule
initialize
in interface IModule
initialize
in interface IInitializable
initialize
in class AbstractPerceptualModule
AbstractModule.initialize()
protected void connectToCommonReality()
AbstractPerceptualModule
IAgent
so that the
model can be aware of different IAfferentObject
and
IEfferentObject
sconnectToCommonReality
in class AbstractPerceptualModule
protected void disconnectFromCommonReality()
AbstractPerceptualModule
disconnectFromCommonReality
in class AbstractPerceptualModule
public void dispose()
IModule
dispose
in interface IModule
dispose
in class AbstractPerceptualModule
public boolean isBufferStuffEnabled()
public IAuralMemory getAuralMemory()
IAuralModule
getAuralMemory
in interface IAuralModule
public IPerceptualMemory getPerceptualMemory()
getPerceptualMemory
in interface IPerceptualMemoryModule
public IAuralActivationBuffer getAuralActivationBuffer()
getAuralActivationBuffer
in interface IAuralModule
IAuralModule.getAuralActivationBuffer()
public IAuralLocationBuffer getAuralLocationBuffer()
getAuralLocationBuffer
in interface IAuralModule
IAuralModule.getAuralLocationBuffer()
public IAuralEncodingTimeEquation getEncodingTimeEquation()
getEncodingTimeEquation
in interface IAuralModule
public IChunkType getClearChunkType()
getClearChunkType
in interface IAuralModule
public IChunkType getSoundChunkType()
getSoundChunkType
in interface IAuralModule
public IChunkType getAudioEventChunkType()
getAudioEventChunkType
in interface IAuralModule
public IChunk getLowestChunk()
getLowestChunk
in interface IAuralModule
public IChunk getHighestChunk()
getHighestChunk
in interface IAuralModule
public IChunk getInternalChunk()
getInternalChunk
in interface IAuralModule
public IChunk getExternalChunk()
getExternalChunk
in interface IAuralModule
public double getRecodeTime(IChunkType chunkType)
public void setRecodeTime(IChunkType chunkType, double time)
public double getAuralDecayTime()
IAuralModule
getAuralDecayTime
in interface IAuralModule
IAuralModule.getAuralDecayTime()
public void setAuralDecayTime(double time)
setAuralDecayTime
in interface IAuralModule
IAuralModule.setAuralDecayTime(double)
protected void applyParameters()
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
getSetableParameters
in class AbstractAsynchronousModule
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized
setParameter
in class AbstractAsynchronousModule
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
getParameter
in class AbstractAsynchronousModule
key
- Description of the Parameter