Jadex 0.941

jadex.model
Interface IMPlan

All Superinterfaces:
IMElement, IMParameterElement, IMReferenceableElement

public interface IMPlan
extends IMParameterElement

Model element of a plan.


Method Summary
 IMPlanBody createBody(String expression, String type)
          Create the body expression.
 IMCondition createContextCondition(String expression)
          Create a context condition for the plan.
 IMPlanParameter createPlanParameter(String name, Class clazz, String direction, long updaterate, String expression, String mode, String[] ies, String[] mes, String[] goals)
          Create a new plan parameter.
 IMExpression createPrecondition(String expression)
          Create a precondition for the plan.
 IMPlanTrigger createTrigger()
          Create new the trigger for the plan.
 IMTrigger createWaitqueue()
          Create new the waitqueue for the plan.
 void deleteBody()
          Delete the plan body expression.
 void deleteContextCondition()
          Delete the context condition of the plan.
 void deletePrecondition()
          Delete the precondition of the plan.
 void deleteTrigger()
          Delete the trigger of the plan.
 void deleteWaitqueue()
          Delete the waitqueue of the plan.
 IMPlanBody getBody()
          Get the body expression.
 IMCondition getContextCondition()
          Get the context condition of the plan.
 IMExpression getPrecondition()
          Get the precondition of the plan.
 int getPriority()
          Get the plan priotity.
 IMPlanTrigger getTrigger()
          Get the trigger of the plan (if any).
 IMTrigger getWaitqueue()
          Get the waitqueue of the plan (if any).
 void setPriority(int priority)
          Set the plan priotity.
 
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

getPriority

public int getPriority()
Get the plan priotity.

Returns:
The priority used when selecting this plan.

setPriority

public void setPriority(int priority)
Set the plan priotity.

Parameters:
priority - The priority used when selecting this plan.

getBody

public IMPlanBody getBody()
Get the body expression.

Returns:
The plan body expression.

createBody

public IMPlanBody createBody(String expression,
                             String type)
Create the body expression.

Parameters:
expression - The expression string.
type - The plan body type.
Returns:
The new plan body expression.

deleteBody

public void deleteBody()
Delete the plan body expression.


getTrigger

public IMPlanTrigger getTrigger()
Get the trigger of the plan (if any).

Returns:
The trigger.

createTrigger

public IMPlanTrigger createTrigger()
Create new the trigger for the plan.

Returns:
The trigger.

deleteTrigger

public void deleteTrigger()
Delete the trigger of the plan.


getWaitqueue

public IMTrigger getWaitqueue()
Get the waitqueue of the plan (if any).

Returns:
The waitqueue.

createWaitqueue

public IMTrigger createWaitqueue()
Create new the waitqueue for the plan.

Returns:
The waitqueue.

deleteWaitqueue

public void deleteWaitqueue()
Delete the waitqueue of the plan.


getPrecondition

public IMExpression getPrecondition()
Get the precondition of the plan.

Returns:
The precondition (if any).

createPrecondition

public IMExpression createPrecondition(String expression)
Create a precondition for the plan.

Parameters:
expression - The expression string.
Returns:
The new precondition.

deletePrecondition

public void deletePrecondition()
Delete the precondition of the plan.


getContextCondition

public IMCondition getContextCondition()
Get the context condition of the plan.

Returns:
The context condition (if any).

createContextCondition

public IMCondition createContextCondition(String expression)
Create a context condition for the plan.

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

deleteContextCondition

public void deleteContextCondition()
Delete the context condition of the plan.


createPlanParameter

public IMPlanParameter createPlanParameter(String name,
                                           Class clazz,
                                           String direction,
                                           long updaterate,
                                           String expression,
                                           String mode,
                                           String[] ies,
                                           String[] mes,
                                           String[] goals)
Create a new plan parameter.

Parameters:
name - The name of the parameter.
clazz - The class for values.
updaterate - The updaterate (or -1 for none).
expression - The default value expression (if any).
mode - The evaluation mode.
ies - The internal event parameter mappings.
mes - The message event parameter mappings.
goals - The goal parameter mappings.
Returns:
The newly created plan parameter.

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.