|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.logic.lang.FOS
com.agentfactory.logic.lang.BeliefSentence
public class BeliefSentence
Class used to hold composits of beliefs to be used by agents. Such a structure makes it easy to check whether the agent believe X & (Y | Z) and so forth. This structure is based around a prefix notiation i.e. we deal with AND(BELIEF(X),BELIEF(Y)) rather than BELIEF(X) & BELIEF(Y). If in time we wish to give the user the option to write in infix notation, a filter could be wrote to convert the infix input into a prefix format for this class.
| Field Summary | |
|---|---|
static int |
CLASS_LOG_LEVEL
Set the logging level of this class |
| Constructor Summary | |
|---|---|
BeliefSentence(FOS inFOS)
Construct a BeliefSentence out of an FOS. |
|
BeliefSentence(java.lang.String inString)
Construct a BeliefSentence out of a raw string. |
|
| Method Summary | |
|---|---|
boolean |
checkSyntax(FOS inFOS)
Check that the syntax of this FOS extnesion matches that required for a FOS TODO - RR - make sure this matches the actual syntax of a belief sentence Note: We are allowed to create !BELIEFs but that is not to say that the agent will be allowed to believe in a !BELIEF |
java.lang.Object |
clone()
Produce a clone of the current clone method. |
BeliefSentence |
makeCopy()
Static method to copy a BeliefSentence |
boolean |
sameMeaningAs(BeliefSentence inBS)
Check whether one BeliefSentence has the same meaning as another. |
java.lang.String |
toString()
Output a string representation f the BELIEF sentence |
| Methods inherited from class com.agentfactory.logic.lang.FOS |
|---|
addArgument, apply, argAt, atArgPut, copy, equals, getArguments, getConstants, getFunctor, getVariables, isCompatibleFunction, isComposite, isDifferentTo, isDistinctConstant, isDistinctFunction, isFalse, isNot, isNotFunctional, isRule, isSameAs, isTrue, isVariable, matches, numArguments, privateReplaceConstants, putArguments, putArguments, putFunctor, realCopy, replaceConstants, replaceVariableWith |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CLASS_LOG_LEVEL
| Constructor Detail |
|---|
public BeliefSentence(java.lang.String inString)
public BeliefSentence(FOS inFOS)
| Method Detail |
|---|
public boolean checkSyntax(FOS inFOS)
public boolean sameMeaningAs(BeliefSentence inBS)
public BeliefSentence makeCopy()
public java.lang.Object clone()
clone in class FOSpublic java.lang.String toString()
toString in class FOS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||