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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanclonePB()clone the plan bodygetHead()intbooleanbooleanremoveBody(int index) voidsetAsBodyTerm(boolean b) voidsetBodyNext(PlanBody bl) voidsetBodyTerm(Term t) voidMethods inherited from interface java.lang.Comparable
compareToMethods 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, subsumesMethods 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
-