Modifier and Type | Field and Description |
---|---|
protected java.util.List<Memory> |
inputs
Input memories, the ones that are read.
|
protected java.util.List<Memory> |
outputs
Output memories, the ones that are written.
|
Constructor and Description |
---|
CodeletContainer() |
CodeletContainer(java.util.ArrayList<Codelet> codelets) |
Modifier and Type | Method and Description |
---|---|
void |
addCodelet(Codelet codelet) |
void |
addMemoryObserver(MemoryObserver memoryObserver)
Add a memory observer to its list
|
double |
getActivation()
Gets this Codelet activation.
|
java.util.List<Codelet> |
getAll() |
java.util.List<Memory> |
getBroadcast()
Gets the list of broadcast memories.
|
Codelet |
getCodelet(java.lang.String name) |
java.lang.Double |
getEvaluation()
Gets the greatest evaluation of the codelet with the greatest activation
|
java.lang.Object |
getI()
Gets the info inside this memory.
|
java.util.List<Memory> |
getInputs()
Gets the input memories list.
|
java.lang.String |
getName()
Gets the type of this memory.
|
java.util.List<Memory> |
getOutputs() |
java.lang.Long |
getTimestamp()
Gets the timestamp of this Memory.
|
void |
removeCodelet(Codelet codelet) |
void |
setBroadcast(java.util.List<Memory> broadcast)
Sets the list of broadcast memories.
|
void |
setEvaluation(java.lang.Double eval)
Sets the evaluation of this memory.
|
int |
setI(java.lang.Object info)
Sets the info inside this Memory.
|
void |
setInputs(java.util.List<Memory> inputs)
Sets the input memories list.
|
void |
setName(java.lang.String name)
Sets the type of this memory.
|
void |
setType(java.lang.String type)
Sets the type of this memory.
|
protected java.util.List<Memory> outputs
protected java.util.List<Memory> inputs
public CodeletContainer()
public CodeletContainer(java.util.ArrayList<Codelet> codelets)
public double getActivation()
public java.util.List<Memory> getInputs()
public void setInputs(java.util.List<Memory> inputs)
inputs
- the inputs to set.public java.util.List<Memory> getBroadcast()
public void setBroadcast(java.util.List<Memory> broadcast)
broadcast
- the broadcast to set.public void addCodelet(Codelet codelet)
public void removeCodelet(Codelet codelet)
public java.lang.Object getI()
Memory
public int setI(java.lang.Object info)
Memory
public java.lang.Double getEvaluation()
getEvaluation
in interface Memory
public java.lang.String getName()
Memory
public void setType(java.lang.String type)
Memory
public void setName(java.lang.String name)
Memory
public void setEvaluation(java.lang.Double eval)
Memory
setEvaluation
in interface Memory
eval
- the value to be set as evaluation.public java.lang.Long getTimestamp()
Memory
getTimestamp
in interface Memory
public void addMemoryObserver(MemoryObserver memoryObserver)
Memory
addMemoryObserver
in interface Memory
memoryObserver
- MemoryObserver to be addedpublic java.util.List<Memory> getOutputs()
public java.util.List<Codelet> getAll()
public Codelet getCodelet(java.lang.String name)