public void addAgent(Agent a, string attributeName, Object attributeValue) { if (!(alreadyContains(a))) { a.setAttribute(attributeName, attributeValue); agents.Add(a); } }
public void moveObjectToAbsoluteLocation(Agent a, XYLocation loc) { a.setAttribute(LOCATION, loc); }