public class ActionSelectionCodelet extends Codelet
| Constructor and Description |
|---|
ActionSelectionCodelet(RawMemory rawMemory,
WorkingStorage ws) |
| Modifier and Type | Method and Description |
|---|---|
void |
accessMemoryObjects()
This method is used in every Codelet to capture input, broadcast and
output MemoryObjects which shall be used in the proc() method.
|
void |
calculateActivation()
This abstract method must be implemented by the user.
|
double |
getExp_factor() |
boolean |
isDynamicExplorationOn() |
boolean |
isEnabled() |
void |
proc()
Main Codelet function, to be implemented in each subclass.
|
void |
setDynamicExplorationOn(boolean dynamicExplorationOn) |
void |
setEnabled(boolean enabled)
Set the enable status.
|
void |
setExp_factor(double ef)
Probability (0-1) of getting a random action
|
addBroadcast, addBroadcasts, addInput, addInputs, addOutput, addOutputs, getActivation, getBroadcast, getBroadcast, getBroadcast, getEnabled, getInput, getInput, getInputs, getInputsOfType, getName, getOutput, getOutput, getOutputs, getOutputsOfType, getThreadName, getThreshold, getTimeStep, impendingAccess, impendingAccessBuffer, isLoop, isProfiling, notifyCodelet, removeFromInput, removeFromOutput, removesInput, removesOutput, run, setActivation, setBroadcast, setCodeletProfiler, setInputs, setIsMemoryObserver, setLoop, setName, setOutputs, setProfiling, setThreshold, setTimeStep, shouldLoop, start, stop, toStringpublic ActionSelectionCodelet(RawMemory rawMemory, WorkingStorage ws)
public void accessMemoryObjects()
CodeletaccessMemoryObjects in class Codeletpublic void calculateActivation()
CodeletcalculateActivation in class Codeletpublic void proc()
Codeletpublic boolean isEnabled()
public void setEnabled(boolean enabled)
CodeletsetEnabled in class Codeletenabled - the enabled to setpublic double getExp_factor()
public void setExp_factor(double ef)
ef - the exp_factor to setpublic boolean isDynamicExplorationOn()
public void setDynamicExplorationOn(boolean dynamicExplorationOn)
dynamicExplorationOn - the dynamicExplorationOn to set