Package jadex.bdiv3x.runtime
Interface IGoalbase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsGoal(IGoal goal)Test if an adopted goal is already contained in the goal base.IGoalcreateGoal(java.lang.String type)Create a goal from a template goal.<T> IFuture<T>dispatchTopLevelGoal(IGoal goal)Dispatch a new top-level goal.IGoal[]getGoals()Get all the adopted goals in this scope (including subgoals).IGoal[]getGoals(java.lang.String type)Get all proprietary goals of a specified type (=model element name).-
Methods inherited from interface jadex.bdiv3x.runtime.IElement
getModelElement
-
-
-
-
Method Detail
-
containsGoal
boolean containsGoal(IGoal goal)
Test if an adopted goal is already contained in the goal base.- Parameters:
goal- The goal to test.- Returns:
- True, if the goal is contained.
-
getGoals
IGoal[] getGoals(java.lang.String type)
Get all proprietary goals of a specified type (=model element name).- Parameters:
type- The goal type.- Returns:
- All proprietary goals of the specified type.
-
getGoals
IGoal[] getGoals()
Get all the adopted goals in this scope (including subgoals).- Returns:
- All goals and subgoals.
-
createGoal
IGoal createGoal(java.lang.String type)
Create a goal from a template goal. To be processed, the goal has to be dispatched as subgoal or adopted as top-level goal.- Parameters:
type- The template goal name as specified in the ADF.- Returns:
- The created goal.
-
-