public abstract class GoalTemplateFactory
extends java.lang.Object
| Constructor and Description |
|---|
GoalTemplateFactory() |
| Modifier and Type | Method and Description |
|---|---|
static GoalTemplate |
beliefGoal(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 |
beliefSetTypeGoal(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 |
beliefSetValueGoal(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 |
beliefTypeGoal(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 |
beliefValueGoal(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 |
goalType(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 |
nullBeliefValueGoal(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. |
public static GoalTemplate beliefGoal(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 beliefSetTypeGoal(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 beliefSetValueGoal(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 beliefTypeGoal(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 beliefValueGoal(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 goalType(java.lang.Class<? extends Goal> goalClass)
goalClass - the goal class to be matched.public static GoalTemplate nullBeliefValueGoal(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.