net.sourceforge.combean.mathprog.grooml
Class GExpressionVectorIterator

Iterate through an expression, returning each term as VectorValue. In order to convert the symbolic indices in the expression into absolute, indices in the LPModel (consisting of a variable identifier plus a simple numeric index of the variable), the iterator holds a reference to a GLPModel, retrieves the variables from there and lets the variables perform the mapping from symbolic indices to simple numeric indices.

Field Summary
 Iterator itExpr
           
 GLPModel model
           
 
Constructor Summary
GExpressionVectorIterator(GExpression expr, GLPModel model, Object env)
            Constructor to absolute numeric indices
 
Method Summary
boolean hasNext()
          
VectorValue next()
          
void remove()
          
 

Constructor Detail

GExpressionVectorIterator

public GExpressionVectorIterator(GExpression expr, GLPModel model, Object env)
Constructor
params:
expr the expression which shall be traversed
params:
model the model which maps the symbolic indices in the expression
to absolute numeric indices


Method Detail

hasNext

public boolean hasNext()


next

public VectorValue next()


remove

public void remove()