public class AndPlanGoalDependency extends PlanGoalDependency
METADATA_NAME, root| Constructor and Description |
|---|
AndPlanGoalDependency(Plan root) |
AndPlanGoalDependency(Plan root,
java.util.List<Goal> goals) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGoal(Goal goal)
Adds a goal to this dependency, indicating that the root plan depends on
it.
|
java.util.List<Goal> |
getGoals()
Returns the set of goals that the root plan depends on.
|
void |
removeGoal(Goal goal)
Remove a goal from this dependency.
|
getRootpublic AndPlanGoalDependency(Plan root)
public void addGoal(Goal goal)
goal - a goal that the root plan depends on.public java.util.List<Goal> getGoals()
public void removeGoal(Goal goal)
goal - the goal to be removed.