public VacuumEnvironmentState(VacuumEnvironment.LocationState locAState, VacuumEnvironment.LocationState locBState) { this(); state.put(VacuumEnvironment.LOCATION_A, locAState); state.put(VacuumEnvironment.LOCATION_B, locBState); }
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); }
public void setLocationState(String location, VacuumEnvironment.LocationState s) { state.put(location, s); }
public VacuumEnvPercept(String agentLocation, VacuumEnvironment.LocationState state) { setAttribute(ATTRIBUTE_AGENT_LOCATION, agentLocation); setAttribute(ATTRIBUTE_STATE, state); }