public class SimplePlan extends Plan
Class.newInstance() method. A
class that has the Behaviour class as superclass is provides and it
is instantiates in the createPlanBody() method.Plan.DefaultMetadata| Constructor and Description |
|---|
SimplePlan(java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
SimplePlan(java.lang.Class<? extends Goal> goalClass,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
SimplePlan(java.lang.Class<? extends Goal> goalClass,
jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
SimplePlan(jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
SimplePlan(java.lang.String id,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
SimplePlan(java.lang.String id,
java.lang.Class<? extends Goal> goalClass,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
SimplePlan(java.lang.String id,
java.lang.Class<? extends Goal> goalClass,
jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
SimplePlan(java.lang.String id,
jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
Creates a new Simple Plan.
|
| Modifier and Type | Method and Description |
|---|---|
jade.core.behaviours.Behaviour |
createPlanBody()
Creates a new instance of the plan body.
|
java.lang.Class<? extends jade.core.behaviours.Behaviour> |
getPlanBodyClass() |
addGoal, addMessageTemplate, canAchieve, canProcess, equals, getId, getPlanLibrary, hashCode, setPlanLibrary, toStringgetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadatapublic SimplePlan(java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public SimplePlan(java.lang.Class<? extends Goal> goalClass, java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process. It sets that this plan can achieve the
specified goal class, but more goals can be specified by overriding the
initGoals() method.goalClass - the goal that this plan can achieve.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public SimplePlan(java.lang.Class<? extends Goal> goalClass, jade.lang.acl.MessageTemplate messageTemplate, java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process. It sets that this plan can achieve the
specified goal class, but more goals can be specified by overriding the
initGoals() method. The message templates is initialized with the
provided template.goalClass - the goal that this plan can achieve.messageTemplate - the template of messages that this plan can process.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public SimplePlan(jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process. The message templates is initialized
with the provided template.messageTemplate - the template of messages that this plan can process.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public SimplePlan(java.lang.String id,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process.id - the id of this plan.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public SimplePlan(java.lang.String id,
java.lang.Class<? extends Goal> goalClass,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process. It sets that this plan can achieve the
specified goal class, but more goals can be specified by overriding the
initGoals() method.id - the id of this plan.goalClass - the goal that this plan can achieve.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public SimplePlan(java.lang.String id,
java.lang.Class<? extends Goal> goalClass,
jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process. It sets that this plan can achieve the
specified goal class, but more goals can be specified by overriding the
initGoals() method. The message templates is initialized with the
provided template.id - the id of this plan.messageTemplate - the template of messages that this plan can process.goalClass - the goal that this plan can achieve.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public SimplePlan(java.lang.String id,
jade.lang.acl.MessageTemplate messageTemplate,
java.lang.Class<? extends jade.core.behaviours.Behaviour> planBodyClass)
PlanBody interface, otherwise an exception is going to be thrown
during the instantiation process. The message templates is initialized
with the provided template.id - the id of this plan.messageTemplate - the template of messages that this plan can process.planBodyClass - the class of the plan body. It must have the Behavior as super
class and implement the PlanBody interface.public jade.core.behaviours.Behaviour createPlanBody()
throws PlanInstantiationException
createPlanBody in class PlanPlanInstantiationException - if an error occurred during the instantiation process.Plan.createPlanBody()public java.lang.Class<? extends jade.core.behaviours.Behaviour> getPlanBodyClass()