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 
 | 
name, parameterClasses, parameterOrderGroup| Constructor and Description | 
|---|
WallToPF(java.lang.String name,
        java.lang.String[] parameterClasses,
        int direction)
Initializes the function. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
isTrue(OOState 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. 
 | 
allGroundings, allGroundingsFromList, equals, findPF, getName, getParameterClasses, getParameterOrderGroups, hashCode, init, someGroundingIsTrue, toStringprotected int xdelta
protected int ydelta
public WallToPF(java.lang.String name,
                java.lang.String[] parameterClasses,
                int direction)
name - the name 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(OOState st, java.lang.String... params)
PropositionalFunctionisTrue in class PropositionalFunctionst - the state that is being checkedparams - the parameters being passed in to the propositional function