public interface ExpandableNode extends Node
VisiblyMutable.Event, VisiblyMutable.Listener, VisiblyMutable.NameChangeEvent, VisiblyMutable.NodeRemovedEvent
Modifier and Type | Method and Description |
---|---|
Termination |
addTermination(java.lang.String name,
float[][] weights,
float tauPSC,
boolean modulatory)
Adds a new Termination onto this Node.
|
ExpandableNode |
clone() |
int |
getDimension() |
Termination |
removeTermination(java.lang.String name) |
getChildren, getDocumentation, getName, getOrigin, getOrigins, getTermination, getTerminations, notifyAboutDeletion, run, setDocumentation, setName, toScript
reset
getMode, setMode
addChangeListener, removeChangeListener
int getDimension()
Termination addTermination(java.lang.String name, float[][] weights, float tauPSC, boolean modulatory) throws StructuralException
name
- Unique name for the Termination (in the scope of this Node)weights
- Connection weights. Length must equal getDimension(). Each component
must have length equal to the dimension of the Origin that will connect to this Termination.tauPSC
- Time constant with which incoming signals are filtered. (All Terminations have
this property, but it may have slightly different interpretations per implementation.)modulatory
- If true, inputs to the Termination are not summed with other inputs (they
only have modulatory effects, eg on plasticity, which must be defined elsewhere).StructuralException
- if length of weights doesn't equal getDimension(),
or if there are different numbers of weights given in different rows.Termination removeTermination(java.lang.String name) throws StructuralException
name
- Name of Termination to remove.StructuralException
- if the Termination doesn't existExpandableNode clone() throws java.lang.CloneNotSupportedException