public class SequenceBuilderCodelet extends Codelet
Constructor and Description |
---|
SequenceBuilderCodelet(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.
|
Memory |
getEVENTS_SEQUENCE_MO() |
boolean |
isEnabled() |
boolean |
isPrintEvents() |
void |
printSequence()
Prints the whole sequence stored in memory
|
void |
proc()
Main Codelet function, to be implemented in each subclass.
|
void |
setEnabled(boolean enabled)
Set the enable status.
|
void |
setEVENTS_SEQUENCE_MO(Memory eVENTS_SEQUENCE_MO) |
void |
setPrintEvents(boolean printEvents) |
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 SequenceBuilderCodelet(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 void printSequence()
public boolean isPrintEvents()
public void setPrintEvents(boolean printEvents)
printEvents
- the printEvents to setpublic boolean isEnabled()
public void setEnabled(boolean enabled)
Codelet
setEnabled
in class Codelet
enabled
- the enabled to setpublic Memory getEVENTS_SEQUENCE_MO()
public void setEVENTS_SEQUENCE_MO(Memory eVENTS_SEQUENCE_MO)
eVENTS_SEQUENCE_MO
- the eVENTS_SEQUENCE_MO to set