|
Nengo.ca | ||||||||
| 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()
Dummy default, necessary for object "ArrayOrigin" in jython code TODO: Still necessary? |
|
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()
|
boolean |
getRequiredOnCPU()
|
Units |
getUnits()
|
InstantaneousOutput |
getValues()
|
void |
reset(boolean randomize)
|
void |
setDimensions(int dim)
|
void |
setName(java.lang.String name)
|
void |
setNoise(Noise noise)
Note that noise is only applied to RealOutput. |
void |
setRequiredOnCPU(boolean val)
|
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()
public BasicOrigin(Node node,
java.lang.String name,
int dimension,
Units units)
node - The parent Nodename - Name of origindimension - Dimension of output of this Originunits - The output units| Method Detail |
|---|
public Configuration getConfiguration()
getConfiguration in interface ConfigurableConfigurable.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)
setValues in interface Originvalues - Values to be output by this Origin in subsequent calls to getValues()public int getDimensions()
getDimensions in interface OriginOrigin.getDimensions()public void setDimensions(int dim)
dim - Origin dimensionalitypublic java.lang.String getName()
getName in interface OriginOrigin.getName()public void setName(java.lang.String name)
name - Origin namepublic Units getUnits()
public void setUnits(Units units)
units - Units used by this origin
public InstantaneousOutput getValues()
throws SimulationException
getValues in interface OriginSimulationException - if there is any problem retrieving valuesOrigin.getValues()public Noise getNoise()
getNoise in interface Noise.NoisyNoise.Noisy.getNoise()public void setNoise(Noise noise)
setNoise in interface Noise.Noisynoise - New noise modelNoise.Noisy.setNoise(ca.nengo.model.Noise)public Node getNode()
getNode in interface OriginOrigin.getNode()
public Origin clone()
throws java.lang.CloneNotSupportedException
clone in interface Originclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if clone can't be madepublic void reset(boolean randomize)
reset in interface Resettablerandomize - 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 void setRequiredOnCPU(boolean val)
setRequiredOnCPU in interface Originpublic boolean getRequiredOnCPU()
getRequiredOnCPU in interface Origin
|
Nengo.ca | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||