Package jason.asSyntax
Interface PlanBody
- All Superinterfaces:
Cloneable
,Comparable<Term>
,Serializable
,Term
,ToDOM
,ToJson
- All Known Implementing Classes:
PlanBodyImpl
Interface for elements of a plans's body.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
clonePB()
clone the plan bodygetHead()
int
boolean
boolean
removeBody
(int index) void
setAsBodyTerm
(boolean b) void
setBodyNext
(PlanBody bl) void
setBodyTerm
(Term t) void
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface jason.asSyntax.Term
capply, clone, cloneNS, countVars, equals, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumes
Methods inherited from interface jason.util.ToJson
getAsJson, getAsJsonStr
-
Method Details
-
getBodyType
PlanBody.BodyType getBodyType() -
getBodyTerm
Term getBodyTerm() -
getBodyNext
PlanBody getBodyNext() -
getHead
PlanBody getHead() -
isEmptyBody
boolean isEmptyBody() -
getPlanSize
int getPlanSize() -
setBodyType
-
setBodyTerm
-
setBodyNext
-
getLastBody
PlanBody getLastBody() -
isBodyTerm
boolean isBodyTerm() -
setAsBodyTerm
void setAsBodyTerm(boolean b) -
add
-
add
-
removeBody
-
clonePB
PlanBody clonePB()clone the plan body
-