Package jason.asSyntax
Class CyclicTerm
- All Implemented Interfaces:
LogicalFormula,Term,ToDOM,ToJson,Serializable,Cloneable,Comparable<Term>
A term with recursion (cyclic), created by code like X = f(X).
- See Also:
-
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
ConstructorsConstructorDescriptionCyclicTerm(Literal t, VarTerm v) creates a positive literalCyclicTerm(Literal t, VarTerm v, Unifier u) -
Method Summary
Methods inherited from class jason.asSyntax.LiteralImpl
canBeAddedInBB, cloneNS, getErrorMsg, getPredicateIndicator, isAtom, negated, setNegatedMethods inherited from class jason.asSyntax.Pred
addAnnot, addAnnots, addAnnots, addSource, capplyAnnots, clearAnnots, countVars, createSource, delAnnot, delAnnots, delSource, delSources, equalsAsStructure, getAnnot, getAnnots, getAnnots, getSources, hasAnnot, hasAnnot, hasSource, hasSource, hasSubsetAnnot, hasSubsetAnnot, hasVar, importAnnots, isGround, isPred, parsePred, setAnnots, toStringAsTermMethods inherited from class jason.asSyntax.Structure
addTerm, addTerms, addTerms, delTerm, getArity, getSingletonVars, getTerm, getTerms, getTermsSize, hasTerm, isStructure, isUnary, makeTermsAnnon, makeVarsAnnon, parse, setTerm, setTerms, subsumes, varToReplaceMethods inherited from class jason.asSyntax.Atom
compareTo, getFunctor, getNSMethods inherited from class jason.asSyntax.Literal
addSourceInfoAsAnnots, copy, delAnnots, forceFullLiteralImpl, getAsJson, getAsListOfTerms, getTermsArray, isLiteral, logicalConsequence, newFromListOfTerms, newFunctor, noSource, parseLiteral, subjectToBUFMethods inherited from class jason.asSyntax.DefaultTerm
getSrcInfo, hashCode, isArithExpr, isInternalAction, isList, isMap, isNumeric, isPlanBody, isRule, isSet, isString, isUnnamedVar, isVar, resetHashCodeCache, setSrcInfoMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jason.asSyntax.Term
getSrcInfo, isArithExpr, isInternalAction, isList, isMap, isNumeric, isPlanBody, isRule, isSet, isString, isUnnamedVar, isVar, setSrcInfoMethods inherited from interface jason.util.ToJson
getAsJsonStr
-
Constructor Details
-
CyclicTerm
creates a positive literal -
CyclicTerm
-
-
Method Details
-
getCyclicVar
- Specified by:
getCyclicVarin interfaceTerm- Overrides:
getCyclicVarin classDefaultTerm
-
isCyclicTerm
public boolean isCyclicTerm()- Specified by:
isCyclicTermin interfaceTerm- Overrides:
isCyclicTermin classDefaultTerm
-
equals
- Specified by:
equalsin interfaceTerm- Overrides:
equalsin classLiteralImpl
-
makeVarsAnnon
Description copied from class:Literalreplaces all variables of the term for unnamed variables (_).- Overrides:
makeVarsAnnonin classPred- Parameters:
u- is the unifier that contains the map of replacements
-
capply
Description copied from interface:Termclone and applies together (and faster than clone and then apply)- Specified by:
capplyin interfaceTerm- Overrides:
capplyin classLiteralImpl
-
clone
Description copied from class:Structuremake a deep copy of the terms- Specified by:
clonein interfaceTerm- Overrides:
clonein classLiteralImpl
-
calcHashCode
protected int calcHashCode()- Overrides:
calcHashCodein classLiteralImpl
-
toString
-
getAsDOM
Description copied from class:LiteralImplget as XML- Specified by:
getAsDOMin interfaceToDOM- Overrides:
getAsDOMin classLiteralImpl
-