public class BDIAgent
extends jade.core.Agent
Agent that has a current set of goals,
which are selected to become intentions, i.e. to tried to be achieve by means
of the selection and execution of plans. It also have a set of
Capability. It has a behavior that runs the BDI-interpreter. This
agent also have a MsgReceiver behavior to receive all messages that
the agent current plans can process.| Constructor and Description |
|---|
BDIAgent()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCapability(Capability capability)
Adds a capability to this agent.
|
void |
addGoal(Capability owner,
Goal goal)
Adds a new goal to this agent to be achieved.
|
void |
addGoal(Capability owner,
Goal goal,
GoalListener goalListener)
Adds a new goal to this agent to be achieved and adds a listener to
observe its end.
|
void |
addGoal(Goal goal)
Adds a new goal to this agent to be achieved.
|
void |
addGoal(Goal goal,
GoalListener goalListener)
Adds a new goal to this agent to be achieved and adds a listener to
observe its end.
|
void |
addSoftgoal(Softgoal softgoal)
Adds a new softgoal to this agent.
|
void |
dropGoal(Goal goal)
Drops a given goal of this agent.
|
void |
dropSoftoal(Softgoal softgoal)
Drops a given softgoal of this agent.
|
java.util.Collection<Belief<?>> |
getAllBeliefs()
Returns a collection of all beliefs from all capabilities of this agent.
|
java.util.List<Capability> |
getAllCapabilities() |
java.util.Set<Goal> |
getAllGoals()
Gets all goals of this agent.
|
java.util.Set<Softgoal> |
getAllSoftgoals()
Gets all softgoals of this agent.
|
BeliefRevisionStrategy |
getBeliefRevisionStrategy() |
DeliberationFunction |
getDeliberationFunction() |
java.util.Set<Intention> |
getIntentions() |
OptionGenerationFunction |
getOptionGenerationFunction() |
PlanSelectionStrategy |
getPlanSelectionStrategy() |
Capability |
getRootCapability()
Returns the root capability of this agent.
|
boolean |
removeCapability(Capability capability)
Removes a capability from this agent.
|
void |
setBeliefRevisionStrategy(BeliefRevisionStrategy beliefRevisionStrategy) |
void |
setDeliberationFunction(DeliberationFunction deliberationFunction) |
void |
setNoLongerDesired(Goal goal)
Sets a goal to be no longer desired.
|
void |
setOptionGenerationFunction(OptionGenerationFunction optionGenerationFunction) |
void |
setPlanSelectionStrategy(PlanSelectionStrategy planSelectionStrategy) |
addBehaviour, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, waitUntilStarted, writepublic void addCapability(Capability capability)
capability - capability to be added.public void addGoal(Goal goal)
goal - the goal to be achieved.public void addGoal(Goal goal, GoalListener goalListener)
goal - the goal to be achieved.goalListener - the listener to be notified.public void addGoal(Capability owner, Goal goal)
owner - the Capability that is owner of the goal.goal - the goal to be achieved.public void addGoal(Capability owner, Goal goal, GoalListener goalListener)
owner - the Capability that is owner of the goal.goal - the goal to be achieved.goalListener - the listener to be notified.public void addSoftgoal(Softgoal softgoal)
softgoal - the softgoal to be pursued.public void dropGoal(Goal goal)
goal - the goal to be dropped.public void dropSoftoal(Softgoal softgoal)
softgoal - the softgoal to be dropped.public java.util.Collection<Belief<?>> getAllBeliefs()
public java.util.List<Capability> getAllCapabilities()
public java.util.Set<Goal> getAllGoals()
public java.util.Set<Softgoal> getAllSoftgoals()
public BeliefRevisionStrategy getBeliefRevisionStrategy()
public DeliberationFunction getDeliberationFunction()
public java.util.Set<Intention> getIntentions()
public OptionGenerationFunction getOptionGenerationFunction()
public PlanSelectionStrategy getPlanSelectionStrategy()
public Capability getRootCapability()
public boolean removeCapability(Capability capability)
capability - capability to be removed.public void setBeliefRevisionStrategy(BeliefRevisionStrategy beliefRevisionStrategy)
beliefRevisionStrategy - the beliefRevisionStrategy to setpublic void setDeliberationFunction(DeliberationFunction deliberationFunction)
deliberationFunction - the deliberationFunction to setpublic void setNoLongerDesired(Goal goal)
goal - the goal to be no longer desired.public void setOptionGenerationFunction(OptionGenerationFunction optionGenerationFunction)
optionGenerationFunction - the optionGenerationFunction to setpublic void setPlanSelectionStrategy(PlanSelectionStrategy planSelectionStrategy)
planSelectionStrategy - the planSelectionStrategy to set