Interface IGoalbase

  • All Superinterfaces:
    IElement
    All Known Implementing Classes:
    RGoalbase

    public interface IGoalbase
    extends IElement
    The programmers interface for the goalbase. todo: getTopLevelGoals() ?
    • 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.
      • dispatchTopLevelGoal

        <T> IFuture<T> dispatchTopLevelGoal​(IGoal goal)
        Dispatch a new top-level goal.
        Parameters:
        goal - The new goal.