|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.nengo.model.impl.BasicOrigin
public class BasicOrigin
A generic implementation of Origin. Nodes that contain an Origin of this type should call one of the setValues() methods with every Node.run(...).
Constructor Summary | |
---|---|
BasicOrigin(Node node,
java.lang.String name,
int dimension,
Units units)
|
Method Summary | |
---|---|
Origin |
clone()
|
Configuration |
getConfiguration()
|
int |
getDimensions()
|
java.lang.String |
getName()
|
Node |
getNode()
|
Noise |
getNoise()
|
Units |
getUnits()
|
InstantaneousOutput |
getValues()
|
void |
reset(boolean randomize)
|
void |
setDimensions(int dim)
|
void |
setName(java.lang.String name)
|
void |
setNode(Node node)
|
void |
setNoise(Noise noise)
Note that noise is only applied to RealOutput. |
void |
setUnits(Units units)
|
void |
setValues(float startTime,
float endTime,
float[] values)
This method is normally called by the Node that contains this Origin, to set the input that is read by other nodes from getValues(). |
void |
setValues(InstantaneousOutput values)
This method is normally called by the Node that contains this Origin, to set the input that is read by other nodes from getValues(). |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicOrigin(Node node, java.lang.String name, int dimension, Units units)
node
- The parent Nodedimension
- Dimension of output of this Originunits
- The output unitsMethod Detail |
---|
public Configuration getConfiguration()
getConfiguration
in interface Configurable
Configurable.getConfiguration()
public void setValues(float startTime, float endTime, float[] values)
startTime
- Start time of step for which outputs are being definedendTime
- End time of step for which outputs are being definedvalues
- Values underlying RealOutput that is to be output by this Origin in subsequent
calls to getValues()public void setValues(InstantaneousOutput values)
values
- Values to be output by this Origin in subsequent calls to getValues()public int getDimensions()
getDimensions
in interface Origin
Origin.getDimensions()
public void setDimensions(int dim)
public java.lang.String getName()
getName
in interface Origin
Origin.getName()
public void setName(java.lang.String name)
public Units getUnits()
public void setUnits(Units units)
public InstantaneousOutput getValues() throws SimulationException
getValues
in interface Origin
SimulationException
- if there is any problem retrieving valuesOrigin.getValues()
public Noise getNoise()
getNoise
in interface Noise.Noisy
Noise.Noisy.getNoise()
public void setNoise(Noise noise)
setNoise
in interface Noise.Noisy
noise
- New noise modelNoise.Noisy.setNoise(ca.nengo.model.Noise)
public Node getNode()
getNode
in interface Origin
Origin.getNode()
public void setNode(Node node)
public Origin clone() throws java.lang.CloneNotSupportedException
clone
in interface Origin
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |