public abstract class CompositeGoal extends java.lang.Object implements Goal
| Constructor and Description |
|---|
CompositeGoal(java.util.Collection<Goal> goals)
Instantiate a CompositeGoal with the provided goals.
|
CompositeGoal(Goal[] goals)
Instantiate a CompositeGoal with the provided goals array.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Goal> |
getCompletedGoals() |
GoalFinishedEvent |
getFailedGoal() |
java.util.Collection<Goal> |
getGoals() |
void |
setCompletedGoals(java.util.List<Goal> completedGoals) |
void |
setFailedGoal(GoalFinishedEvent failedGoal) |
public CompositeGoal(java.util.Collection<Goal> goals)
goals - the goals that compose this goal.public CompositeGoal(Goal[] goals)
Collection is instantiated by the method #createGoals()
and is initialized with the provided goals.goals - the goals that compose this goal.public java.util.List<Goal> getCompletedGoals()
public GoalFinishedEvent getFailedGoal()
public java.util.Collection<Goal> getGoals()
public void setCompletedGoals(java.util.List<Goal> completedGoals)
completedGoals - the completedGoals to setpublic void setFailedGoal(GoalFinishedEvent failedGoal)
failedGoal - the failedGoal to set