net.sourceforge.combean.mathprog.grooml
Class GSimpleExpression

An constant expression that consists of a single term.

Field Summary
 GTerm term
           
 
Constructor Summary
GSimpleExpression(String termDef)
            Constructor (from String)
GSimpleExpression(GTerm term)
           
 
Method Summary
Iterator evaluate(Object env)
          
Object getAt(String idx)
          
Object getAt(Object idx)
          
GTerm getTerm()
          
GExpression multiply(Number factor)
          
GExpression negative()
          
GExpression scale(Number factor)
          
 

Constructor Detail

GSimpleExpression

public GSimpleExpression(String termDef)
Constructor (from String)
params:
termDef the String that defines the expression.
params:
env the environment of the expression


GSimpleExpression

public GSimpleExpression(GTerm term)


Method Detail

evaluate

public Iterator evaluate(Object env)


getAt

public Object getAt(String idx)


getAt

public Object getAt(Object idx)


getTerm

public GTerm getTerm()


multiply

public GExpression multiply(Number factor)


negative

public GExpression negative()


scale

public GExpression scale(Number factor)