Jadex 0.941

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, boolean exported, String[] paramnames, Class[] paramtypes)
          Create a new condition.
 IMConditionReference createConditionReference(String name, boolean exported, String ref)
          Create a new condition reference.
 IMExpression createExpression(String name, String expression, Class clazz, boolean exported, String[] paramnames, Class[] paramtypes)
          Create a new expression.
 IMExpressionReference createExpressionReference(String name, boolean 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, getExpressionParameters, getName, getOwner, getReport, getScope, setDescription, setName
 

Field Detail

STANDARD_EXPRESSION_REFERENCE

public 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

public IMExpression[] getExpressions()
Get all defined expressions.

Returns:
The expressions.

getExpression

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

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

createExpression

public IMExpression createExpression(String name,
                                     String expression,
                                     Class clazz,
                                     boolean 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

public void deleteExpression(IMExpression expression)
Delete an expression.

Parameters:
expression - The expression.

getExpressionReferences

public IMExpressionReference[] getExpressionReferences()
Get all expression references.

Returns:
The expression references.

getExpressionReference

public IMExpressionReference getExpressionReference(String name)
Get an expression reference.

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

createExpressionReference

public IMExpressionReference createExpressionReference(String name,
                                                       boolean 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

public void deleteExpressionReference(IMExpressionReference reference)
Delete an expression reference.

Parameters:
reference - The expression reference.

getConditions

public IMCondition[] getConditions()
Get all defined conditions.

Returns:
The conditions.

getCondition

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

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

createCondition

public IMCondition createCondition(String name,
                                   String expression,
                                   String trigger,
                                   boolean 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

public void deleteCondition(IMCondition condition)
Delete a condition.

Parameters:
condition - The condition.

getConditionReferences

public IMConditionReference[] getConditionReferences()
Get all condition references.

Returns:
The condition references.

getConditionReference

public IMConditionReference getConditionReference(String name)
Get a condition reference.

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

createConditionReference

public IMConditionReference createConditionReference(String name,
                                                     boolean 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

public void deleteConditionReference(IMConditionReference reference)
Delete an condition reference.

Parameters:
reference - The condition reference.

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.