|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.javailp.ResultImpl
public class ResultImpl
The class ResultImpl is a Map based implementation of the
Result.
| Constructor Summary | |
|---|---|
ResultImpl()
Constructs a ResultImpl for a Problem without objective
function. |
|
ResultImpl(Linear objectiveFunction)
Constructs a ResultImpl for a Problem with an objective
function. |
|
ResultImpl(Number objectiveValue)
Constructs a ResultImpl for a Problem with objective
function and the optimal value. |
|
| Method Summary | |
|---|---|
Boolean |
containsVar(Object var)
Returns true if the result contains the variable. |
Number |
get(Object key)
Returns the primal value of the variable. |
boolean |
getBoolean(Object key)
Returns the primal value for a specific var as a boolean. |
Number |
getDualValue(Object key)
Returns the dual value of the variable. |
Number |
getObjective()
Returns the objective value. |
Number |
getPrimalValue(Object key)
Returns the primal value of the variable. |
void |
put(Object key,
Number value)
Sets the primal value of the variable. |
void |
putDualValue(Object key,
Number value)
Sets the dual value of the variable. |
void |
putPrimalValue(Object key,
Number value)
Sets the primal value of the variable. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResultImpl()
ResultImpl for a Problem without objective
function.
public ResultImpl(Number objectiveValue)
ResultImpl for a Problem with objective
function and the optimal value.
public ResultImpl(Linear objectiveFunction)
ResultImpl for a Problem with an objective
function.
| Method Detail |
|---|
public Number getObjective()
Result
getObjective in interface Resultpublic boolean getBoolean(Object key)
Result
getBoolean in interface Resultkey - the var
true if the value is not 0public Number get(Object key)
Result
get in interface Resultkey - the variable
public void put(Object key,
Number value)
Result
put in interface Resultkey - the variablevalue - the valuepublic Number getPrimalValue(Object key)
Result
getPrimalValue in interface Resultkey - the variable
public void putPrimalValue(Object key,
Number value)
Result
putPrimalValue in interface Resultkey - the variablevalue - the valuepublic Number getDualValue(Object key)
Result
getDualValue in interface Resultkey - the variable
public void putDualValue(Object key,
Number value)
Result
putDualValue in interface Resultkey - the variablevalue - the valuepublic Boolean containsVar(Object var)
Resulttrue if the result contains the variable.
containsVar in interface Resultvar - the variable
true if the result contains the variablepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||