Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
scope
The scope (for local views).
|
agent, cnt, id, modelelement
Constructor and Description |
---|
RGoalbase(jadex.bridge.IInternalAccess agent,
java.lang.String scope)
Create a new goalbase.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsGoal(IGoal goal)
Test if an adopted goal is already contained in the goal base.
|
IGoal |
createGoal(java.lang.String type)
Create a goal from a template goal.
|
<T> jadex.commons.future.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).
|
getAgent, getCapability, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElement, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getModelElement
public RGoalbase(jadex.bridge.IInternalAccess agent, java.lang.String scope)
public boolean containsGoal(IGoal goal)
containsGoal
in interface IGoalbase
goal
- The goal to test.public IGoal[] getGoals(java.lang.String type)
public IGoal[] getGoals()
public IGoal createGoal(java.lang.String type)
createGoal
in interface IGoalbase
type
- The template goal name as specified in the ADF.public <T> jadex.commons.future.IFuture<T> dispatchTopLevelGoal(IGoal goal)
dispatchTopLevelGoal
in interface IGoalbase
goal
- The new goal.