| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGoal
The supertype for all goals (concrete and referenced) and all goal types (perform, achieve, get, maintain).
| Field Summary | |
|---|---|
| static Object | EXCLUDE_NEVERNever exclude plan candidates from apl. | 
| static Object | EXCLUDE_WHEN_FAILEDExclude failed plan candidates from apl. | 
| static Object | EXCLUDE_WHEN_SUCCEEDEDExclude succeeded plan candidates from apl. | 
| static Object | EXCLUDE_WHEN_TRIEDExclude tried plan candidates from apl. | 
| static String | LIFECYCLESTATE_ACTIVEThe lifecycle state "active" (adopted and processed or monitored). | 
| static String | LIFECYCLESTATE_ADOPTEDThe lifecycle state "adopted" (adopted, but not active). | 
| static String | LIFECYCLESTATE_DROPPEDThe lifecycle state "dropped" (deleted). | 
| static String | LIFECYCLESTATE_NEWThe lifecycle state "new" (just created). | 
| static String | LIFECYCLESTATE_OPTIONThe lifecycle state "option" (adopted, but not active). | 
| static String | LIFECYCLESTATE_SUSPENDEDThe lifecycle state "active" (adopted and processed or monitored). | 
| Method Summary | |
|---|---|
|  void | addGoalListener(IGoalListener listener,
                boolean async)Add a goal listener. | 
|  void | drop()Drop this goal. | 
|  Exception | getException()Get the exception (if any). | 
|  String | getExcludeMode()Get the exclude mode. | 
|  IFilter | getFilter()Get the filter to wait for an info event. | 
|  String | getLifecycleState()Get the lifecycle state. | 
|  long | getRecurDelay()Get the recur delay expression (if any). | 
|  Object | getResult()Deprecated. | 
|  long | getRetryDelay()Get the retry delay expression (if any). | 
|  String | getType()Get the goal type. | 
|  boolean | isActive()Get the activation state. | 
|  boolean | isAdopted()Check if goal is adopted | 
|  boolean | isFailed()Test if a goal is failed. | 
|  boolean | isFinished()Test if a goal is finished. | 
|  boolean | isPostToAll()Get the post-to-all flag. | 
|  boolean | isRandomSelection()Get the random selection flag. | 
|  boolean | isRecur()Get the recur flag. | 
|  boolean | isRetry()Get the retry flag. | 
|  boolean | isSucceeded()Test if a goal is succeeded. | 
|  void | removeGoalListener(IGoalListener listener)Remove a goal listener. | 
|  void | setExcludeMode(String exclude)Set the exclude mode. | 
|  void | setPostToAll(boolean flag)Set the post-to-all flag. | 
|  void | setRandomSelection(boolean flag)Set the random selection flag. | 
|  void | setRecur(boolean flag)Set the recur flag. | 
|  void | setRecurDelay(long delay)Set the recur delay (in millis). | 
|  void | setResult(Object result)Deprecated. | 
|  void | setRetry(boolean flag)Set the retry flag. | 
|  void | setRetryDelay(long delay)Set the retry delay (in millis). | 
| Methods inherited from interface jadex.runtime.IParameterElement | 
|---|
| getParameter, getParameters, getParameterSet, getParameterSets, hasParameter, hasParameterSet | 
| Methods inherited from interface jadex.runtime.IElement | 
|---|
| getModelElement, getName | 
| Field Detail | 
|---|
static final Object EXCLUDE_NEVER
static final Object EXCLUDE_WHEN_FAILED
static final Object EXCLUDE_WHEN_SUCCEEDED
static final Object EXCLUDE_WHEN_TRIED
static final String LIFECYCLESTATE_NEW
static final String LIFECYCLESTATE_ADOPTED
static final String LIFECYCLESTATE_OPTION
static final String LIFECYCLESTATE_ACTIVE
static final String LIFECYCLESTATE_SUSPENDED
static final String LIFECYCLESTATE_DROPPED
| Method Detail | 
|---|
boolean isPostToAll()
boolean isRandomSelection()
void setPostToAll(boolean flag)
flag - The post-to-all flag.void setRandomSelection(boolean flag)
flag - The random selection flag.boolean isRetry()
long getRetryDelay()
String getExcludeMode()
boolean isRecur()
long getRecurDelay()
void setRetry(boolean flag)
flag - The retry flag.void setRetryDelay(long delay)
delay - The delay.void setExcludeMode(String exclude)
exclude - The exclude mode.void setRecur(boolean flag)
flag - The recur flag.void setRecurDelay(long delay)
delay - The delay.boolean isActive()
boolean isAdopted()
String getLifecycleState()
boolean isFinished()
boolean isSucceeded()
boolean isFailed()
void drop()
String getType()
Exception getException()
void setResult(Object result)
result - The result.Object getResult()
IFilter getFilter()
void addGoalListener(IGoalListener listener,
                     boolean async)
listener - The goal listener.async - True, if the notification should be done on a separate thread.void removeGoalListener(IGoalListener listener)
listener - The goal listener.| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.