public interface Node extends java.io.Serializable, Resettable, SimulationMode.ModeConfigurable, VisiblyMutable, java.lang.Cloneable
VisiblyMutable.Event, VisiblyMutable.Listener, VisiblyMutable.NameChangeEvent, VisiblyMutable.NodeRemovedEvent
Modifier and Type | Method and Description |
---|---|
Node |
clone() |
Node[] |
getChildren() |
java.lang.String |
getDocumentation() |
java.lang.String |
getName() |
Origin |
getOrigin(java.lang.String name) |
Origin[] |
getOrigins() |
Termination |
getTermination(java.lang.String name) |
Termination[] |
getTerminations() |
void |
notifyAboutDeletion()
This method tells the Node (network) that is being deleted from Nengo,
Node can inform its children (child Nodes) that are being deleted,
these nodes can e.g.
|
void |
run(float startTime,
float endTime)
Runs the Node (including all its components), updating internal state and outputs as needed.
|
void |
setDocumentation(java.lang.String text) |
void |
setName(java.lang.String name) |
java.lang.String |
toScript(java.util.HashMap<java.lang.String,java.lang.Object> scriptData) |
reset
getMode, setMode
addChangeListener, removeChangeListener
java.lang.String getName()
void setName(java.lang.String name) throws StructuralException
name
- The new nameStructuralException
- if name already exists?void run(float startTime, float endTime) throws SimulationException
startTime
- simulation time at which running starts (s)endTime
- simulation time at which running ends (s)SimulationException
- if a problem is encountered while trying to runOrigin[] getOrigins()
Origin getOrigin(java.lang.String name) throws StructuralException
name
- Name of an Origin on this NodeStructuralException
- if the named Origin does not existTermination[] getTerminations()
Termination getTermination(java.lang.String name) throws StructuralException
name
- Name of a Termination onto this NodeStructuralException
- if the named Termination does not existNode[] getChildren()
java.lang.String toScript(java.util.HashMap<java.lang.String,java.lang.Object> scriptData) throws ScriptGenException
scriptData
- Map of class parent and prefix data for generating python scriptScriptGenException
- if the node cannot be generated in scriptjava.lang.String getDocumentation()
void setDocumentation(java.lang.String text)
text
- New user-specified documentation for the NodeNode clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if clone can't be madevoid notifyAboutDeletion()