|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.Agent
br.pucrio.inf.les.bdijade.core.BDIAgent
public class BDIAgent
This class is an extension of 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.
| Nested Class Summary | |
|---|---|
(package private) class |
BDIAgent.BDIInterpreter
This class is a CyclicBehaviour that runs during all the
BDIAgent life in order to provide the reasoning engine. |
| Nested classes/interfaces inherited from class jade.core.Agent |
|---|
jade.core.Agent.Interrupted |
| Field Summary | |
|---|---|
private BDIAgent.BDIInterpreter |
bdiInterpreter
|
private BeliefRevisionStrategy |
beliefRevisionStrategy
|
java.util.Set<Capability> |
capabilities
|
private DeliberationFunction |
deliberationFunction
|
private java.util.List<Intention> |
intentions
|
private OptionGenerationFunction |
optionGenerationFunction
|
private PlanSelectionStrategy |
planSelectionStrategy
|
private static long |
serialVersionUID
|
| Fields inherited from class jade.core.Agent |
|---|
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS |
| Constructor Summary | |
|---|---|
BDIAgent()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addCapability(Capability capability)
Adds a capability to this agent. |
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. |
java.util.Collection<Belief<?>> |
getAllBeliefs()
Returns a collection of all beliefs from all capabilities of this agent. |
java.util.Set<Goal> |
getAllGoals()
Gets all goals of this agent. |
BeliefRevisionStrategy |
getBeliefRevisionStrategy()
|
java.util.Set<Capability> |
getCapabilities()
|
DeliberationFunction |
getDeliberationFunction()
|
java.util.Set<Intention> |
getIntentions()
|
OptionGenerationFunction |
getOptionGenerationFunction()
|
PlanSelectionStrategy |
getPlanSelectionStrategy()
|
protected void |
init()
This method initializes the BDI 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)
|
protected void |
setup()
Initializes the BDI agent. |
protected void |
takeDown()
|
| Methods inherited from class jade.core.Agent |
|---|
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, 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, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final BDIAgent.BDIInterpreter bdiInterpreter
private BeliefRevisionStrategy beliefRevisionStrategy
public final java.util.Set<Capability> capabilities
private DeliberationFunction deliberationFunction
private final java.util.List<Intention> intentions
private OptionGenerationFunction optionGenerationFunction
private PlanSelectionStrategy planSelectionStrategy
| Constructor Detail |
|---|
public BDIAgent()
| Method Detail |
|---|
public 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 java.util.Collection<Belief<?>> getAllBeliefs()
public java.util.Set<Goal> getAllGoals()
public BeliefRevisionStrategy getBeliefRevisionStrategy()
public java.util.Set<Capability> getCapabilities()
public DeliberationFunction getDeliberationFunction()
public java.util.Set<Intention> getIntentions()
public OptionGenerationFunction getOptionGenerationFunction()
public PlanSelectionStrategy getPlanSelectionStrategy()
protected void init()
setup() method.
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 setprotected final void setup()
BDIAgent.BDIInterpreter behavior as well..
setup in class jade.core.AgentAgent.setup()protected void takeDown()
takeDown in class jade.core.AgentAgent.takeDown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||