net.sourceforge.combean.mathprog.grooml
Class GProductSet

The product set of multiple sets. Example: If the product sets consists of the individual sets 1..2 and ['a', 'b'], then the product set contains the four elements [1, 'a'], [2, 'a'], [1, 'b'], [2, 'b'].

Field Summary
 int currIdx
           
 List innerSets
           
 int size
           
 
Constructor Summary
GProductSet(def innerSets)
            Constructor.
GProductSet(def innerSets)
           
 
Method Summary
Iterator evaluate(Object env)
          
Object getElem(int idx)
          
List getInnerSets()
          
int indexOf(Object elem)
          
void init(def innerSets)
          
int size()
          
String toString()
          
int tupleSize()
          
 

Constructor Detail

GProductSet

public GProductSet(def innerSets)
Constructor.
params:
innerSet the individual sets that the product set consists of.
innerSets must be Iterable and may only contain elements which can be converted to sets.


GProductSet

public GProductSet(def innerSets)


Method Detail

evaluate

public Iterator evaluate(Object env)


getElem

public Object getElem(int idx)


getInnerSets

public List getInnerSets()


indexOf

public int indexOf(Object elem)


init

void init(def innerSets)


size

public int size()


toString

public String toString()


tupleSize

public int tupleSize()