Jadex 0.941

jadex.model
Interface IMMaintainGoal

All Superinterfaces:
IMElement, IMGoal, IMParameterElement, IMReferenceableElement

public interface IMMaintainGoal
extends IMGoal

Model element of a maintain goal.


Field Summary
 
Fields inherited from interface jadex.model.IMGoal
EXCLUDE_NEVER, EXCLUDE_WHEN_FAILED, EXCLUDE_WHEN_SUCCEEDED, EXCLUDE_WHEN_TRIED
 
Method Summary
 IMCondition createMaintainCondition(String expression)
          Create a maintain condition for the goal.
 IMCondition createTargetCondition(String expression)
          Create a target condition for the goal.
 void deleteMaintainCondition()
          Delete the maintain condition of the goal.
 void deleteTargetCondition()
          Delete the target condition of the goal.
 IMCondition getMaintainCondition()
          Get the maintain condition of the goal.
 long getRecurDelay()
          Get the recur delay.
 IMCondition getTargetCondition()
          Get the target condition of the goal.
 boolean isRecur()
          Get the recur flag.
 void setRecur(boolean recur)
          Set the recur flag.
 void setRecurDelay(long recurdelay)
          Set the recur delay flag.
 
Methods inherited from interface jadex.model.IMGoal
createContextCondition, createCreationCondition, createDeliberation, createDropCondition, createUnique, deleteContextCondition, deleteCreationCondition, deleteDeliberation, deleteDropCondition, deleteUnique, getContextCondition, getCreationCondition, getDeliberation, getDropCondition, getExcludeMode, getGoalEvent, getMetaGoal, getRelevantParameters, getRelevantParameterSets, getRetryDelay, getUnique, isMetaLevelReasoning, isPostToAll, isRandomSelection, isRetry, setExcludeMode, setMetaGoal, setMetaLevelReasoning, setPostToAll, setRandomSelection, setRetry, setRetryDelay
 
Methods inherited from interface jadex.model.IMParameterElement
createParameter, createParameterSet, deleteParameter, deleteParameterSet, getBindingParameters, getParameter, getParameters, getParameterSet, getParameterSets
 
Methods inherited from interface jadex.model.IMReferenceableElement
createAssignTo, deleteAssignTo, getAssignToElements, getAssignTos, isExported, setExported
 
Methods inherited from interface jadex.model.IMElement
check, getChildren, getDescription, getEncodableRepresentation, getExpressionParameters, getName, getOwner, getReport, getScope, setDescription, setName
 

Method Detail

getTargetCondition

public IMCondition getTargetCondition()
Get the target condition of the goal.

Returns:
The target condition (if any).

createTargetCondition

public IMCondition createTargetCondition(String expression)
Create a target condition for the goal.

Parameters:
expression - The expression string.
Returns:
The new target condition.

deleteTargetCondition

public void deleteTargetCondition()
Delete the target condition of the goal.


getMaintainCondition

public IMCondition getMaintainCondition()
Get the maintain condition of the goal.

Returns:
The maintain condition.

createMaintainCondition

public IMCondition createMaintainCondition(String expression)
Create a maintain condition for the goal.

Parameters:
expression - The expression string.
Returns:
The new maintain condition.

deleteMaintainCondition

public void deleteMaintainCondition()
Delete the maintain condition of the goal.


isRecur

public boolean isRecur()
Get the recur flag.

Returns:
The flag indicating if this goal should be retried when the first plan fails.

setRecur

public void setRecur(boolean recur)
Set the recur flag.

Parameters:
recur - The flag indicating if this goal should be retried when the first plan fails.

getRecurDelay

public long getRecurDelay()
Get the recur delay.

Returns:
The delay between retries of the goal (in milliseconds) or -1 for no delay.

setRecurDelay

public void setRecurDelay(long recurdelay)
Set the recur delay flag.

Parameters:
recurdelay - The delay between retries of the goal (in milliseconds) or -1 for no delay.

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.