|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A set of values which can be bound to an index variable. The elements of the set can be traversed in a environment from which external definition are taken (if the definition of the set is dynamic and is only evaluated when the elements of the set are accessed) Used to generate sums with many terms, define multiple rows in an LP etc.
Constructor Summary | |
GSet()
|
Method Summary | |
---|---|
static GSet |
convert(def setDef)
Convert an object of arbitrary type to a set. |
Iterator |
evaluate(Object env)
Get an iterator through all elements in the set. |
boolean |
isNumbered()
Check whether the set also supports the methods of a numbered set as defined by the abstract class GNumberedSet |
GSet |
multiply(def other)
Override operator '*' in order to support a simple syntax for the definition of set products, e.g. |
List |
toList(Object env)
|
int |
tupleSize()
simple values and no tuples) |
Constructor Detail |
---|
GSet()
Method Detail |
---|
public static GSet convert(def setDef)
public Iterator evaluate(Object env)
public boolean isNumbered()
public GSet multiply(def other)
public List toList(Object env)
public int tupleSize()