| Package | Description |
|---|---|
| bdi4jade.plan |
This package contains interfaces and classes that allows representation of
plans of BDI agents.
|
| Modifier and Type | Method and Description |
|---|---|
static GoalTemplate |
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 |
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 |
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 |
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 |
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 |
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 |
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. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<GoalTemplate> |
AbstractPlan.getGoalTemplates()
Returns the set of goal templates of the goals that can be achieved by
this plan.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPlan.addGoalTemplate(GoalTemplate goalTemplate)
Adds template of goals that this plan can achieve.
|
| Constructor and Description |
|---|
AbstractPlan(java.lang.String id,
GoalTemplate goalTemplate)
Creates a new plan with an identifier and a template of goals it can
achieve.
|
AbstractPlan(java.lang.String id,
GoalTemplate goalTemplate,
jade.lang.acl.MessageTemplate messageTemplate)
Creates a new plan with an identifier, a template of goals it can
achieve, and a template of messages it can process.
|
SimplePlan(GoalTemplate goalTemplate,
java.lang.Class<? extends PlanBody> planBodyClass)
Creates a new simple plan, which is able to achieve goals that match the
provided template.
|
SimplePlan(GoalTemplate goalTemplate,
jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends PlanBody> planBodyClass)
Creates a new simple plan, which is able to achieve goals that match the
provided goal template and process messages that match the provided
message template.
|
SimplePlan(java.lang.String id,
GoalTemplate goalTemplate,
java.lang.Class<? extends PlanBody> planBodyClass)
Creates a new simple plan, which is able to achieve goals that match the
provided template.
|
SimplePlan(java.lang.String id,
GoalTemplate goalTemplate,
jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends PlanBody> planBodyClass)
Creates a new simple plan, which is able to achieve goals that match the
provided goal template and process messages that match the provided
message template.
|