public class MapEnvironment extends AbstractEnvironment
agents, envObjects, performanceMeasures, views| Constructor and Description |
|---|
MapEnvironment(Map map) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgent(Agent a,
java.lang.String startLocation) |
void |
executeAction(Agent agent,
Action a) |
java.lang.String |
getAgentLocation(Agent a) |
java.lang.Double |
getAgentTravelDistance(Agent a) |
Map |
getMap() |
Percept |
getPerceptSeenBy(Agent anAgent) |
addAgent, addEnvironmentObject, addEnvironmentView, createExogenousChange, getAgents, getEnvironmentObjects, getPerformanceMeasure, isDone, notifyEnvironmentViews, notifyEnvironmentViews, notifyViews, removeAgent, removeEnvironmentObject, removeEnvironmentView, step, step, stepUntilDone, updatePerformanceMeasurepublic MapEnvironment(Map map)
public void addAgent(Agent a, java.lang.String startLocation)
public java.lang.String getAgentLocation(Agent a)
public java.lang.Double getAgentTravelDistance(Agent a)
public void executeAction(Agent agent, Action a)
executeAction in class AbstractEnvironmentpublic Percept getPerceptSeenBy(Agent anAgent)
getPerceptSeenBy in class AbstractEnvironmentpublic Map getMap()