Modifier and Type | Method and Description |
---|---|
void |
addGoalListener(String type,
IGoalListener listener)
Add a goal listener.
|
boolean |
containsGoal(IGoal goal)
Test if an adopted goal is already contained in the goal base.
|
IGoal |
createGoal(String type)
Create a goal from a template goal.
|
void |
dispatchTopLevelGoal(IGoal goal)
Dispatch a new top-level goal.
|
IGoal[] |
getGoals()
Get all the adopted goals in this scope (including subgoals).
|
IGoal[] |
getGoals(String type)
Get all proprietary goals of a specified type (=model element name).
|
void |
removeGoalListener(String type,
IGoalListener listener)
Remove a goal listener.
|
getModelElement
boolean containsGoal(IGoal goal)
goal
- The goal to test.IGoal[] getGoals(String type)
type
- The goal type.IGoal[] getGoals()
IGoal createGoal(String type)
type
- The template goal name as specified in the ADF.void dispatchTopLevelGoal(IGoal goal)
goal
- The new goal.void addGoalListener(String type, IGoalListener listener)
type
- The goal type.listener
- The goal listener.void removeGoalListener(String type, IGoalListener listener)
type
- The goal type.listener
- The goal listener.Copyright © 2012. All Rights Reserved.