public abstract class GoalCodelet extends Codelet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INPUT_HYPOTHETICAL_SITUATIONS_MEMORY |
static java.lang.String |
OUTPUT_GOAL_MEMORY |
Constructor and Description |
---|
GoalCodelet(java.lang.String id) |
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.
|
Idea |
getGoal() |
Memory |
getGoalMO() |
Idea |
getHypotheticalSituation() |
java.lang.String |
getId() |
Memory |
getInputHypotheticalSituationsMO() |
abstract Idea |
goalGeneration(Idea hypoteticalSituation) |
boolean |
isInit() |
void |
proc()
Main Codelet function, to be implemented in each subclass.
|
void |
setGoal(Idea goal) |
void |
setGoalMO(Memory goalMO) |
void |
setHypotheticalSituation(Idea hypotheticalSituation) |
void |
setId(java.lang.String id) |
void |
setInit(boolean init) |
void |
setInputHypotheticalSituationsMO(Memory inputHypotheticalSituationsMO) |
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 static final java.lang.String INPUT_HYPOTHETICAL_SITUATIONS_MEMORY
public static final java.lang.String OUTPUT_GOAL_MEMORY
public void accessMemoryObjects()
Codelet
accessMemoryObjects
in class Codelet
public void calculateActivation()
Codelet
calculateActivation
in class Codelet
public void proc()
Codelet
public Memory getInputHypotheticalSituationsMO()
public void setInputHypotheticalSituationsMO(Memory inputHypotheticalSituationsMO)
public Memory getGoalMO()
public void setGoalMO(Memory goalMO)
public Idea getHypotheticalSituation()
public void setHypotheticalSituation(Idea hypotheticalSituation)
public Idea getGoal()
public void setGoal(Idea goal)
public java.lang.String getId()
public void setId(java.lang.String id)
public boolean isInit()
public void setInit(boolean init)