Package jason.asSyntax
Class Atom
java.lang.Object
jason.asSyntax.DefaultTerm
jason.asSyntax.Literal
jason.asSyntax.Atom
- All Implemented Interfaces:
LogicalFormula,Term,ToDOM,ToJson,Serializable,Cloneable,Comparable<Term>
- Direct Known Subclasses:
Structure
Represents an atom (a positive literal with no argument and no annotation, e.g. "tell", "a").
- See Also:
-
Field Summary
Fields 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
Methods inherited from class jason.asSyntax.Literal
addAnnot, addAnnots, addAnnots, addSource, addSourceInfoAsAnnots, addTerm, addTerms, addTerms, canBeAddedInBB, clearAnnots, copy, delAnnot, delAnnots, delAnnots, delSource, delSources, delTerm, equalsAsStructure, forceFullLiteralImpl, getAnnot, getAnnots, getAnnots, getArity, getAsJson, getAsListOfTerms, getPredicateIndicator, getSingletonVars, getSources, getTerm, getTerms, getTermsArray, hasAnnot, hasAnnot, hasSource, hasSource, hasSubsetAnnot, hasSubsetAnnot, hasTerm, importAnnots, isLiteral, logicalConsequence, makeTermsAnnon, makeVarsAnnon, makeVarsAnnon, negated, newFromListOfTerms, newFunctor, noSource, parseLiteral, setAnnots, setNegated, setTerm, setTerms, subjectToBUFMethods inherited from class jason.asSyntax.DefaultTerm
countVars, getCyclicVar, getErrorMsg, getSrcInfo, hashCode, hasVar, isArithExpr, isCyclicTerm, isGround, isInternalAction, isList, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, parse, resetHashCodeCache, setSrcInfo, subsumesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jason.asSyntax.Term
countVars, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isCyclicTerm, isGround, isInternalAction, isList, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumesMethods inherited from interface jason.util.ToJson
getAsJsonStr
-
Constructor Details
-
Atom
-
Atom
-
Atom
-
Atom
-
Atom
-
-
Method Details
-
getFunctor
Description copied from class:Literalreturns the functor of this literal- Specified by:
getFunctorin classLiteral
-
getNS
Description copied from class:Literalreturns the space name of this literal -
clone
- Specified by:
clonein interfaceTerm- Specified by:
clonein classDefaultTerm
-
capply
Description copied from interface:Termclone and applies together (and faster than clone and then apply)- Specified by:
capplyin interfaceTerm- Overrides:
capplyin classDefaultTerm
-
cloneNS
Description copied from interface:Termclone in another namespace- Specified by:
cloneNSin interfaceTerm- Overrides:
cloneNSin classDefaultTerm
-
isAtom
public boolean isAtom()- Specified by:
isAtomin interfaceTerm- Overrides:
isAtomin classDefaultTerm
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Term>- Overrides:
compareToin classDefaultTerm
-
calcHashCode
protected int calcHashCode()- Specified by:
calcHashCodein classDefaultTerm
-
toString
-
getAsDOM
get as XML
-