ca.nengo.model.impl
Class EnsembleImplTest.MockExpandableNode
java.lang.Object
ca.nengo.model.impl.AbstractNode
ca.nengo.model.impl.EnsembleImplTest.MockExpandableNode
- All Implemented Interfaces:
- ExpandableNode, Node, Resettable, SimulationMode.ModeConfigurable, VisiblyMutable, java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- EnsembleImplTest
public class EnsembleImplTest.MockExpandableNode
- extends AbstractNode
- implements ExpandableNode
- See Also:
- Serialized Form
| Methods inherited from class ca.nengo.model.impl.AbstractNode |
addChangeListener, clone, getDocumentation, getMode, getName, getOrigin, getOrigins, removeChangeListener, reset, run, setDocumentation, setMode, setName |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnsembleImplTest.MockExpandableNode
public EnsembleImplTest.MockExpandableNode(java.lang.String name,
Origin[] origins,
Termination[] terminations)
addTermination
public Termination addTermination(java.lang.String name,
float[][] weights,
float tauPSC,
boolean modulatory)
throws StructuralException
- Description copied from interface:
ExpandableNode
- Adds a new Termination onto this Node.
- Specified by:
addTermination in interface ExpandableNode
- Parameters:
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).
- Returns:
- resulting Termination
- Throws:
StructuralException - if length of weights doesn't equal getDimension(),
or if there are different numbers of weights given in different rows.
getDimension
public int getDimension()
- Specified by:
getDimension in interface ExpandableNode
- Returns:
- Output dimension of Terminations onto this Node
removeTermination
public void removeTermination(java.lang.String name)
throws StructuralException
- Specified by:
removeTermination in interface ExpandableNode
- Parameters:
name - Name of Termination to remove.
- Throws:
StructuralException
getTermination
public Termination getTermination(java.lang.String name)
throws StructuralException
- Specified by:
getTermination in interface Node- Overrides:
getTermination in class AbstractNode
- Parameters:
name - Name of a Termination onto this Node
- Returns:
- The named Termination if it exists
- Throws:
StructuralException - if the named Termination does not exist- See Also:
Node.getTermination(java.lang.String)
getTerminations
public Termination[] getTerminations()
- Specified by:
getTerminations in interface Node- Overrides:
getTerminations in class AbstractNode
- Returns:
- Sets of input channels (these have the same dimension as corresponding Origins
to which they are connected).
- See Also:
Node.getTerminations()