public class AffordanceExtractorCodelet extends Codelet
Constructor and Description |
---|
AffordanceExtractorCodelet() |
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.
|
void |
createExtractedAffordances(AffordanceType consummatoryAffordance,
Drive drive,
java.util.List<AffordanceType> executableAffordances,
java.util.Map<AffordanceType,java.util.List<java.util.Map<java.lang.String,Percept>>> allPermutations) |
<K,V> java.util.Map<K,V> |
deepCopyMap(java.util.Map<K,V> m) |
void |
extract() |
java.util.List<java.util.Map<java.lang.String,Percept>> |
getPerceptsCombinations(AffordanceType aff,
java.util.Map<java.lang.String,java.util.List<Percept>> relevantPercepts)
Preprocess and init the computation of the cartesian product.
|
void |
proc()
Main Codelet function, to be implemented in each subclass.
|
java.util.List<AffordanceType> |
searchExecutables(AffordanceType parentAff,
java.util.Map<java.lang.String,java.util.List<Percept>> perceptsSource,
java.util.Map<AffordanceType,java.util.Map<java.lang.String,java.util.List<Percept>>> allRelevantPercepts,
java.util.Map<AffordanceType,java.util.List<java.util.Map<java.lang.String,Percept>>> allPermutations) |
java.util.List<Percept> |
searchRelevantPercepts(AffordanceType aff,
java.util.List<Percept> perceptsOfCategory)
for percept's category of affordance, get all percepts in perceptsSource with this category that is relevant to aff.
|
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 void extract()
public void createExtractedAffordances(AffordanceType consummatoryAffordance, Drive drive, java.util.List<AffordanceType> executableAffordances, java.util.Map<AffordanceType,java.util.List<java.util.Map<java.lang.String,Percept>>> allPermutations)
public java.util.List<Percept> searchRelevantPercepts(AffordanceType aff, java.util.List<Percept> perceptsOfCategory)
aff
- perceptsOfCategory
- public java.util.List<java.util.Map<java.lang.String,Percept>> getPerceptsCombinations(AffordanceType aff, java.util.Map<java.lang.String,java.util.List<Percept>> relevantPercepts)
aff
- relevantPercepts
- public java.util.List<AffordanceType> searchExecutables(AffordanceType parentAff, java.util.Map<java.lang.String,java.util.List<Percept>> perceptsSource, java.util.Map<AffordanceType,java.util.Map<java.lang.String,java.util.List<Percept>>> allRelevantPercepts, java.util.Map<AffordanceType,java.util.List<java.util.Map<java.lang.String,Percept>>> allPermutations)
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