ca.nengo.model.impl
Class NetworkImpl.OriginWrapper
java.lang.Object
ca.nengo.model.impl.NetworkImpl.OriginWrapper
- All Implemented Interfaces:
- Origin, java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- NetworkImpl
public class NetworkImpl.OriginWrapper
- extends java.lang.Object
- implements Origin
Wraps an Origin with a new name (for exposing outside Network).
- Author:
- Bryan Tripp
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkImpl.OriginWrapper
public NetworkImpl.OriginWrapper(Node node,
Origin wrapped,
java.lang.String name)
NetworkImpl.OriginWrapper
public NetworkImpl.OriginWrapper()
getWrappedOrigin
public Origin getWrappedOrigin()
setWrappedOrigin
public void setWrappedOrigin(Origin wrapped)
getName
public java.lang.String getName()
- Specified by:
getName
in interface Origin
- Returns:
- Name of this Origin (unique in the scope of a source of Origins, eg a Neuron or
Ensemble)
setName
public void setName(java.lang.String name)
getDimensions
public int getDimensions()
- Specified by:
getDimensions
in interface Origin
- Returns:
- Dimensionality of information coming from this Origin (eg number of
axons, or dimension of decoded function of variables represented by the
Ensemble)
getValues
public InstantaneousOutput getValues()
throws SimulationException
- Specified by:
getValues
in interface Origin
- Returns:
- Instantaneous output from this Origin.
- Throws:
SimulationException
- if there is any problem retrieving values
getNode
public Node getNode()
- Specified by:
getNode
in interface Origin
- Returns:
- The Node to which the Origin belongs
setNode
public void setNode(Node node)
clone
public Origin clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface Origin
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException