|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scheme
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
.
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. |
Action |
getAction()
Gets action. |
NodeStructure |
getAddingResult()
Returns addingResult. |
NodeStructure |
getContext()
Gets context. |
NodeStructure |
getDeletingResult()
Returns deletingResult. |
int |
getExecutions()
Gets the number of executions |
long |
getId()
Gets scheme's id. |
Behavior |
getInstantiation()
Instantiates and returns a Behavior based on this Scheme |
java.lang.String |
getLabel()
Gets label. |
double |
getReliability()
Returns reliability |
double |
getReliabilityThreshold()
Gets reliabilityThreshold |
boolean |
isInnate()
|
boolean |
isReliable()
|
void |
setAction(Action action)
Sets scheme Action. |
void |
setAddingResult(NodeStructure ns)
Sets addingResult. |
void |
setContext(NodeStructure ns)
Sets context. |
void |
setDeletingResult(NodeStructure ns)
Sets deletingResult. |
void |
setInnate(boolean innate)
Sets innate |
void |
setLabel(java.lang.String label)
Sets label. |
void |
setReliabilityThreshold(double threshold)
Sets reliabilityThreshold |
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 |
Method Detail |
---|
long getId()
java.lang.String getLabel()
void setLabel(java.lang.String label)
label
- human-readable labelNodeStructure getContext()
void setContext(NodeStructure ns)
ns
- context in which this scheme is activated.Action getAction()
SensoryMotorMemory
void setAction(Action action)
action
- Action
NodeStructure getAddingResult()
void setAddingResult(NodeStructure ns)
ns
- NodeStructure representing what this scheme's action should add if executed.NodeStructure getDeletingResult()
void setDeletingResult(NodeStructure ns)
ns
- NodeStructure representing what this scheme's action should delete if executed.double getReliability()
Action
is taken.boolean isReliable()
void actionExecuted()
void actionSuccessful()
int getExecutions()
boolean isInnate()
void setInnate(boolean innate)
innate
- whether this Scheme
is hard-wired and cannot be decayed.Behavior getInstantiation()
Behavior
based on this Scheme
void setReliabilityThreshold(double threshold)
threshold
- threshold of reliabilitydouble getReliabilityThreshold()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |