public class CountCodelet extends Codelet
Constructor and Description |
---|
CountCodelet(double maxAffordanceActivation,
double minAffordanceActivation,
double activationThreshold,
double decrementPerCount) |
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.
|
<K,V> java.util.Map<K,V> |
deepCopyMap(java.util.Map<K,V> m) |
void |
proc()
Main Codelet function, to be implemented in each subclass.
|
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, setEnabled, setInputs, setIsMemoryObserver, setLoop, setName, setOutputs, setProfiling, setThreshold, setTimeStep, shouldLoop, start, stop, toString
public CountCodelet(double maxAffordanceActivation, double minAffordanceActivation, double activationThreshold, double decrementPerCount)
public <K,V> java.util.Map<K,V> deepCopyMap(java.util.Map<K,V> m)
public void accessMemoryObjects()
Codelet
accessMemoryObjects
in class Codelet
public void calculateActivation()
Codelet
calculateActivation
in class Codelet