Package jason.asSyntax
Class RelExpr
- All Implemented Interfaces:
LogicalFormula,Term,ToDOM,ToJson,Serializable,Cloneable,Comparable<Term>
Represents a relational expression like 10 > 20.
When the operator is =.., the first argument is a literal and the
second as list, e.g.:
Literal =.. [functor, list of terms, list of annots]
Examples:
- X =.. [~p, [t1, t2], [a1,a2]]
X is ~p(t1,t2)[a1,a2] - ~p(t1,t2)[a1,a2] =.. X
X is [~p, [t1, t2], [a1,a2]]
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class jason.asSyntax.Structure
emptyTermArray, emptyTermListFields inherited from class jason.asSyntax.Literal
DefaultNS, LFalse, LNeg, LPos, LTrue, predicateIndicatorCacheFields inherited from class jason.asSyntax.DefaultTerm
hashCodeCache, srcInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone and applies together (and faster than clone and then apply)clone()make a hard copy of the termsclone in another namespaceget as XMLgetOp()gets the Operation of this ExpressionlogicalConsequence(Agent ag, Unifier un) logicalConsequence checks whether one particular predicate is a logical consequence of the belief base.static LogicalFormulareturns some LogicalFormula that can be evaluatedMethods inherited from class jason.asSyntax.BinaryStructure
getLHS, getRHS, toStringMethods inherited from class jason.asSyntax.Structure
addTerm, addTerms, addTerms, calcHashCode, countVars, delTerm, equals, getArity, getSingletonVars, getTerm, getTerms, getTermsSize, hasTerm, hasVar, isAtom, isGround, isStructure, isUnary, makeTermsAnnon, makeVarsAnnon, makeVarsAnnon, parse, setTerm, setTerms, subsumes, varToReplaceMethods inherited from class jason.asSyntax.Atom
compareTo, getFunctor, getNSMethods inherited from class jason.asSyntax.Literal
addAnnot, addAnnots, addAnnots, addSource, addSourceInfoAsAnnots, canBeAddedInBB, clearAnnots, copy, delAnnot, delAnnots, delAnnots, delSource, delSources, equalsAsStructure, forceFullLiteralImpl, getAnnot, getAnnots, getAnnots, getAsJson, getAsListOfTerms, getPredicateIndicator, getSources, getTermsArray, hasAnnot, hasAnnot, hasSource, hasSource, hasSubsetAnnot, hasSubsetAnnot, importAnnots, isLiteral, negated, newFromListOfTerms, newFunctor, noSource, parseLiteral, setAnnots, setNegated, subjectToBUFMethods inherited from class jason.asSyntax.DefaultTerm
getCyclicVar, getErrorMsg, getSrcInfo, hashCode, isArithExpr, isCyclicTerm, isInternalAction, isList, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isUnnamedVar, isVar, resetHashCodeCache, setSrcInfoMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface jason.asSyntax.Term
countVars, equals, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumesMethods inherited from interface jason.util.ToJson
getAsJson, getAsJsonStr
-
Constructor Details
-
RelExpr
-
-
Method Details
-
logicalConsequence
Description copied from class:LiterallogicalConsequence checks whether one particular predicate is a logical consequence of the belief base. Returns an iterator for all unifiers that are logCons.- Specified by:
logicalConsequencein interfaceLogicalFormula- Overrides:
logicalConsequencein classLiteral
-
parseExpr
returns some LogicalFormula that can be evaluated -
capply
Description copied from interface:Termclone and applies together (and faster than clone and then apply) -
clone
make a hard copy of the terms -
cloneNS
Description copied from interface:Termclone in another namespace -
getOp
gets the Operation of this Expression -
getAsDOM
get as XML- Specified by:
getAsDOMin interfaceToDOM- Overrides:
getAsDOMin classBinaryStructure
-