|
||||||||||
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.proceduralmemory.SchemeImpl
public class SchemeImpl
Default implementation of Scheme
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 |
Constructor Summary | |
---|---|
SchemeImpl()
Constructs a new scheme with default values |
|
SchemeImpl(java.lang.String label,
Action a)
Constructs a new scheme with specified label and action |
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 |
equals(java.lang.Object o)
|
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 |
int |
hashCode()
|
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 |
java.lang.String |
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.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 |
Constructor Detail |
---|
public SchemeImpl()
public SchemeImpl(java.lang.String label, Action a)
label
- Scheme's namea
- scheme's Action
Method Detail |
---|
public void actionExecuted()
Scheme
actionExecuted
in interface Scheme
public void actionSuccessful()
Scheme
actionSuccessful
in interface Scheme
public double getReliability()
Scheme
getReliability
in interface Scheme
Action
is taken.public boolean isReliable()
isReliable
in interface Scheme
public Behavior getInstantiation()
Scheme
Behavior
based on this Scheme
getInstantiation
in interface Scheme
public java.lang.String toString()
toString
in class java.lang.Object
public void setInnate(boolean innate)
Scheme
setInnate
in interface Scheme
innate
- whether this Scheme
is hard-wired and cannot be decayed.public boolean isInnate()
isInnate
in interface Scheme
public void setAction(Action action)
Scheme
setAction
in interface Scheme
action
- Action
public java.lang.String getLabel()
Scheme
getLabel
in interface Scheme
public void setLabel(java.lang.String label)
Scheme
setLabel
in interface Scheme
label
- human-readable labelpublic NodeStructure getDeletingResult()
Scheme
getDeletingResult
in interface Scheme
public void setDeletingResult(NodeStructure ns)
Scheme
setDeletingResult
in interface Scheme
ns
- NodeStructure representing what this scheme's action should delete if executed.public void setAddingResult(NodeStructure ns)
Scheme
setAddingResult
in interface Scheme
ns
- NodeStructure representing what this scheme's action should add if executed.public NodeStructure getContext()
Scheme
getContext
in interface Scheme
public void setContext(NodeStructure ns)
Scheme
setContext
in interface Scheme
ns
- context in which this scheme is activated.public long getId()
Scheme
getId
in interface Scheme
public int getExecutions()
Scheme
getExecutions
in interface Scheme
public NodeStructure getAddingResult()
Scheme
getAddingResult
in interface Scheme
public Action getAction()
Scheme
getAction
in interface Scheme
SensoryMotorMemory
public double getReliabilityThreshold()
Scheme
getReliabilityThreshold
in interface Scheme
public void setReliabilityThreshold(double threshold)
Scheme
setReliabilityThreshold
in interface Scheme
threshold
- threshold of reliabilitypublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |