public class GridWorldDomain.WallToPF extends PropositionalFunction
| Modifier and Type | Field and Description |
|---|---|
protected int |
xdelta
The relative x distance from the agent of the cell to check
|
protected int |
ydelta
The relative y distance from the agent of the cell to check
|
domain, name, parameterClasses, parameterOrderGroup, pfClass| Constructor and Description |
|---|
GridWorldDomain.WallToPF(java.lang.String name,
Domain domain,
java.lang.String[] parameterClasses,
int direction)
Initializes the function.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrue(State st,
java.lang.String... params)
Returns whether the propositional function is true for the given state with the given parameters
This version is preferred to the comma delimited version.
|
equals, getAllGroundedPropsForState, getAllGroundedPropsFromPFList, getClassName, getName, getParameterClasses, getParameterOrderGroups, hashCode, init, setClassName, somePFGroundingIsTrue, toStringprotected int xdelta
protected int ydelta
public GridWorldDomain.WallToPF(java.lang.String name,
Domain domain,
java.lang.String[] parameterClasses,
int direction)
name - the name of the functiondomain - the domain of the functionparameterClasses - the object class parameter typesdirection - the unit distance direction from the agent to check for a wall (0,1,2,3 corresponds to north,south,east,west).public boolean isTrue(State st, java.lang.String... params)
PropositionalFunctionisTrue in class PropositionalFunctionst - the state that is being checkedparams - the parameters being passed in to the propositional function