public class PDDLPlan extends java.lang.Object implements java.lang.Iterable<PDDLAction>
Constructor and Description |
---|
PDDLPlan()
Default class constructor.
|
PDDLPlan(kong.unirest.json.JSONObject plannerResponse,
java.util.Map<java.lang.String,Types.ACTIONS> actionCorrespondence)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearPlan()
Method used to clear the plan.
|
java.util.List<PDDLAction> |
getPDDLActions() |
java.util.Iterator<PDDLAction> |
iterator()
Method that returns an iterator which allows to iterate over the plan's actions.
|
java.lang.String |
toString() |
public PDDLPlan()
public PDDLPlan(kong.unirest.json.JSONObject plannerResponse, java.util.Map<java.lang.String,Types.ACTIONS> actionCorrespondence)
plannerResponse
- JSONObject that represents the planner's response. It must
be a valid response (a response that contains a valid plan).actionCorrespondence
- Map that represents the correspondence between PDDL and
GVGAI actions.public java.util.List<PDDLAction> getPDDLActions()
public void clearPlan()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<PDDLAction> iterator()
iterator
in interface java.lang.Iterable<PDDLAction>