public interface MultiTermination extends java.io.Serializable, Resettable, java.lang.Cloneable
This is as similar as possible to the Termination. The main difference is that this holds multiple terminations for one Node and represents one Nodes "input".
Run of the MultiTermination is composed of two steps: run all its Terminations and sum all values on these terminations. The entire process should be transparent to the Nengo except the fact that the particular Node is responsible for running own MultiTerminations and read their values
Modifier and Type | Method and Description |
---|---|
Termination |
addTermination()
Add new weighted termination with the default weight (1).
|
Termination |
addTermination(float weight)
Specify the weight of this newly created Termination, if the
Terminaion is multi-dimensional, weight will be applied on all dimensions.
|
Termination |
addTermination(java.lang.Float[] weights)
Specify the weight matrix for this newly created weighted Termination.
|
int |
getDimension()
NUmber of values passed through multiTerminations, the same
as dimensions of all child Terminations.
|
java.lang.String |
getName() |
Node |
getNode()
Get parent Node of my all Terminations.
|
TimeSeries |
getOutput()
Get output of this MultiTermination
|
java.util.HashMap<java.lang.String,Termination> |
getTerminations() |
void |
run(float startTime,
float endTime)
This supposed that all my Terminations were ran before, so
this method just combines values on them to one own value.
|
reset
java.lang.String getName()
Termination addTermination() throws StructuralException
StructuralException
Termination addTermination(float weight) throws StructuralException
weight
- the termination can be weighterStructuralException
Termination addTermination(java.lang.Float[] weights) throws StructuralException
weights
- weight matrixStructuralException
java.util.HashMap<java.lang.String,Termination> getTerminations()
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 runTimeSeries getOutput()
Node getNode()
int getDimension()