public class NetworkImpl.TerminationWrapper extends java.lang.Object implements Termination
Constructor and Description |
---|
NetworkImpl.TerminationWrapper(Node node,
Termination wrapped,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
NetworkImpl.TerminationWrapper |
clone() |
NetworkImpl.TerminationWrapper |
clone(Node node)
Clone method that changes necessary parameters to point to a new parent,
for use in cloning ensembles, etc.
|
Termination |
getBaseTermination()
Unwraps terminations until it finds one that isn't wrapped
|
int |
getDimensions() |
InstantaneousOutput |
getInput() |
boolean |
getModulatory() |
java.lang.String |
getName() |
Node |
getNode() |
float |
getTau() |
Termination |
getWrappedTermination() |
void |
reset(boolean randomize) |
void |
setModulatory(boolean modulatory) |
void |
setTau(float tau) |
void |
setValues(InstantaneousOutput values) |
public NetworkImpl.TerminationWrapper(Node node, Termination wrapped, java.lang.String name)
node
- Parent nodewrapped
- Termination being wrappedname
- New namepublic Termination getWrappedTermination()
public Termination getBaseTermination()
public java.lang.String getName()
getName
in interface Termination
public int getDimensions()
getDimensions
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 Node getNode()
getNode
in interface Termination
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 NetworkImpl.TerminationWrapper clone() throws java.lang.CloneNotSupportedException
clone
in interface Termination
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if clone can't be madepublic NetworkImpl.TerminationWrapper clone(Node node) throws java.lang.CloneNotSupportedException
Termination
clone
in interface Termination
node
- New parent nodejava.lang.CloneNotSupportedException
- if clone cannot be made