Jadex 0.96-beta1

jadex.runtime
Interface IExpression

All Superinterfaces:
IElement
All Known Subinterfaces:
ICondition

public interface IExpression
extends IElement

The common interface for expressions.


Method Summary
 Object execute()
          Execute the query.
 Object execute(String name, Object value)
          Execute the query using a local parameter.
 Object execute(Tuple[] parameters)
          Execute the query using local parameters.
 Object getParameter(String name)
          Get an expression parameter.
 Object getValue()
          Evaluate the expression.
 void refresh()
          Refresh the cached expression value.
 void setParameter(String name, Object value)
          Set an expression parameter.
 
Methods inherited from interface jadex.runtime.IElement
getModelElement, getName
 

Method Detail

getValue

Object getValue()
Evaluate the expression.

Returns:
The value of the expression.

refresh

void refresh()
Refresh the cached expression value.


setParameter

void setParameter(String name,
                  Object value)
Set an expression parameter.

Parameters:
name - The parameter name.
value - The parameter value.

getParameter

Object getParameter(String name)
Get an expression parameter.

Parameters:
name - The parameter name.
Returns:
The parameter value.

execute

Object execute()
Execute the query.

Returns:
the result value of the query.

execute

Object execute(String name,
               Object value)
Execute the query using a local parameter.

Parameters:
name - The name of the local parameter.
value - The value of the local parameter.
Returns:
the result value of the query.

execute

Object execute(Tuple[] parameters)
Execute the query using local parameters.

Parameters:
parameters - The local parameters (array of name-value pairs).
Returns:
the result value of the query.

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.