public class LocalSubgoalTF extends java.lang.Object implements TerminalFunction
StateConditionTest
objects. The agent will terminate in any subgoal state or any state that is not an applicable state.Modifier and Type | Field and Description |
---|---|
protected StateConditionTest |
applicableStateTest
Defines the set of states in which the option is applicable
|
protected StateConditionTest |
subgoalStateTest
Defines he set of subgoal states for the option
|
Constructor and Description |
---|
LocalSubgoalTF(StateConditionTest subgoalStateTest)
Initializes with a set of subgoal states.
|
LocalSubgoalTF(StateConditionTest applicableStateTest,
StateConditionTest subgoalStateTest)
Initializes with a set of states in which the option is applicable and the options subgoal states.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminal(State s) |
protected StateConditionTest applicableStateTest
protected StateConditionTest subgoalStateTest
public LocalSubgoalTF(StateConditionTest subgoalStateTest)
subgoalStateTest
- the subgoal states.public LocalSubgoalTF(StateConditionTest applicableStateTest, StateConditionTest subgoalStateTest)
applicableStateTest
- the states in which the option is applicable.subgoalStateTest
- the subgoal statespublic boolean isTerminal(State s)
isTerminal
in interface TerminalFunction