|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
edu.memphis.ccrg.lida.framework.shared.activation.LearnableImpl
edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl
edu.memphis.ccrg.lida.pam.tasks.MultipleDetectionAlgorithm
public abstract class MultipleDetectionAlgorithm
This class implements the FeatureDetector interface and provides default methods. Users should extend this class and overwrite the detect() and excitePam() methods. A convenience init() method is added to initialize the class. This method can be overwritten as well. This implementation is oriented to detect features from sensoryMemory, but the implementation can be used to detect and burstActivation from other modules, like Workspace, emotions or internal states.
Field Summary | |
---|---|
protected PerceptualAssociativeMemory |
pam
the PerceptualAssociativeMemory |
protected java.util.Map<java.lang.String,PamLinkable> |
pamNodeMap
Map of PamLinkable |
protected SensoryMemory |
sensoryMemory
PamLinkable this algorithm detects |
Fields inherited from class edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl |
---|
status |
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Learnable |
---|
DEFAULT_BASE_LEVEL_ACTIVATION, DEFAULT_LEARNABLE_REMOVAL_THRESHOLD |
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION |
Constructor Summary | |
---|---|
MultipleDetectionAlgorithm()
|
Method Summary | |
---|---|
void |
addPamLinkable(PamLinkable linkable)
Adds PamLinkable . |
double |
detect()
Detects a feature. |
abstract void |
detectLinkables()
Override this method for domain-specific feature detection |
PamLinkable |
getPamLinkable()
Returns PamLinkable this algorithm can detect. |
void |
init()
This is a convenience method to initialize Tasks. |
protected void |
runThisFrameworkTask()
To be overridden by extending classes. |
void |
setAssociatedModule(FrameworkModule module,
java.lang.String moduleUsage)
Subclasses may override this method. |
void |
setPamLinkable(PamLinkable linkable)
Adds PamLinkable that will be detected by this algorithm. |
Methods inherited from class edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl |
---|
call, equals, getControllingTaskSpawner, getNextTicksPerRun, getParam, getScheduledTick, getTaskId, getTaskStatus, getTicksPerRun, hashCode, init, setControllingTaskSpawner, setNextTicksPerRun, setScheduledTick, setTaskStatus, setTicksPerRun, stopRunning, toString |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.LearnableImpl |
---|
decay, decayBaseLevelActivation, getBaseLevelActivation, getBaseLevelDecayStrategy, getBaseLevelExciteStrategy, getLearnableRemovalThreshold, getTotalActivation, getTotalActivationStrategy, isRemovable, reinforceBaseLevelActivation, setBaseLevelActivation, setBaseLevelDecayStrategy, setBaseLevelExciteStrategy, setBaseLevelRemovalThreshold, setTotalActivationStrategy |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl |
---|
excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.tasks.FrameworkTask |
---|
getControllingTaskSpawner, getNextTicksPerRun, getScheduledTick, getTaskId, getTaskStatus, getTicksPerRun, setControllingTaskSpawner, setNextTicksPerRun, setScheduledTick, setTaskStatus, setTicksPerRun, stopRunning |
Methods inherited from interface java.util.concurrent.Callable |
---|
call |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Learnable |
---|
decayBaseLevelActivation, getBaseLevelActivation, getBaseLevelDecayStrategy, getBaseLevelExciteStrategy, getLearnableRemovalThreshold, getTotalActivationStrategy, reinforceBaseLevelActivation, setBaseLevelActivation, setBaseLevelDecayStrategy, setBaseLevelExciteStrategy, setBaseLevelRemovalThreshold, setTotalActivationStrategy |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
getParam, init |
Field Detail |
---|
protected java.util.Map<java.lang.String,PamLinkable> pamNodeMap
PamLinkable
protected PerceptualAssociativeMemory pam
PerceptualAssociativeMemory
protected SensoryMemory sensoryMemory
PamLinkable
this algorithm detects
Constructor Detail |
---|
public MultipleDetectionAlgorithm()
Method Detail |
---|
public void setAssociatedModule(FrameworkModule module, java.lang.String moduleUsage)
FrameworkTaskImpl
setAssociatedModule
in interface FullyInitializable
setAssociatedModule
in class FrameworkTaskImpl
module
- the module to be associated.moduleUsage
- how module will be used @see ModuleUsagepublic void init()
FrameworkTaskImpl
init
in interface Initializable
init
in class FrameworkTaskImpl
public void addPamLinkable(PamLinkable linkable)
PamLinkable
.
linkable
- PamLinkable
that will be detected by this algorithmprotected void runThisFrameworkTask()
FrameworkTaskImpl
runThisFrameworkTask
in class FrameworkTaskImpl
public abstract void detectLinkables()
public double detect()
DetectionAlgorithm
detect
in interface DetectionAlgorithm
public PamLinkable getPamLinkable()
DetectionAlgorithm
PamLinkable
this algorithm can detect.
getPamLinkable
in interface DetectionAlgorithm
public void setPamLinkable(PamLinkable linkable)
DetectionAlgorithm
PamLinkable
that will be detected by this algorithm.
setPamLinkable
in interface DetectionAlgorithm
linkable
- s PamLinkable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |