edu.memphis.ccrg.lida.framework.initialization
Interface Initializable

All Known Subinterfaces:
Action, ActionSelection, Agent, AttentionCodelet, Codelet, CodeletManagerModule, DecayStrategy, DetectionAlgorithm, Environment, EpisodicMemory, ExciteStrategy, FrameworkModule, FrameworkTask, FullyInitializable, GlobalWorkspace, Link, Linkable, Node, PamLink, PamLinkable, PamNode, PerceptualAssociativeMemory, ProceduralMemory, PropagationStrategy, SchemeActivationStrategy, SensoryMemory, SensoryMotorMemory, Strategy, StructureBuildingCodelet, TaskSpawner, TotalActivationStrategy, Workspace, WorkspaceBuffer
All Known Implementing Classes:
ActionImpl, AddLinkToPerceptTask, AddNodeStructureToPerceptTask, AddNodeToPerceptTask, AgentImpl, AttentionCodeletImpl, AttentionCodeletModule, BasicActionSelection, BasicAttentionCodelet, BasicDetectionAlgorithm, BasicSchemeActivationStrategy, BasicSensoryMotorMemory, BasicStructureBuildingCodelet, BroadcastQueueImpl, CodeletImpl, CueBackgroundTask, DefaultTotalActivationStrategy, EnvironmentImpl, EpisodicMemoryImpl, ExcitationTask, FrameworkModuleImpl, FrameworkTaskImpl, GlobalWorkspaceImpl, LinearDecayStrategy, LinearExciteStrategy, LinkImpl, MultipleDetectionAlgorithm, NeighborhoodAttentionCodelet, NoDecayStrategy, NodeImpl, NoExciteStrategy, PamLinkImpl, PamNodeImpl, PerceptualAssociativeMemoryImpl, ProceduralMemoryImpl, PropagationTask, SensoryMemoryBackgroundTask, SensoryMemoryImpl, SigmoidDecayStrategy, SigmoidExciteStrategy, StrategyImpl, StructureBuildingCodeletImpl, StructureBuildingCodeletModule, TaskSpawnerImpl, TriggerTask, UpdateCsmBackgroundTask, UpscalePropagationStrategy, WorkspaceBufferImpl, WorkspaceImpl

public interface Initializable

An object which can be configured in particular ways.

Author:
Ryan J. McCall

Method Summary
 java.lang.Object getParam(java.lang.String name, java.lang.Object defaultValue)
          A convenience method to read parameters from the Map of properties set with the init() method.
 void init()
          This is a convenience method to initialize this Object.
 void init(java.util.Map<java.lang.String,?> parameters)
          This method initializes the module with parameters specified in agent.xml
 

Method Detail

init

void init(java.util.Map<java.lang.String,?> parameters)
This method initializes the module with parameters specified in agent.xml

Parameters:
parameters - Map of parameters indexed by String names

init

void init()
This is a convenience method to initialize this Object. It is called from init(Map parameters). Subclasses can overwrite this method in order to initialize this Object. But make sure to call super.init(); at the beginning of the implementation of this method.


getParam

java.lang.Object getParam(java.lang.String name,
                          java.lang.Object defaultValue)
A convenience method to read parameters from the Map of properties set with the init() method.

Parameters:
name - the parameter name
defaultValue - the default value to be returned if the parameter doesn't exist.
Returns:
the value of the parameter or the default value.