|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.ie.cowbots.bdi.brf.CRevisionComponent
public abstract class CRevisionComponent
the basic interface for any class that represents a revision function within the cowbot bdi framework. it controls the updates of an agent's epistemic state.
Constructor Summary | |
---|---|
CRevisionComponent()
|
Method Summary | |
---|---|
abstract void |
addProgram(ELP program,
java.lang.String source)
adds a logical program to an agents beliefs |
abstract void |
addUserProgram(java.lang.String name,
ELP program)
this method adds a logical program to the program storage |
abstract BeliefBase |
getBeliefBase()
this method returns the logical belief base of an agent. |
abstract java.util.List<Literal>[] |
getChangeOfBeliefs()
returns a tupel of two lists describing changes in an agent's beliefs. this is used to update the jason belief base properly after the epistemic state was revised. |
abstract IEpistemicState |
getEpistemicState()
returns the epistemic state of an agent |
abstract void |
init(Settings stts,
DLV dlv,
ICowbotUI ui)
initialization routine, allows the cowbot revision to be configured with user parameters. |
abstract boolean |
newRevisionMode()
only used internally, do not care about! |
abstract java.util.List<Literal>[] |
processMessages(java.lang.String agName)
this method should process all "tell" messages previously queued by queueMessage. |
abstract void |
queueMessage(Message m)
this method queues an incoming message. the deliberation may then decide to handle the message |
abstract void |
reset()
resets the revision component (is set back to a fresh initialized state). |
abstract java.util.List<Literal>[] |
revise_belief(Literal beliefToAdd,
Literal beliefToDel,
Intention i)
this method is used to handle belief addition and deletion from jason. |
abstract boolean |
revise_percepts(java.util.List<Literal> per,
java.util.List<ELPLiteral> explore)
this method is used to integrate percepts from the environment into the agent's belief base. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRevisionComponent()
Method Detail |
---|
public abstract boolean revise_percepts(java.util.List<Literal> per, java.util.List<ELPLiteral> explore)
per
- the list of environmental percepts
public abstract java.util.List<Literal>[] revise_belief(Literal beliefToAdd, Literal beliefToDel, Intention i)
public abstract void addProgram(ELP program, java.lang.String source)
program
- logical program to addsource
- source (agent name) of programpublic abstract void queueMessage(Message m)
public abstract java.util.List<Literal>[] processMessages(java.lang.String agName)
public abstract IEpistemicState getEpistemicState()
public abstract void init(Settings stts, DLV dlv, ICowbotUI ui) throws java.lang.Exception
brfConfig
- XML Node named "brf" containing setup dataconfigName
- user configuration override from mas2jdlv
- instance of dlv asp solver
java.lang.Exception
public abstract java.util.List<Literal>[] getChangeOfBeliefs()
public abstract boolean newRevisionMode()
public abstract void addUserProgram(java.lang.String name, ELP program)
name
- program
- public abstract BeliefBase getBeliefBase()
public abstract void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |