|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.pucrio.inf.les.bdijade.core.Capability
public class Capability
This capability represents a component that aggregates the mental attitudes defined by the BDI architecture. It has a belief base with the associated beliefs (knowledge) and a plan library. *
| Field Summary | |
|---|---|
protected BeliefBase |
beliefBase
|
protected java.lang.String |
id
|
protected BDIAgent |
myAgent
|
protected PlanLibrary |
planLibrary
|
private static long |
serialVersionUID
|
private boolean |
start
|
| Constructor Summary | |
|---|---|
Capability()
Creates a new capability. |
|
Capability(BeliefBase beliefBase,
PlanLibrary planLibrary)
Creates a new capability. |
|
Capability(java.lang.String id)
Creates a new capability. |
|
Capability(java.lang.String id,
BeliefBase beliefBase,
PlanLibrary planLibrary)
Creates a new capability. |
|
| Method Summary | |
|---|---|
boolean |
canProcess(jade.lang.acl.ACLMessage msg)
Checks if this capability has a plan that can process the given message. |
BeliefBase |
getBeliefBase()
|
java.lang.String |
getId()
|
BDIAgent |
getMyAgent()
|
PlanLibrary |
getPlanLibrary()
|
void |
setMyAgent(BDIAgent myAgent)
|
protected void |
setup()
This is an empty holder for being overridden by subclasses. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
protected final BeliefBase beliefBase
protected final java.lang.String id
protected BDIAgent myAgent
protected final PlanLibrary planLibrary
private boolean start
| Constructor Detail |
|---|
public Capability()
BeliefBase and
PlanLibrary as belief base and plan library respectively.
public Capability(BeliefBase beliefBase,
PlanLibrary planLibrary)
beliefBase - the belief base of this capability.planLibrary - the plan library of this capability.public Capability(java.lang.String id)
BeliefBase and
PlanLibrary as belief base and plan library respectively.
id - the capability id. If it is null, the class name is going to
be used.
public Capability(java.lang.String id,
BeliefBase beliefBase,
PlanLibrary planLibrary)
id - the capability id. If it is null, the class name is going to
be used.beliefBase - the belief base of this capability.planLibrary - the plan library of this capability.| Method Detail |
|---|
public boolean canProcess(jade.lang.acl.ACLMessage msg)
msg - the message to be checked.
public BeliefBase getBeliefBase()
public java.lang.String getId()
public BDIAgent getMyAgent()
public PlanLibrary getPlanLibrary()
public void setMyAgent(BDIAgent myAgent)
myAgent - the myAgent to setprotected void setup()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||