public interface BDIAgent
| Modifier and Type | Method and Description |
|---|---|
boolean |
addGoal(Capability dispatcher,
Goal goal)
Adds a new goal to this agent to be achieved.
|
boolean |
addGoal(Capability dispatcher,
Goal goal,
GoalListener goalListener)
Adds a new goal to this agent to be achieved and adds a listener to
observe events related to this goal.
|
boolean |
addGoal(Goal goal)
Adds a new goal to this agent to be achieved.
|
boolean |
addGoal(Goal goal,
GoalListener goalListener)
Adds a new goal to this agent to be achieved and adds a listener to
observe events related to this goal.
|
void |
addGoalListener(GoalListener goalListener)
Adds a listener to be notified when about goal events.
|
void |
addSoftgoal(Softgoal softgoal)
Adds a new softgoal to this agent.
|
jade.lang.acl.ACLMessage |
blockingReceive() |
jade.lang.acl.ACLMessage |
blockingReceive(long millis) |
jade.lang.acl.ACLMessage |
blockingReceive(jade.lang.acl.MessageTemplate pattern) |
jade.lang.acl.ACLMessage |
blockingReceive(jade.lang.acl.MessageTemplate pattern,
long millis) |
boolean |
canHandle(jade.lang.acl.ACLMessage msg)
Checks if this agent is able to process the given message.
|
void |
doActivate() |
void |
doClone(jade.core.Location destination,
java.lang.String newName) |
void |
doDelete() |
void |
doMove(jade.core.Location destination) |
void |
doSuspend() |
void |
doTimeOut(jade.core.Timer t) |
void |
doWait() |
void |
doWait(long millis) |
void |
doWake() |
void |
dropGoal(Goal goal)
Drops a given goal of this agent, which means setting it as no longer
desired.
|
void |
dropSoftoal(Softgoal softgoal)
Drops a given softgoal of this agent.
|
jade.core.AgentState |
getAgentState() |
jade.core.AID |
getAID() |
java.util.Collection<Capability> |
getAllCapabilities()
Returns all capabilities that are part of this agent.
|
jade.core.AID |
getAMS() |
AgentBeliefRevisionStrategy |
getBeliefRevisionStrategy()
Returns the belief revision strategy of this agent.
|
java.util.Collection<Belief<?,?>> |
getBeliefs()
Returns a collection of all beliefs from all capabilities of this agent.
|
java.util.Set<Capability> |
getCapabilities()
Returns the capabilities of this agent.
|
jade.wrapper.AgentContainer |
getContainerController() |
jade.content.ContentManager |
getContentManager() |
int |
getCurQueueSize() |
AgentDeliberationFunction |
getDeliberationFunction()
Returns the deliberation function of this agent.
|
java.util.List<GoalListener> |
getGoalListeners()
Returns all goal listeners.
|
java.util.Set<Goal> |
getGoals()
Gets all goals of this agent.
|
java.lang.String |
getHap() |
jade.core.ServiceHelper |
getHelper(java.lang.String serviceName) |
java.util.Set<Intention> |
getIntentions()
Returns all agent intentions, which are goals that this agent is
committed to achieve.
|
java.lang.String |
getLocalName() |
java.lang.String |
getName() |
AgentOptionGenerationFunction |
getOptionGenerationFunction()
Returns the option generation function of this agent.
|
AgentPlanSelectionStrategy |
getPlanSelectionStrategy()
Returns the plan selection strategy of this agent.
|
int |
getQueueSize() |
java.util.Set<Softgoal> |
getSoftgoals()
Gets all softgoals of this agent.
|
boolean |
hasGoal(Goal goal)
Checks if this agent has a given goal.
|
jade.core.Location |
here() |
void |
putBack(jade.lang.acl.ACLMessage msg) |
jade.lang.acl.ACLMessage |
receive() |
jade.lang.acl.ACLMessage |
receive(jade.lang.acl.MessageTemplate pattern) |
void |
removeGoalListener(GoalListener goalListener)
Removes a goal listener, so it will not be notified about the goal events
anymore.
|
void |
restart()
Restarts the agent in case its reasoning cycle is in the blocked state.
|
void |
send(jade.lang.acl.ACLMessage msg) |
void |
setQueueSize(int newSize) |
boolean addGoal(Capability dispatcher, Goal goal)
dispatcher - the capability that dispatched this goal.goal - the goal to be achieved.boolean addGoal(Capability dispatcher, Goal goal, GoalListener goalListener)
dispatcher - the Capability that dispatched this goal.goal - the goal to be achieved.goalListener - the listener to be notified about this goal events.boolean addGoal(Goal goal)
goal - the goal to be achieved.boolean addGoal(Goal goal, GoalListener goalListener)
goal - the goal to be achieved.goalListener - the listener to be notified.void addGoalListener(GoalListener goalListener)
goalListener - the listener to be notified.void addSoftgoal(Softgoal softgoal)
softgoal - the softgoal to be pursued.jade.lang.acl.ACLMessage blockingReceive()
Agent.blockingReceive()jade.lang.acl.ACLMessage blockingReceive(long millis)
Agent.blockingReceive(long)jade.lang.acl.ACLMessage blockingReceive(jade.lang.acl.MessageTemplate pattern)
Agent.blockingReceive(MessageTemplate)jade.lang.acl.ACLMessage blockingReceive(jade.lang.acl.MessageTemplate pattern,
long millis)
Agent.blockingReceive(MessageTemplate, long)boolean canHandle(jade.lang.acl.ACLMessage msg)
msg - the message to be checked.void doActivate()
Agent.doActivate()void doClone(jade.core.Location destination,
java.lang.String newName)
Agent.doClone(Location, String)void doDelete()
Agent.doDelete()void doMove(jade.core.Location destination)
Agent.doMove(Location)void doSuspend()
Agent.doSuspend()void doTimeOut(jade.core.Timer t)
Agent.doTimeOut(Timer)void doWait()
Agent.doWait()void doWait(long millis)
Agent.doWait(long)void doWake()
Agent.doWake()void dropGoal(Goal goal)
goal - the goal to be dropped.void dropSoftoal(Softgoal softgoal)
softgoal - the softgoal to be dropped.jade.core.AgentState getAgentState()
Agent.getAgentState()jade.core.AID getAID()
Agent.getAID()java.util.Collection<Capability> getAllCapabilities()
jade.core.AID getAMS()
Agent.getAMS()AgentBeliefRevisionStrategy getBeliefRevisionStrategy()
java.util.Collection<Belief<?,?>> getBeliefs()
java.util.Set<Capability> getCapabilities()
jade.wrapper.AgentContainer getContainerController()
Agent.getContainerController()jade.content.ContentManager getContentManager()
Agent.getContentManager()int getCurQueueSize()
Agent.getCurQueueSize()AgentDeliberationFunction getDeliberationFunction()
java.util.List<GoalListener> getGoalListeners()
java.util.Set<Goal> getGoals()
java.lang.String getHap()
Agent.getHap()jade.core.ServiceHelper getHelper(java.lang.String serviceName)
throws jade.core.ServiceException
jade.core.ServiceExceptionAgent.getHelper(String)java.util.Set<Intention> getIntentions()
java.lang.String getLocalName()
Agent.getLocalName()java.lang.String getName()
Agent.getName()AgentOptionGenerationFunction getOptionGenerationFunction()
AgentPlanSelectionStrategy getPlanSelectionStrategy()
int getQueueSize()
Agent.getQueueSize()java.util.Set<Softgoal> getSoftgoals()
boolean hasGoal(Goal goal)
goal - the goal to be checked.jade.core.Location here()
Agent.here()void putBack(jade.lang.acl.ACLMessage msg)
Agent.putBack(ACLMessage)jade.lang.acl.ACLMessage receive()
Agent.receive()jade.lang.acl.ACLMessage receive(jade.lang.acl.MessageTemplate pattern)
Agent.receive()void removeGoalListener(GoalListener goalListener)
goalListener - the goal listener to be removed.void restart()
void send(jade.lang.acl.ACLMessage msg)
Agent.send(ACLMessage)void setQueueSize(int newSize)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionAgent.setQueueSize(int)