net.sf.javailp
Interface Result

All Known Implementing Classes:
ResultImpl

public interface Result

The class Result is a result of a Problem.


Method Summary
 Boolean containsVar(Object var)
          Returns true if the result contains the variable.
 Number get(Object var)
          Returns the primal value of the variable.
 boolean getBoolean(Object var)
          Returns the primal value for a specific var as a boolean.
 Number getDualValue(Object var)
          Returns the dual value of the variable.
 Number getObjective()
          Returns the objective value.
 Number getPrimalValue(Object var)
          Returns the primal value of the variable.
 void put(Object var, Number value)
          Sets the primal value of the variable.
 void putDualValue(Object var, Number value)
          Sets the dual value of the variable.
 void putPrimalValue(Object var, Number value)
          Sets the primal value of the variable.
 

Method Detail

getObjective

Number getObjective()
Returns the objective value.

Returns:
the objective value

getBoolean

boolean getBoolean(Object var)
Returns the primal value for a specific var as a boolean. (value!=0)

Parameters:
var - the var
Returns:
true if the value is not 0

get

Number get(Object var)
Returns the primal value of the variable.

Parameters:
var - the variable
Returns:
the resulting value

put

void put(Object var,
         Number value)
Sets the primal value of the variable.

Parameters:
var - the variable
value - the value

getPrimalValue

Number getPrimalValue(Object var)
Returns the primal value of the variable.

Parameters:
var - the variable
Returns:
the resulting value

putPrimalValue

void putPrimalValue(Object var,
                    Number value)
Sets the primal value of the variable.

Parameters:
var - the variable
value - the value

getDualValue

Number getDualValue(Object var)
Returns the dual value of the variable.

Parameters:
var - the variable
Returns:
the resulting value

putDualValue

void putDualValue(Object var,
                  Number value)
Sets the dual value of the variable.

Parameters:
var - the variable
value - the value

containsVar

Boolean containsVar(Object var)
Returns true if the result contains the variable.

Parameters:
var - the variable
Returns:
true if the result contains the variable