| 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()
Memorypublic int setI(java.lang.Object info)
Memorypublic java.lang.Double getEvaluation()
getEvaluation in interface Memorypublic java.lang.String getName()
Memorypublic void setType(java.lang.String type)
Memorypublic void setName(java.lang.String name)
Memorypublic void setEvaluation(java.lang.Double eval)
MemorysetEvaluation in interface Memoryeval - the value to be set as evaluation.public java.lang.Long getTimestamp()
MemorygetTimestamp in interface Memorypublic void addMemoryObserver(MemoryObserver memoryObserver)
MemoryaddMemoryObserver in interface MemorymemoryObserver - MemoryObserver to be addedpublic java.util.List<Memory> getOutputs()
public java.util.List<Codelet> getAll()
public Codelet getCodelet(java.lang.String name)