}
public void setTerminationState(float time) throws StructuralException {
if (myLastTime >= time) { return; }
InstantaneousOutput state = this.getInput();
if (state == null) {
if (myInput != null) {
Arrays.fill(myInput, 0.0f);
}
if (myFilteredInput != null) {
Arrays.fill(myFilteredInput, 0.0f);
}
return;
}
float integrationTime = 0.001f;
if (myInput == null) {
myInput = new float[state.getDimension()];
}
updateRaw(myInput, state, integrationTime);
float tauPSC = getNodeTerminations()[0].getTau();
if (myFilteredInput == null) {
myFilteredInput = new float[state.getDimension()];
}
updateFiltered(myInput, myFilteredInput, tauPSC, integrationTime);
myLastTime = time;
}