edu.memphis.ccrg.lida.framework
Interface CodeletManagerModule

All Superinterfaces:
FrameworkModule, FullyInitializable, Initializable
All Known Implementing Classes:
AttentionCodeletModule, StructureBuildingCodeletModule

public interface CodeletManagerModule
extends FrameworkModule

A FrameworkModule that manages Codelets

Author:
Ryan J. McCall, Javier Snaider

Method Summary
 void addCodelet(Codelet cod)
          Adds specified Codelet to this module to be run.
 Codelet getCodelet(java.lang.String type)
          Returns a new Codelet of the specified type or null if this type is not supported.
 Codelet getCodelet(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> params)
          Returns a new Codelet of the specified type or null if this type is not supported.
 Codelet getDefaultCodelet()
          Returns a new Codelet of the default type of the Manager
 Codelet getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
          Returns a new Codelet of the default type of the Manager
 void setDefaultCodeletType(java.lang.String type)
          Sets default codelet type used by this Manager.
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule
addListener, addSubModule, containsSubmodule, containsSubmodule, decayModule, getAssistingTaskSpawner, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.FullyInitializable
setAssociatedModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
containsParameter, getParam, getParameters, init, init
 

Method Detail

getDefaultCodelet

Codelet getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a new Codelet of the default type of the Manager

Parameters:
params - Optional parameters or null
Returns:
new default Codelet

getDefaultCodelet

Codelet getDefaultCodelet()
Returns a new Codelet of the default type of the Manager

Returns:
new default Codelet

getCodelet

Codelet getCodelet(java.lang.String type)
Returns a new Codelet of the specified type or null if this type is not supported.

Parameters:
type - Codelet type
Returns:
new Codelet of specified type or null if type is not supported
See Also:
ElementFactory

getCodelet

Codelet getCodelet(java.lang.String type,
                   java.util.Map<java.lang.String,java.lang.Object> params)
Returns a new Codelet of the specified type or null if this type is not supported.

Parameters:
type - Codelet type
params - Optional parameters or null
Returns:
new Codelet of specified type or null if type is not supported

addCodelet

void addCodelet(Codelet cod)
Adds specified Codelet to this module to be run.

Parameters:
cod - Codelet to be added to run

setDefaultCodeletType

void setDefaultCodeletType(java.lang.String type)
Sets default codelet type used by this Manager.

Parameters:
type - type name of codelet in the ElementFactory
See Also:
ElementFactory