public static class MacroCellGridWorld.InMacroCellPF extends PropositionalFunction
domain, name, parameterClasses, parameterOrderGroup, pfClass
Constructor and Description |
---|
MacroCellGridWorld.InMacroCellPF(Domain domain,
int x,
int y,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTrue(int agentX,
int agentY) |
boolean |
isTrue(State state,
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, isTrue, setClassName, somePFGroundingIsTrue, toString
public MacroCellGridWorld.InMacroCellPF(Domain domain, int x, int y, int width, int height)
public boolean isTrue(State state, java.lang.String[] params)
PropositionalFunction
isTrue
in class PropositionalFunction
state
- the state that is being checkedparams
- the parameters being passed in to the propositional functionpublic boolean isTrue(int agentX, int agentY)