return (theReceiver instanceof QueryableAgent);
}
@Override
public String handleAutomatically(AgentInterface theAgent) {
QueryableAgent castedAgent = (QueryableAgent) theAgent;
Vector<Double> theValues = new Vector<Double>();
for (int i = 0; i < theRequestObservations.size(); i++) {
theValues.add(castedAgent.getValueForState(theRequestObservations.get(i)));
}
AgentValueForObsResponse theResponse = new AgentValueForObsResponse(theValues);
String stringResponse = theResponse.makeStringResponse();