Package jadex.bdiv3x.runtime
Class RGoalbase
- java.lang.Object
- 
- jadex.bdiv3.runtime.impl.RElement
- 
- jadex.bdiv3x.runtime.RGoalbase
 
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringscopeThe scope (for local views).
 - 
Constructor SummaryConstructors Constructor Description RGoalbase(IInternalAccess agent, java.lang.String scope)Create a new goalbase.
 - 
Method SummaryAll Methods Instance Methods Concrete 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 class jadex.bdiv3.runtime.impl.RElementgetAgent, getCapability, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElement, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.bdiv3x.runtime.IElementgetModelElement
 
- 
 
- 
- 
- 
Constructor Detail- 
RGoalbasepublic RGoalbase(IInternalAccess agent, java.lang.String scope) Create a new goalbase.
 
- 
 - 
Method Detail- 
containsGoalpublic boolean containsGoal(IGoal goal) Test if an adopted goal is already contained in the goal base.- Specified by:
- containsGoalin interface- IGoalbase
- Parameters:
- goal- The goal to test.
- Returns:
- True, if the goal is contained.
 
 - 
getGoalspublic IGoal[] getGoals(java.lang.String type) Get all proprietary goals of a specified type (=model element name).
 - 
getGoalspublic IGoal[] getGoals() Get all the adopted goals in this scope (including subgoals).
 - 
createGoalpublic 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.- Specified by:
- createGoalin interface- IGoalbase
- Parameters:
- type- The template goal name as specified in the ADF.
- Returns:
- The created goal.
 
 - 
dispatchTopLevelGoalpublic <T> IFuture<T> dispatchTopLevelGoal(IGoal goal) Dispatch a new top-level goal.- Specified by:
- dispatchTopLevelGoalin interface- IGoalbase
- Parameters:
- goal- The new goal.
 
 
- 
 
-