public void testReset() throws StructuralException, SimulationException {
ExpandableSynapticIntegrator si = new LinearSynapticIntegrator(.001f, Units.ACU);
si.addTermination("test", new float[]{1f}, 1f, false);
Termination t = si.getTerminations()[0];
t.setValues(new SpikeOutputImpl(new boolean[]{true}, Units.SPIKES, 0));
for (int i = 0; i < 10; i++) {
si.run(.001f * ((float) i), .001f * ((float) i+1));
t.setValues(new SpikeOutputImpl(new boolean[]{false}, Units.SPIKES, 0));
}
TimeSeries1D current = si.run(.010f, .011f);
assertTrue(current.getValues()[1][0] > .9f);
si.reset(false); //there is no random setting to test