Jadex 0.96-beta1

jadex.model
Interface IMExpressionbase

All Superinterfaces:
IMBase, IMElement

public interface IMExpressionbase
extends IMBase

The expression base interface.


Field Summary
static String STANDARD_EXPRESSION_REFERENCE
          The standard model element for internal expression references (e.g. for initial values).
 
Method Summary
 IMCondition createCondition(String name, String expression, String trigger, String exported, String[] paramnames, Class[] paramtypes)
          Create a new condition.
 IMConditionReference createConditionReference(String name, String exported, String ref)
          Create a new condition reference.
 IMExpression createExpression(String name, String expression, Class clazz, String exported, String[] paramnames, Class[] paramtypes)
          Create a new expression.
 IMExpressionReference createExpressionReference(String name, String exported, String ref)
          Create a new expression reference.
 void deleteCondition(IMCondition condition)
          Delete a condition.
 void deleteConditionReference(IMConditionReference reference)
          Delete an condition reference.
 void deleteExpression(IMExpression expression)
          Delete an expression.
 void deleteExpressionReference(IMExpressionReference reference)
          Delete an expression reference.
 IMCondition getCondition(String name)
          Get a condition by name.
 IMConditionReference getConditionReference(String name)
          Get a condition reference.
 IMConditionReference[] getConditionReferences()
          Get all condition references.
 IMCondition[] getConditions()
          Get all defined conditions.
 IMExpression getExpression(String name)
          Get a expression by name.
 IMExpressionReference getExpressionReference(String name)
          Get an expression reference.
 IMExpressionReference[] getExpressionReferences()
          Get all expression references.
 IMExpression[] getExpressions()
          Get all defined expressions.
 
Methods inherited from interface jadex.model.IMBase
deleteReferenceableElement, getCorrespondingBase, getElementReferences, getReferenceableElement, getReferenceableElements
 
Methods inherited from interface jadex.model.IMElement
check, getChildren, getDescription, getEncodableRepresentation, getName, getOwner, getReport, getScope, getSystemExpressionParameters, setDescription, setName
 

Field Detail

STANDARD_EXPRESSION_REFERENCE

static final String STANDARD_EXPRESSION_REFERENCE
The standard model element for internal expression references (e.g. for initial values).

See Also:
Constant Field Values
Method Detail

getExpressions

IMExpression[] getExpressions()
Get all defined expressions.

Returns:
The expressions.

getExpression

IMExpression getExpression(String name)
Get a expression by name.

Parameters:
name - The expression name.
Returns:
The expression with that name (if any).

createExpression

IMExpression createExpression(String name,
                              String expression,
                              Class clazz,
                              String exported,
                              String[] paramnames,
                              Class[] paramtypes)
Create a new expression.

Parameters:
name - The expression name.
expression - The expression string.
clazz - The expected type for values.
exported - Flag indicating if this expression may be referenced from outside capabilities.
paramnames - The names of the parameters.
paramtypes - The types of the parameters.
Returns:
The modelelement of the expression.

deleteExpression

void deleteExpression(IMExpression expression)
Delete an expression.

Parameters:
expression - The expression.

getExpressionReferences

IMExpressionReference[] getExpressionReferences()
Get all expression references.

Returns:
The expression references.

getExpressionReference

IMExpressionReference getExpressionReference(String name)
Get an expression reference.

Parameters:
name - The name.
Returns:
The expression reference.

createExpressionReference

IMExpressionReference createExpressionReference(String name,
                                                String exported,
                                                String ref)
Create a new expression reference.

Parameters:
name - The name.
exported - Flag indicating if this element may be referenced from outside capabilities.
ref - The referenced expression (or null for abstract).
Returns:
The modelelement of the expression reference.

deleteExpressionReference

void deleteExpressionReference(IMExpressionReference reference)
Delete an expression reference.

Parameters:
reference - The expression reference.

getConditions

IMCondition[] getConditions()
Get all defined conditions.

Returns:
The conditions.

getCondition

IMCondition getCondition(String name)
Get a condition by name.

Parameters:
name - The condition name.
Returns:
The condition with that name (if any).

createCondition

IMCondition createCondition(String name,
                            String expression,
                            String trigger,
                            String exported,
                            String[] paramnames,
                            Class[] paramtypes)
Create a new condition.

Parameters:
name - The name.
expression - The expression string.
trigger - The trigger type (or null for default).
exported - Flag indicating if this event reference may be referenced from outside capabilities.
Returns:
The new condition model element.

deleteCondition

void deleteCondition(IMCondition condition)
Delete a condition.

Parameters:
condition - The condition.

getConditionReferences

IMConditionReference[] getConditionReferences()
Get all condition references.

Returns:
The condition references.

getConditionReference

IMConditionReference getConditionReference(String name)
Get a condition reference.

Parameters:
name - The name.
Returns:
The condition reference.

createConditionReference

IMConditionReference createConditionReference(String name,
                                              String exported,
                                              String ref)
Create a new condition reference.

Parameters:
name - The name.
exported - Flag indicating if this element may be referenced from outside capabilities.
ref - The referenced condition (or null for abstract).
Returns:
The modelelement of the condition reference.

deleteConditionReference

void deleteConditionReference(IMConditionReference reference)
Delete an condition reference.

Parameters:
reference - The condition reference.

Jadex 0.96-beta1

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-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.