public abstract class GoalTemplateFactory
extends java.lang.Object
| Constructor and Description |
|---|
GoalTemplateFactory() |
| Modifier and Type | Method and Description |
|---|---|
static GoalTemplate |
goalOfType(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 |
hasBelief(java.lang.Object beliefName)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefPresentGoal and has the given belief name. |
static GoalTemplate |
hasBeliefOfType(java.lang.Class<?> beliefNameClass)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefPresentGoal and has a belief name of the
given type. |
static GoalTemplate |
hasBeliefOfTypeWithNotNullValue(java.lang.Class<?> beliefNameClass)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefNotNullValueGoal, has the a belief name of
the given type. |
static GoalTemplate |
hasBeliefOfTypeWithNullValue(java.lang.Class<?> beliefNameClass)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefValueGoal, has the a belief name of the
given type, and is associated with a null value. |
static GoalTemplate |
hasBeliefOfTypeWithValue(java.lang.Class<?> beliefNameClass,
java.lang.Object beliefValue)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefValueGoal, is of the class of given belief
name class, and has the given value. |
static GoalTemplate |
hasBeliefValue(java.lang.Object 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 |
hasBeliefValueOfType(java.lang.Object 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 |
hasBeliefWithNotNullValue(java.lang.Object beliefName)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefNotNullValueGoal, has the given belief name. |
static GoalTemplate |
hasBeliefWithNullValue(java.lang.Object 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. |
static GoalTemplate |
hasNoBelief(java.lang.Object beliefName)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefNotPresentGoal and has the given belief
name. |
static GoalTemplate |
hasNoBeliefOfType(java.lang.Class<?> beliefNameClass)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefNotPresentGoal and has the given belief
name. |
static GoalTemplate |
hasValueInBeliefSet(java.lang.Object beliefName,
java.lang.Object beliefValue)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefSetHasValueGoal, has the given belief name,
and has the given value. |
static GoalTemplate |
hasValueOfTypeInBeliefSet(java.lang.Object beliefName,
java.lang.Class<?> beliefValueClass)
This method creates a goal template that positively matches a goal if it
is of the type
BeliefSetHasValueGoal, has the given belief name,
and its value is of the given type. |
public static GoalTemplate goalOfType(java.lang.Class<? extends Goal> goalClass)
goalClass - the goal class to be matched.public static GoalTemplate hasBelief(java.lang.Object beliefName)
BeliefPresentGoal and has the given belief name.beliefName - the belief name to be matched.BeliefPresentGoal with the given name.public static GoalTemplate hasBeliefOfType(java.lang.Class<?> beliefNameClass)
BeliefPresentGoal and has a belief name of the
given type.beliefNameClass - the belief name class to be matched.BeliefPresentGoal with a belief name of the given type.public static GoalTemplate hasBeliefOfTypeWithNotNullValue(java.lang.Class<?> beliefNameClass)
BeliefNotNullValueGoal, has the a belief name of
the given type.beliefNameClass - the belief name class to be matched.BeliefNotNullValueGoal with the given name.public static GoalTemplate hasBeliefOfTypeWithNullValue(java.lang.Class<?> beliefNameClass)
BeliefValueGoal, has the a belief name of the
given type, and is associated with a null value.beliefNameClass - the belief name class to be matched.BeliefValueGoal with the given name and null value.public static GoalTemplate hasBeliefOfTypeWithValue(java.lang.Class<?> beliefNameClass, java.lang.Object beliefValue)
BeliefValueGoal, is of the class of given belief
name class, and has the given value.beliefNameClass - the belief name class to be matched.beliefValue - the value to be matched.BeliefValueGoal with the given name and value.public static GoalTemplate hasBeliefValue(java.lang.Object 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 hasBeliefValueOfType(java.lang.Object 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 hasBeliefWithNotNullValue(java.lang.Object beliefName)
BeliefNotNullValueGoal, has the given belief name.beliefName - the belief name to be matched.BeliefNotNullValueGoal with the given name.public static GoalTemplate hasBeliefWithNullValue(java.lang.Object 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 static GoalTemplate hasNoBelief(java.lang.Object beliefName)
BeliefNotPresentGoal and has the given belief
name.beliefName - the belief name to be matched.BeliefNotPresentGoal with the given name.public static GoalTemplate hasNoBeliefOfType(java.lang.Class<?> beliefNameClass)
BeliefNotPresentGoal and has the given belief
name.beliefNameClass - the belief name class to be matched.BeliefNotPresentGoal with a belief name of the given
type.public static GoalTemplate hasValueInBeliefSet(java.lang.Object beliefName, java.lang.Object beliefValue)
BeliefSetHasValueGoal, has the given belief name,
and has the given value.beliefName - the belief name to be matched.beliefValue - the value to be matched.BeliefSetHasValueGoal with the given name and value.public static GoalTemplate hasValueOfTypeInBeliefSet(java.lang.Object beliefName, java.lang.Class<?> beliefValueClass)
BeliefSetHasValueGoal, 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.BeliefSetHasValueGoal with the given name and value of
the given type.