Package jason.asSyntax
Class InternalActionLiteral
java.lang.Object
jason.asSyntax.DefaultTerm
jason.asSyntax.Literal
jason.asSyntax.Atom
jason.asSyntax.Structure
jason.asSyntax.InternalActionLiteral
- All Implemented Interfaces:
LogicalFormula,Term,ToDOM,ToJson,Serializable,Cloneable,Comparable<Term>
A particular type of literal used to represent internal actions (which has a "." in the functor).
- 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
ConstructorsConstructorDescriptionInternalActionLiteral(Atom ns, Structure p, Agent ag) InternalActionLiteral(Structure p, Agent ag) InternalActionLiteral(String functor) -
Method Summary
Modifier and TypeMethodDescriptionclone and applies together (and faster than clone and then apply)clone()make a deep copy of the termsclone in another namespaceget as XMLbooleanisAtom()booleanlogicalConsequence(Agent ag, Unifier un) logicalConsequence checks whether one particular predicate is a logical consequence of the belief base.makeVarsAnnon(Unifier un) replaces all variables of the term for unnamed variables (_).voidsetIA(InternalAction ia) Methods inherited from class jason.asSyntax.Structure
addTerm, addTerms, addTerms, calcHashCode, countVars, delTerm, equals, getArity, getSingletonVars, getTerm, getTerms, getTermsSize, hasTerm, hasVar, isGround, isStructure, isUnary, makeTermsAnnon, makeVarsAnnon, parse, setTerm, setTerms, subsumes, toString, 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, getSrcInfo, hashCode, isArithExpr, isCyclicTerm, 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, isCyclicTerm, isGround, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumesMethods inherited from interface jason.util.ToJson
getAsJson, getAsJsonStr
-
Constructor Details
-
Method Details
-
isInternalAction
public boolean isInternalAction()- Specified by:
isInternalActionin interfaceTerm- Overrides:
isInternalActionin classDefaultTerm
-
isAtom
public boolean isAtom() -
makeVarsAnnon
Description copied from class:Literalreplaces all variables of the term for unnamed variables (_).- Overrides:
makeVarsAnnonin classStructure- Parameters:
un- is the unifier that contains the map of replacements
-
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
-
setIA
-
getIA
- Throws:
Exception
-
getErrorMsg
- Overrides:
getErrorMsgin classDefaultTerm
-
capply
Description copied from interface:Termclone and applies together (and faster than clone and then apply) -
clone
Description copied from class:Structuremake a deep copy of the terms -
cloneNS
Description copied from interface:Termclone in another namespace -
getAsDOM
get as XML
-