public override EnvironmentState executeAction(IAgent agent, Action a)
{
if (!a.isNoOp()) {
MoveToAction act = (MoveToAction) a;
System.String currLoc = getAgentLocation(agent);
System.Double distance = aMap.getDistance(currLoc, act.getToLocation());
if (distance != null) {
double currTD = getAgentTravelDistance(agent);
state.setAgentLocationAndTravelDistance(agent, act
.getToLocation(), currTD + distance);
}
}
return state;
}