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, toString
public ActionSelectionCodelet(RawMemory rawMemory, WorkingStorage ws)
public void accessMemoryObjects()
Codelet
accessMemoryObjects
in class Codelet
public void calculateActivation()
Codelet
calculateActivation
in class Codelet
public void proc()
Codelet
public boolean isEnabled()
public void setEnabled(boolean enabled)
Codelet
setEnabled
in class Codelet
enabled
- 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