org.jactr.modules.pm.vocal
Class AbstractVocalModule

java.lang.Object
  extended by org.jactr.core.module.AbstractModule
      extended by org.jactr.core.module.asynch.AbstractAsynchronousModule
          extended by org.jactr.modules.pm.AbstractPerceptualModule
              extended by org.jactr.modules.pm.vocal.AbstractVocalModule
All Implemented Interfaces:
IAsynchronousModule, IModule, IInitializable, IInstallable, IParameterized, IPerceptualModule, IVocalModule
Direct Known Subclasses:
DefaultVocalModule6

public class AbstractVocalModule
extends AbstractPerceptualModule
implements IVocalModule

abstract implementation that

Author:
harrison

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jactr.modules.pm.vocal.IVocalModule
IVocalModule.ExecutionTimeResolution
 
Field Summary
 
Fields inherited from interface org.jactr.modules.pm.vocal.IVocalModule
CLEAR_CHUNK_TYPE, PREPARATION_EQUATION, SPEAK_CHUNK_TYPE, STRING_SLOT, SUBVOCALIZE_CHUNK_TYPE, VOCAL_BUFFER, VOCALIZATION_EQUATION
 
Fields inherited from interface org.jactr.modules.pm.IPerceptualModule
GREATER_THAN_CURRENT_CHUNK, HIGHEST_CHUNK, LESS_THAN_CURRENT_CHUNK, LOWEST_CHUNK
 
Fields inherited from interface org.jactr.core.module.asynch.IAsynchronousModule
STRICT_SYNCHRONIZATION_PARAM
 
Constructor Summary
AbstractVocalModule()
           
 
Method Summary
 void addListener(IVocalModuleListener listener, java.util.concurrent.Executor executor)
           
 void dispatch(VocalModuleEvent event)
           
 java.util.concurrent.Future<org.commonreality.modalities.vocal.VocalizationCommand> execute(org.commonreality.modalities.vocal.VocalizationCommand command)
           
 IVocalExecutionTimeEquation getExecutionTimeEquation()
           
 IVocalModule.ExecutionTimeResolution getExecutionTimeResolution()
           
 IVocalPreparationTimeEquation getPreparationTimeEquation()
           
 java.lang.String getPreparedVocalization()
          returns the currently prepared, but not vocalized speach
 IVocalProcessingTimeEquation getProcessingTimeEquation()
           
 IChunkType getSpeakChunkType()
           
 IChunkType getSubvocalizeChunkType()
           
 IVocalActivationBuffer getVocalBuffer()
           
 org.commonreality.object.IEfferentObject getVocalizationSource()
           
 boolean hasListeners()
           
 void initialize()
          this will be called after all the modules have been installed permitting the module to attach listeners to other modules.
 java.util.concurrent.Future<org.commonreality.modalities.vocal.VocalizationCommand> prepare(IRequest request)
           
 void removeListener(IVocalModuleListener listener)
           
 void reset()
          reset the module.
 void setExecutionTimeResolution(IVocalModule.ExecutionTimeResolution resolution)
           
 
Methods inherited from class org.jactr.modules.pm.AbstractPerceptualModule
dispose, getBusyChunk, getCommonRealityExecutor, getErrorChunk, getExecutor, getFreeChunk, getRequestedChunk, getSymbolGrounder, getUnrequestedChunk
 
Methods inherited from class org.jactr.core.module.asynch.AbstractAsynchronousModule
getParameter, getPossibleParameters, getSetableParameters, isStrictSynchronizationEnabled, setParameter, setStrictSynchronizationEnabled, synchronizedTimedEvent
 
Methods inherited from class org.jactr.core.module.AbstractModule
delayedFuture, getModel, getName, immediateFuture, immediateReturn, install, uninstall
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jactr.modules.pm.IPerceptualModule
getCommonRealityExecutor, getSymbolGrounder
 
Methods inherited from interface org.jactr.core.module.asynch.IAsynchronousModule
getExecutor, isStrictSynchronizationEnabled, setStrictSynchronizationEnabled, synchronizedTimedEvent
 
Methods inherited from interface org.jactr.core.module.IModule
dispose, getModel, getName, install
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 
Methods inherited from interface org.jactr.core.utils.parameter.IParameterized
getParameter, getPossibleParameters, getSetableParameters, setParameter
 

Constructor Detail

AbstractVocalModule

public AbstractVocalModule()
Method Detail

getPreparedVocalization

public java.lang.String getPreparedVocalization()
Description copied from interface: IVocalModule
returns the currently prepared, but not vocalized speach

Specified by:
getPreparedVocalization in interface IVocalModule
Returns:

getPreparationTimeEquation

public IVocalPreparationTimeEquation getPreparationTimeEquation()
Specified by:
getPreparationTimeEquation in interface IVocalModule

getExecutionTimeEquation

public IVocalExecutionTimeEquation getExecutionTimeEquation()
Specified by:
getExecutionTimeEquation in interface IVocalModule

getProcessingTimeEquation

public IVocalProcessingTimeEquation getProcessingTimeEquation()
Specified by:
getProcessingTimeEquation in interface IVocalModule

getVocalBuffer

public IVocalActivationBuffer getVocalBuffer()
Specified by:
getVocalBuffer in interface IVocalModule

getSpeakChunkType

public IChunkType getSpeakChunkType()
Specified by:
getSpeakChunkType in interface IVocalModule

getSubvocalizeChunkType

public IChunkType getSubvocalizeChunkType()
Specified by:
getSubvocalizeChunkType in interface IVocalModule

reset

public void reset()
Description copied from interface: IModule
reset the module. This will typically clear the owned buffers and abort any module specific operations

Specified by:
reset in interface IModule
Specified by:
reset in interface IVocalModule

initialize

public void initialize()
Description copied from interface: IModule
this will be called after all the modules have been installed permitting the module to attach listeners to other modules. if you want to get access to chunks,types, or productions before the model runs, attach a model listener and do that during the modelStarted call

Specified by:
initialize in interface IModule
Specified by:
initialize in interface IInitializable
Overrides:
initialize in class AbstractPerceptualModule

getVocalizationSource

public org.commonreality.object.IEfferentObject getVocalizationSource()

getExecutionTimeResolution

public IVocalModule.ExecutionTimeResolution getExecutionTimeResolution()
Specified by:
getExecutionTimeResolution in interface IVocalModule

setExecutionTimeResolution

public void setExecutionTimeResolution(IVocalModule.ExecutionTimeResolution resolution)

execute

public java.util.concurrent.Future<org.commonreality.modalities.vocal.VocalizationCommand> execute(org.commonreality.modalities.vocal.VocalizationCommand command)
Specified by:
execute in interface IVocalModule

prepare

public java.util.concurrent.Future<org.commonreality.modalities.vocal.VocalizationCommand> prepare(IRequest request)
Specified by:
prepare in interface IVocalModule

addListener

public void addListener(IVocalModuleListener listener,
                        java.util.concurrent.Executor executor)
Specified by:
addListener in interface IVocalModule

dispatch

public void dispatch(VocalModuleEvent event)
Specified by:
dispatch in interface IVocalModule

hasListeners

public boolean hasListeners()
Specified by:
hasListeners in interface IVocalModule

removeListener

public void removeListener(IVocalModuleListener listener)
Specified by:
removeListener in interface IVocalModule