|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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
- String
a
- Action
@Deprecated SchemeImpl(int id)
id
- Scheme's idMethod Detail |
---|
void setProceduralMemory(ProceduralMemoryImpl pm)
ProceduralMemoryImpl
to which this SchemeImpl
belongs.
pm
- a ProceduralMemoryImpl
ProceduralMemoryImpl.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)
ProceduralUnit
Scheme
. Should be used by ElementFactory
only.
setId
in interface ProceduralUnit
id
- unique identifier for this schemepublic int getId()
ProceduralUnit
getId
in interface ProceduralUnit
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 void setInnate(boolean in)
Scheme
setInnate
in interface Scheme
in
- whether this Scheme
is hard-wired and cannot be decayed.public boolean isInnate()
isInnate
in interface Scheme
protected double getAverageContextActivation()
protected double getAverageAddingListNetDesirability()
public void decayBaseLevelActivation(long ticks)
Learnable
decayBaseLevelActivation
in interface Learnable
decayBaseLevelActivation
in class LearnableImpl
ticks
- the number of ticks to decaypublic double getActivation()
Activatible
getActivation
in interface Activatible
getActivation
in class ActivatibleImpl
public int getNumExecutions()
Scheme
getNumExecutions
in interface Scheme
static double getReliabilityThreshold()
static void setReliabilityThreshold(double t)
t
- threshold of reliabilitypublic boolean addCondition(Condition c, ProceduralMemoryImpl.ConditionType type)
Scheme
addCondition
in interface Scheme
c
- the conditiontype
- the usage type of the condition
ProceduralMemoryImpl.ConditionType
public void setAction(Action a)
Scheme
setAction
in interface Scheme
a
- Action
this unit containspublic java.util.Collection<Condition> getContextConditions()
ProceduralUnit
getContextConditions
in interface ProceduralUnit
public java.util.Collection<Condition> getAddingList()
ProceduralUnit
getAddingList
in interface ProceduralUnit
public java.util.Collection<Condition> getDeletingList()
ProceduralUnit
getDeletingList
in interface ProceduralUnit
public Action getAction()
ProceduralUnit
getAction
in interface ProceduralUnit
Action
this unit containspublic java.lang.String getLabel()
ProceduralUnit
getLabel
in interface ProceduralUnit
public void setLabel(java.lang.String label)
ProceduralUnit
setLabel
in interface ProceduralUnit
label
- a StringCondition getContextCondition(java.lang.Object id)
id
- condition id
Condition
or nullpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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 |