public void setAgentLocationAndTravelDistance(IAgent a, String location, Double travelDistance) { agentLocationAndTravelDistance.Add(a, new Pair<String, Double>( location, travelDistance)); } }
public void addAgent(IAgent a, System.String startLocation) { // Ensure the agent state information is tracked before // adding to super, as super will notify the registered // EnvironmentViews that is was added. state.setAgentLocationAndTravelDistance(a, startLocation, 0.0); base.addAgent(a); }