public class OrPlanGoalDependency extends PlanGoalDependency
METADATA_NAME, root| Constructor and Description |
|---|
OrPlanGoalDependency(Plan root) |
OrPlanGoalDependency(Plan root,
java.util.Map<Goal,java.lang.Double> goals) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGoal(Goal goal,
java.lang.Double probability)
Adds a goal to this dependency, indicating that the root plan depends on
it, with a certain probability.
|
java.util.Map<Goal,java.lang.Double> |
getGoals()
Returns the map of goals with their probabilities that the root plan
depends on.
|
void |
removeGoal(Goal goal)
Remove a goal from this dependency.
|
getRootpublic OrPlanGoalDependency(Plan root)
public void addGoal(Goal goal, java.lang.Double probability)
goal - a goal that the root plan depends on.probability - the probability of the goalpublic java.util.Map<Goal,java.lang.Double> getGoals()
public void removeGoal(Goal goal)
goal - the goal to be removed.