edu.memphis.ccrg.lida.proceduralmemory
Interface Scheme

All Superinterfaces:
Activatible, Initializable, Learnable, ProceduralUnit
All Known Implementing Classes:
SchemeImpl

public interface Scheme
extends ProceduralUnit, Learnable

A Scheme consists of a Context, an Action and a Result. A scheme is activated in the presence of its context. If its action is taken then its result is more likely to be true. It can be instantiated in which case the instantiation is called a Behavior.

Author:
Ryan J. McCall

Field Summary
 
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
 
Method Summary
 void actionExecuted()
          Called when Scheme's action is executed Scheme should update the number of times its action has been executed in order to calculate reliability.
 void actionSuccessful()
          Called when Scheme's action produces expected result.
 boolean addCondition(Condition c, ProceduralMemoryImpl.ConditionType type)
          Adds the context condition.
 int getNumExecutions()
          Gets the number of executions
 double getReliability()
          Returns reliability
 boolean isInnate()
           
 boolean isReliable()
           
 void setAction(Action a)
          Sets action
 void setInnate(boolean innate)
          Sets innate
 
Methods inherited from interface edu.memphis.ccrg.lida.proceduralmemory.ProceduralUnit
getAction, getAddingList, getContextConditions, getDeletingList, getId, getLabel, setId, setLabel
 
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
containsParameter, getParam, getParameters, init, init
 

Method Detail

setAction

void setAction(Action a)
Sets action

Parameters:
a - Action this unit contains

addCondition

boolean addCondition(Condition c,
                     ProceduralMemoryImpl.ConditionType type)
Adds the context condition.

Parameters:
c - the condition
type - the usage type of the condition
Returns:
true, if successful
See Also:
ProceduralMemoryImpl.ConditionType

actionExecuted

void actionExecuted()
Called when Scheme's action is executed Scheme should update the number of times its action has been executed in order to calculate reliability.


getNumExecutions

int getNumExecutions()
Gets the number of executions

Returns:
how many times this scheme's action has been executed

actionSuccessful

void actionSuccessful()
Called when Scheme's action produces expected result.


getReliability

double getReliability()
Returns reliability

Returns:
frequency that result is observed after scheme's Action is taken.

isReliable

boolean isReliable()
Returns:
true if reliability is over threshold

setInnate

void setInnate(boolean innate)
Sets innate

Parameters:
innate - whether this Scheme is hard-wired and cannot be decayed.

isInnate

boolean isInnate()
Returns:
true if this scheme should not be decayed.