|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.logic.BelSeq
public class BelSeq
Belief sequences (or more aptly belief lists) are used in AFME to identify the conditions under which agents should adopt commitments. In AFME, support is provided for belief labeling. With belief labeling, the developer can encode dependencies a belief list has on other belief lists. The BelSeq class represents a list of beliefs and associated dependencies on other belief lists. It contains functionality for determining if a particular belief sentence evaluates to true. If a belief sentence evaluates to true for one or more binding, a commitment will added to the agent. At a logical level, the use of belief sentences to encode agent behaviour is somewhat similar to the use of resolution-based theorem proving in Prolog.
| Constructor Summary | |
|---|---|
BelSeq(java.lang.String string,
BelSeq[] bArr,
boolean[] bool)
Creates a new instance of BelSeq. |
|
| Method Summary | |
|---|---|
void |
append(java.lang.StringBuffer buffer)
Appends the belief sequence to a string buffer. |
void |
clear()
Clears the solved state of the belief sentence and wipes all solutions. |
BelSeq |
createAppliedSeq(SubstitutionSet ss)
Recursively applies the substitution set to the attributes of this BelSeq to create an applied belief sequence. |
static void |
createCommit(Agent agent,
FOS fos)
|
void |
createCommit(FOS right,
Agent agent)
Creates commitment objects and adds them to the specified agents by applying solutions of the belief sentence to the commitment first order structure. |
void |
recurSolve(Agent agent)
Recursively solves the belief sequence. |
void |
seqClear()
Clears each of the BelSeqs that this BelSeq has a dependency on provided the BelSeq has been tested or solved. |
boolean |
solveSeq(Agent agent)
Recursively solves the BelSeqs that this BelSeq has a dependency on. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BelSeq(java.lang.String string,
BelSeq[] bArr,
boolean[] bool)
throws MalformedLogicException
string - a string representation of the belief list.bArr - the BelSeqs that this BelSeq has dependencies on.bool - this array is used to determine whether the elements
of bArr are negated dependencies. The arrays are associated through
their index number.
MalformedLogicException - if there is a logic error.| Method Detail |
|---|
public void createCommit(FOS right,
Agent agent)
right - the commitment first order structure.agent - the agent adopts the commitments.
public static void createCommit(Agent agent,
FOS fos)
public void clear()
public void seqClear()
public boolean solveSeq(Agent agent)
agent - the agent the BelSeq belongs to.
public void recurSolve(Agent agent)
throws MalformedLogicException
agent - the agent this belief sequence belongs to.
MalformedLogicException - if there is a logic error.public BelSeq createAppliedSeq(SubstitutionSet ss)
ss - the substitution set applied to the beliefs and belief list dependendencies of this BelSeq.
public void append(java.lang.StringBuffer buffer)
buffer - the string buffer that the belief sequence is to be appended to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||