Exemplo n.º 1
0
 public VacuumEnvironmentState(VacuumEnvironment.LocationState locAState,
                               VacuumEnvironment.LocationState locBState)
 {
     this();
     state.put(VacuumEnvironment.LOCATION_A, locAState);
     state.put(VacuumEnvironment.LOCATION_B, locBState);
 }
Exemplo n.º 2
0
 public VacuumEnvPercept(string agentLocation, VacuumEnvironment.LocationState state)
 {
     SetAttribute(AttributeAgentLocation, agentLocation);
     SetAttribute(AttributeState, state);
 }
 public void setLocationState(String location,
                              VacuumEnvironment.LocationState s)
 {
     state[location] = s;
 }
 public VacuumEnvironmentState(VacuumEnvironment.LocationState locAState, VacuumEnvironment.LocationState locBState) : this()
 {
     state[VacuumEnvironment.LocationA] = locAState;
     state[VacuumEnvironment.LocationB] = locBState;
 }
 /**
  * Construct a vacuum environment percept from the agent's perception of the
  * current location and state.
  *
  * @param agentLocation
  *            the agent's perception of the current location.
  * @param state
  *            the agent's perception of the current state.
  */
 public LocalVacuumEnvironmentPercept(string agentLocation,
                                      VacuumEnvironment.LocationState state)
 {
     SetAttribute(ATTRIBUTE_AGENT_LOCATION, agentLocation);
     SetAttribute(ATTRIBUTE_STATE, state);
 }
Exemplo n.º 6
0
 public void setLocationState(String location,
                              VacuumEnvironment.LocationState s)
 {
     state.put(location, s);
 }
Exemplo n.º 7
0
 public VacuumEnvPercept(String agentLocation,
                         VacuumEnvironment.LocationState state)
 {
     setAttribute(ATTRIBUTE_AGENT_LOCATION, agentLocation);
     setAttribute(ATTRIBUTE_STATE, state);
 }