Package jason.asSyntax
Interface PlanBody
- All Superinterfaces:
java.lang.Cloneable
,java.lang.Comparable<Term>
,java.io.Serializable
,Term
,ToDOM
,ToJson
- All Known Implementing Classes:
PlanBodyImpl
public interface PlanBody extends Term
Interface for elements of a plans's body.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PlanBody.BodyType
-
Method Summary
Modifier and Type Method Description boolean
add(int index, PlanBody bl)
boolean
add(PlanBody bl)
PlanBody
clonePB()
clone the plan bodyPlanBody
getBodyNext()
Term
getBodyTerm()
PlanBody.BodyType
getBodyType()
PlanBody
getHead()
PlanBody
getLastBody()
int
getPlanSize()
boolean
isBodyTerm()
boolean
isEmptyBody()
Term
removeBody(int index)
void
setAsBodyTerm(boolean b)
void
setBodyNext(PlanBody bl)
void
setBodyTerm(Term t)
void
setBodyType(PlanBody.BodyType bt)
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
-