public void clearGlobals() {
for (int j = _program.interfaceGlobals().size();
j < _observer.variables.length;
j++) {
try {
ValueConstraint con = _observer.variableConstraint(j);
if (con != null) {
_observer.setObserverVariable(j, con.defaultValue());
} else {
_observer.setObserverVariable(j, ZERO);
}
} catch (AgentException ex) {
throw new IllegalStateException(ex);