public abstract class GoalTemplate
extends java.lang.Object
| Constructor and Description |
|---|
GoalTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static GoalTemplate |
createBeliefGoalTemplate(java.lang.String beliefName)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefGoal and has the given belief name. |
static GoalTemplate |
createBeliefSetTypeGoalTemplate(java.lang.String beliefName,
java.lang.Class<?> beliefValueClass)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefSetValueGoal, has the given belief name, and
its value is of the given type. |
static GoalTemplate |
createBeliefSetValueGoalTemplate(java.lang.String beliefName,
java.lang.Object beliefValue)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefSetValueGoal, has the given belief name, and
has the given value. |
static GoalTemplate |
createBeliefTypeGoalTemplate(java.lang.String beliefName,
java.lang.Class<?> beliefValueClass)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefValueGoal, has the given belief name, and
its value is of the given type. |
static GoalTemplate |
createBeliefValueGoalTemplate(java.lang.String beliefName,
java.lang.Object beliefValue)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefValueGoal, has the given belief name, and
has the given value. |
static GoalTemplate |
createGoalTypeTemplate(java.lang.Class<? extends Goal> goalClass)
This method creates a goal template that positively matches a goal if it
is of the given type.
|
static GoalTemplate |
createNullBeliefValueGoalTemplate(java.lang.String beliefName)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefValueGoal, has the given belief name, and is
associated with a null value. |
abstract boolean |
match(Goal goal)
This methods checks if the given goal matches this template.
|
public static GoalTemplate createBeliefGoalTemplate(java.lang.String beliefName)
BeliefGoal and has the given belief name.beliefName - the belief name to be matched.BeliefGoal
with the given name.public static GoalTemplate createBeliefSetTypeGoalTemplate(java.lang.String beliefName, java.lang.Class<?> beliefValueClass)
BeliefSetValueGoal, has the given belief name, and
its value is of the given type.beliefName - the belief name to be matched.beliefValueClass - the value class name to be matched.BeliefSetValueGoal with the given name and value of the
given type.public static GoalTemplate createBeliefSetValueGoalTemplate(java.lang.String beliefName, java.lang.Object beliefValue)
BeliefSetValueGoal, has the given belief name, and
has the given value.beliefName - the belief name to be matched.beliefValue - the value to be matched.BeliefSetValueGoal with the given name and value.public static GoalTemplate createBeliefTypeGoalTemplate(java.lang.String beliefName, java.lang.Class<?> beliefValueClass)
BeliefValueGoal, has the given belief name, and
its value is of the given type.beliefName - the belief name to be matched.beliefValueClass - the value class name to be matched.BeliefValueGoal with the given name and value of the
given type.public static GoalTemplate createBeliefValueGoalTemplate(java.lang.String beliefName, java.lang.Object beliefValue)
BeliefValueGoal, has the given belief name, and
has the given value.beliefName - the belief name to be matched.beliefValue - the value to be matched.BeliefValueGoal with the given name and value.public static GoalTemplate createGoalTypeTemplate(java.lang.Class<? extends Goal> goalClass)
goalClass - the goal class to be matched.public static GoalTemplate createNullBeliefValueGoalTemplate(java.lang.String beliefName)
BeliefValueGoal, has the given belief name, and is
associated with a null value.beliefName - the belief name to be matched.BeliefValueGoal with the given name and null value.public abstract boolean match(Goal goal)
goal - the goal to be checked.