}
@Override
public String handleAutomatically(EnvironmentInterface theEnvironment) {
getEnvMaxMinsInterface castedEnv = (getEnvMaxMinsInterface)theEnvironment;
// //Handle a request for the ranges
Vector<Double> mins = new Vector<Double>();
Vector<Double> maxs = new Vector<Double>();
int numVars=castedEnv.getNumVars();
for(int i=0;i<numVars;i++){
mins.add(castedEnv.getMinValueForQuerableVariable(i));
maxs.add(castedEnv.getMaxValueForQuerableVariable(i));
}
EnvRangeResponse theResponse=new EnvRangeResponse(mins, maxs);
return theResponse.makeStringResponse();