|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A sequence of (abstract) terms. The terms are abstract, i.e., they still contain abstract indices which are not yet mapped to concrete indices in a specific LP model. An expression can be bound to a given environment which contains definitions that the expression can then refer to. The environment is accessed by setting it is delegate when a dynamic part of the expression is evaluated. Per default, the expression has its own separate environment. If the environment is modified, this also refers to all inner expressions that the expression is composed off. The individual terms in the expression can be accessed through iteration.
Constructor Summary | |
GExpression()
|
Method Summary | |
---|---|
static GExpression |
combine(List l)
|
static GExpression |
convert(def exprDef)
Convert an object of arbitrary type to an expression. |
Iterator |
evaluate(Object env)
Iterate through the terms in the expression for generics of Groovy. |
Set |
getVarIds(Object env)
Get all variables names that occur in the the expression. |
GExpression |
minus(def other)
|
GExpression |
plus(def other)
|
String |
termsToString(Object env)
Iterate through the terms in the expression for generics of Groovy. |
Constructor Detail |
---|
GExpression()
Method Detail |
---|
public static GExpression combine(List l)
public static GExpression convert(def exprDef)
public Iterator evaluate(Object env)
public Set getVarIds(Object env)
public GExpression minus(def other)
public GExpression plus(def other)
public String termsToString(Object env)