public static class PassthroughNode.PassthroughTermination extends java.lang.Object implements Termination
Constructor and Description |
---|
PassthroughNode.PassthroughTermination(Node node,
java.lang.String name,
int dimension) |
PassthroughNode.PassthroughTermination(Node node,
java.lang.String name,
int dimension,
float[][] transform) |
Modifier and Type | Method and Description |
---|---|
PassthroughNode.PassthroughTermination |
clone() |
PassthroughNode.PassthroughTermination |
clone(Node node)
Clone method that changes necessary parameters to point to a new parent,
for use in cloning ensembles, etc.
|
int |
getDimensions() |
InstantaneousOutput |
getInput() |
boolean |
getModulatory() |
java.lang.String |
getName() |
Node |
getNode() |
float |
getTau() |
float[][] |
getTransform() |
InstantaneousOutput |
getValues() |
void |
reset(boolean randomize) |
void |
setModulatory(boolean modulatory) |
void |
setTau(float tau) |
void |
setValues(InstantaneousOutput values) |
public PassthroughNode.PassthroughTermination(Node node, java.lang.String name, int dimension)
node
- Parent nodename
- Termination namedimension
- Dimensionality of inputpublic PassthroughNode.PassthroughTermination(Node node, java.lang.String name, int dimension, float[][] transform)
node
- Parent nodename
- Termination namedimension
- Dimensionality of inputtransform
- Transformation matrixpublic int getDimensions()
getDimensions
in interface Termination
public java.lang.String getName()
getName
in interface Termination
public void setValues(InstantaneousOutput values) throws SimulationException
setValues
in interface Termination
values
- InstantaneousOutput (eg from another Ensemble) to apply to this Termination.SimulationException
- if the given values have the wrong dimensionpublic InstantaneousOutput getValues()
public Node getNode()
getNode
in interface Termination
public float[][] getTransform()
public boolean getModulatory()
getModulatory
in interface Termination
public float getTau()
getTau
in interface Termination
public void setModulatory(boolean modulatory)
setModulatory
in interface Termination
modulatory
- True if the Termination is to be modulatorypublic void setTau(float tau) throws StructuralException
setTau
in interface Termination
tau
- Time constant of dominant dynamicsStructuralException
- if the time constant cannot be changedpublic InstantaneousOutput getInput()
getInput
in interface Termination
public void reset(boolean randomize)
reset
in interface Resettable
randomize
- True indicates that the object should be reset to a
randomly selected initial state (the object must be aware of the
distribution from which to draw from). False indicates that the
object should be reset to a fixed initial state (which it must
also know). Some objects may not support randomization of the initial
state, in which case a fixed state will be used in either case.Resettable.reset(boolean)
public PassthroughNode.PassthroughTermination clone() throws java.lang.CloneNotSupportedException
clone
in interface Termination
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if clone can't be madepublic PassthroughNode.PassthroughTermination clone(Node node) throws java.lang.CloneNotSupportedException
Termination
clone
in interface Termination
node
- New parent nodejava.lang.CloneNotSupportedException
- if clone cannot be made