ca.nengo.model.impl
Class SpikeOutputImpl

java.lang.Object
  extended by ca.nengo.model.impl.SpikeOutputImpl
All Implemented Interfaces:
InstantaneousOutput, SpikeOutput, java.io.Serializable, java.lang.Cloneable

public class SpikeOutputImpl
extends java.lang.Object
implements SpikeOutput

Default implementation of SpikeOutput.

Author:
Bryan Tripp
See Also:
Serialized Form

Constructor Summary
SpikeOutputImpl(boolean[] values, Units units, float time)
           
 
Method Summary
 SpikeOutput clone()
           
 int getDimension()
           
 float getTime()
           
 Units getUnits()
           
 boolean[] getValues()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpikeOutputImpl

public SpikeOutputImpl(boolean[] values,
                       Units units,
                       float time)
Parameters:
values - @see #getValues()
units - @see #getUnits()
time - @see #getTime()
Method Detail

getValues

public boolean[] getValues()
Specified by:
getValues in interface SpikeOutput
Returns:
Instantaneous output in spiking channels (true means spike; false means no spike).
See Also:
SpikeOutput.getValues()

getUnits

public Units getUnits()
Specified by:
getUnits in interface InstantaneousOutput
Returns:
Units in which output is expressed.
See Also:
InstantaneousOutput.getUnits()

getDimension

public int getDimension()
Specified by:
getDimension in interface InstantaneousOutput
Returns:
Dimension of output
See Also:
InstantaneousOutput.getDimension()

getTime

public float getTime()
Specified by:
getTime in interface InstantaneousOutput
Returns:
Time at which output is produced.
See Also:
InstantaneousOutput.getTime()

clone

public SpikeOutput clone()
                  throws java.lang.CloneNotSupportedException
Specified by:
clone in interface InstantaneousOutput
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException