*
* @see ca.nengo.model.Termination#setValues(ca.nengo.model.InstantaneousOutput)
*/
public void setValues(InstantaneousOutput values) throws SimulationException {
if (values.getDimension() != getDimensions()) {
throw new SimulationException("Dimension of input (" + values.getDimension()
+ ") does not equal dimension of this Termination (" + getDimensions() + ")");
}
if ( !(values instanceof RealOutput) ) {
throw new SimulationException("Only real-valued input is accepted at a DecodedTermination");
}
RealOutput ro = (RealOutput) values;
myInputValues = new RealOutputImpl(MU.sum(ro.getValues(), myStaticBias), ro.getUnits(), ro.getTime());