public class TFGoalCondition extends java.lang.Object implements StateConditionTest
| Modifier and Type | Field and Description |
|---|---|
protected TerminalFunction |
tf |
| Constructor and Description |
|---|
TFGoalCondition(TerminalFunction tf)
Sets this class to return true on any states that are terminal states as indicated by the TerminalFunction.
|
| Modifier and Type | Method and Description |
|---|---|
TerminalFunction |
getTf()
Returns the
TerminalFunction used to specify the goal condition. |
boolean |
satisfies(State s) |
void |
setTf(TerminalFunction tf)
Sets the
TerminalFunction used to specify the goal condition. |
protected TerminalFunction tf
public TFGoalCondition(TerminalFunction tf)
tf - the TerminalFunction that indicates goal states.public TerminalFunction getTf()
TerminalFunction used to specify the goal condition.TerminalFunction used to specify the goal condition.public void setTf(TerminalFunction tf)
TerminalFunction used to specify the goal condition.tf - the TerminalFunction used to specify the goal condition.public boolean satisfies(State s)
satisfies in interface StateConditionTest