public class VacuumEnvironmentState extends java.lang.Object implements EnvironmentState, FullyObservableVacuumEnvironmentPercept, java.lang.Cloneable
Constructor and Description |
---|
VacuumEnvironmentState()
Constructor
|
VacuumEnvironmentState(VacuumEnvironment.LocationState locAState,
VacuumEnvironment.LocationState locBState)
Constructor
|
Modifier and Type | Method and Description |
---|---|
VacuumEnvironmentState |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAgentLocation(Agent a)
Returns the agent location
|
VacuumEnvironment.LocationState |
getLocationState(java.lang.String location)
Returns the location state
|
int |
hashCode()
Override hashCode()
|
void |
setAgentLocation(Agent a,
java.lang.String location)
Sets the agent location
|
void |
setLocationState(java.lang.String location,
VacuumEnvironment.LocationState s)
Sets the location state
|
java.lang.String |
toString()
Returns a string representation of the environment
|
public VacuumEnvironmentState()
public VacuumEnvironmentState(VacuumEnvironment.LocationState locAState, VacuumEnvironment.LocationState locBState)
locAState
- locBState
- public java.lang.String getAgentLocation(Agent a)
FullyObservableVacuumEnvironmentPercept
getAgentLocation
in interface FullyObservableVacuumEnvironmentPercept
public void setAgentLocation(Agent a, java.lang.String location)
a
- location
- public VacuumEnvironment.LocationState getLocationState(java.lang.String location)
FullyObservableVacuumEnvironmentPercept
getLocationState
in interface FullyObservableVacuumEnvironmentPercept
public void setLocationState(java.lang.String location, VacuumEnvironment.LocationState s)
location
- s
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VacuumEnvironmentState clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object