|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.memphis.ccrg.lida.framework.initialization.InitializableImpl
edu.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(int id)
Deprecated. |
|
SchemeImpl(java.lang.String label,
Action a)
Deprecated. |
|
| 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. |
void |
decayBaseLevelActivation(long ticks)
decay the Base Level activation using the decay strategy. |
boolean |
equals(java.lang.Object o)
|
Action |
getAction()
Gets action. |
double |
getActivation()
Returns the current activation of this activatible |
java.util.Collection<Condition> |
getAddingList()
Gets adding list. |
(package private) static double |
getAddingListWeight()
|
protected double |
getAverageAddingListNetDesirability()
Gets the average net desirability of this unit's adding list |
protected double |
getAverageContextActivation()
Gets the average activation of this unit's context conditions. |
(package private) Condition |
getContextCondition(java.lang.Object id)
Gets context condition specified by id |
java.util.Collection<Condition> |
getContextConditions()
Gets context conditions. |
(package private) static double |
getContextWeight()
|
java.util.Collection<Condition> |
getDeletingList()
Gets deleting list. |
int |
getId()
Gets scheme's id. |
java.lang.String |
getLabel()
Gets the label. |
int |
getNumExecutions()
Gets the number of executions |
double |
getReliability()
Returns reliability |
(package private) static double |
getReliabilityThreshold()
Gets reliabilityThreshold |
int |
hashCode()
|
boolean |
isInnate()
|
boolean |
isReliable()
|
void |
setAction(Action a)
Sets action |
(package private) static void |
setAddingListWeight(double w)
|
(package private) static void |
setContextWeight(double w)
|
void |
setId(int id)
Sets unique identifier for Scheme. |
void |
setInnate(boolean in)
Sets innate |
void |
setLabel(java.lang.String label)
Sets Scheme's label |
(package private) void |
setProceduralMemory(ProceduralMemoryImpl pm)
Sets the ProceduralMemoryImpl to which this SchemeImpl belongs. |
(package private) static void |
setReliabilityThreshold(double t)
Sets reliabilityThreshold |
java.lang.String |
toString()
|
| Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.LearnableImpl |
|---|
decay, getBaseLevelActivation, getBaseLevelDecayStrategy, getBaseLevelExciteStrategy, getLearnableRemovalThreshold, getTotalActivation, getTotalActivationStrategy, init, isRemovable, reinforceBaseLevelActivation, setBaseLevelActivation, setBaseLevelDecayStrategy, setBaseLevelExciteStrategy, setBaseLevelRemovalThreshold, setTotalActivationStrategy |
| Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl |
|---|
excite, getActivatibleRemovalThreshold, getDecayStrategy, getExciteStrategy, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
| Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
|---|
containsParameter, getParam, getParameters, init |
| 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 |
|---|
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, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
| Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
|---|
containsParameter, getParam, getParameters, init, init |
| Constructor Detail |
|---|
SchemeImpl()
@Deprecated
SchemeImpl(java.lang.String label,
Action a)
label - Stringa - Action@Deprecated SchemeImpl(int id)
id - Scheme's id| Method Detail |
|---|
void setProceduralMemory(ProceduralMemoryImpl pm)
ProceduralMemoryImpl to which this SchemeImpl belongs.
pm - a ProceduralMemoryImplProceduralMemoryImpl.getNewScheme(Action)static void setContextWeight(double w)
w - the contextWeight to setstatic double getContextWeight()
static void setAddingListWeight(double w)
w - the addingListWeight to setstatic double getAddingListWeight()
public void setId(int id)
ProceduralUnitScheme. Should be used by ElementFactory only.
setId in interface ProceduralUnitid - unique identifier for this schemepublic int getId()
ProceduralUnit
getId in interface ProceduralUnitpublic void actionExecuted()
Scheme
actionExecuted in interface Schemepublic void actionSuccessful()
Scheme
actionSuccessful in interface Schemepublic double getReliability()
Scheme
getReliability in interface SchemeAction is taken.public boolean isReliable()
isReliable in interface Schemepublic void setInnate(boolean in)
Scheme
setInnate in interface Schemein - whether this Scheme is hard-wired and cannot be decayed.public boolean isInnate()
isInnate in interface Schemeprotected double getAverageContextActivation()
protected double getAverageAddingListNetDesirability()
public void decayBaseLevelActivation(long ticks)
Learnable
decayBaseLevelActivation in interface LearnabledecayBaseLevelActivation in class LearnableImplticks - the number of ticks to decaypublic double getActivation()
Activatible
getActivation in interface ActivatiblegetActivation in class ActivatibleImplpublic int getNumExecutions()
Scheme
getNumExecutions in interface Schemestatic double getReliabilityThreshold()
static void setReliabilityThreshold(double t)
t - threshold of reliability
public boolean addCondition(Condition c,
ProceduralMemoryImpl.ConditionType type)
Scheme
addCondition in interface Schemec - the conditiontype - the usage type of the condition
ProceduralMemoryImpl.ConditionTypepublic void setAction(Action a)
Scheme
setAction in interface Schemea - Action this unit containspublic java.util.Collection<Condition> getContextConditions()
ProceduralUnit
getContextConditions in interface ProceduralUnitpublic java.util.Collection<Condition> getAddingList()
ProceduralUnit
getAddingList in interface ProceduralUnitpublic java.util.Collection<Condition> getDeletingList()
ProceduralUnit
getDeletingList in interface ProceduralUnitpublic Action getAction()
ProceduralUnit
getAction in interface ProceduralUnitAction this unit containspublic java.lang.String getLabel()
ProceduralUnit
getLabel in interface ProceduralUnitpublic void setLabel(java.lang.String label)
ProceduralUnit
setLabel in interface ProceduralUnitlabel - a StringCondition getContextCondition(java.lang.Object id)
id - condition id
Condition or nullpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||