org.jactr.core.module.imaginal.six
Class DefaultImaginalModule6

java.lang.Object
  extended by org.jactr.core.module.AbstractModule
      extended by org.jactr.core.module.imaginal.six.DefaultImaginalModule6
All Implemented Interfaces:
IImaginalModule, IModule, IInitializable, IInstallable, IParameterized

public class DefaultImaginalModule6
extends AbstractModule
implements IImaginalModule, IParameterized

Author:
developer

Field Summary
 
Fields inherited from interface org.jactr.core.module.imaginal.IImaginalModule
IMAGINAL_ADD_DELAY_PARAM, IMAGINAL_BUFFER, IMAGINAL_LOG, IMAGINAL_MODIFY_DELAY_PARAM, IMAGINAL_RANDOMIZE_DELAY_PARAM
 
Constructor Summary
DefaultImaginalModule6()
           
 
Method Summary
 void dispose()
          release any resources.
 double getAddDelayTime()
           
 double getModifyDelayTime()
           
 java.lang.String getParameter(java.lang.String key)
          return parameter value - null if not defined.
 java.util.Collection<java.lang.String> getPossibleParameters()
          Return all parameters that can be read
 java.util.Collection<java.lang.String> getSetableParameters()
          Return list of all parameters that can be set.
 void initialize()
          this will be called after all the modules have been installed permitting the module to attach listeners to other modules.
 boolean isRandomizeDelaysEnabled()
           
 void reset()
          reset the module.
 void setAddDelayTime(double addDelayTime)
          set the amount of time it takes to add a new chunk to the imaginal buffer
 void setModifyDelayTime(double modDelayTime)
          set the amount of time it takes for modification requests
 void setParameter(java.lang.String key, java.lang.String value)
          Set the named parameter
 void setRandomizeDelaysEnabled(boolean enabled)
           
 
Methods inherited from class org.jactr.core.module.AbstractModule
delayedFuture, getExecutor, 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.core.module.IModule
getModel, getName, install
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 

Constructor Detail

DefaultImaginalModule6

public DefaultImaginalModule6()
Method Detail

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
Specified by:
initialize in class AbstractModule
See Also:
AbstractModule.initialize()

dispose

public void dispose()
Description copied from interface: IModule
release any resources. this should only be called by the model during its own dispose method (assuming that this module is still installed) and should not result in the propogation of ANY events. The module should dispose of all its resources, including buffers

Specified by:
dispose in interface IModule
Overrides:
dispose in class AbstractModule

getAddDelayTime

public double getAddDelayTime()
Specified by:
getAddDelayTime in interface IImaginalModule

getModifyDelayTime

public double getModifyDelayTime()
Specified by:
getModifyDelayTime in interface IImaginalModule

isRandomizeDelaysEnabled

public boolean isRandomizeDelaysEnabled()
Specified by:
isRandomizeDelaysEnabled in interface IImaginalModule

setAddDelayTime

public void setAddDelayTime(double addDelayTime)
Description copied from interface: IImaginalModule
set the amount of time it takes to add a new chunk to the imaginal buffer

Specified by:
setAddDelayTime in interface IImaginalModule

setModifyDelayTime

public void setModifyDelayTime(double modDelayTime)
Description copied from interface: IImaginalModule
set the amount of time it takes for modification requests

Specified by:
setModifyDelayTime in interface IImaginalModule

setRandomizeDelaysEnabled

public void setRandomizeDelaysEnabled(boolean enabled)
Specified by:
setRandomizeDelaysEnabled in interface IImaginalModule

getSetableParameters

public java.util.Collection<java.lang.String> getSetableParameters()
Description copied from interface: IParameterized
Return list of all parameters that can be set.

Specified by:
getSetableParameters in interface IParameterized
Returns:
The setableParameters value

getPossibleParameters

public java.util.Collection<java.lang.String> getPossibleParameters()
Description copied from interface: IParameterized
Return all parameters that can be read

Specified by:
getPossibleParameters in interface IParameterized
Returns:
The possibleParameters value

getParameter

public java.lang.String getParameter(java.lang.String key)
Description copied from interface: IParameterized
return parameter value - null if not defined.

Specified by:
getParameter in interface IParameterized
Parameters:
key - Description of the Parameter
Returns:
The parameter value

setParameter

public void setParameter(java.lang.String key,
                         java.lang.String value)
Description copied from interface: IParameterized
Set the named parameter

Specified by:
setParameter in interface IParameterized

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