|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjopt.csp.solution.SolutionScope
A collection of variables that are contained within a solution
Constructor Summary | |
SolutionScope()
Creates a new solution request |
|
SolutionScope(SolutionScope scope)
Creates a new solution request |
Method Summary | |
void |
add(CspVariable var)
Adds a variable to record in a solution |
void |
add(CspVariable[] vars)
Adds an array of variables to record in a solution |
void |
clearObjective()
Clears the objective that was previously set |
boolean |
contains(CspVariable var)
Returns true if a variable is contained within the scope of the solution |
CspDoubleExpr |
getDoubleObjectiveExpression()
Returns objective double expression |
CspFloatExpr |
getFloatObjectiveExpression()
Returns objective float expression |
CspIntExpr |
getIntObjectiveExpression()
Returns objective int expression |
CspLongExpr |
getLongObjectiveExpression()
Returns objective long expression |
CspNumExpr |
getObjectiveExpression()
Returns the objective expression |
boolean |
isMaximizeObjective()
Returns true if the objective of this solution is to maximize an expression |
boolean |
isMinimizeObjective()
Returns true if the objective of this solution is to minimize an expression |
void |
remove(CspVariable var)
Removes a variable from the scope of a solution request |
void |
setMaximizeObjective(CspNumExpr expr)
Sets an objective to maximize the specified expression |
void |
setMinimizeObjective(CspNumExpr expr)
Sets an objective to minimize the specified expression |
java.util.List |
variables()
Returns the list of variables within the scope of the solution |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SolutionScope()
public SolutionScope(SolutionScope scope)
scope
- Scope of variables that should be included within requestMethod Detail |
public void add(CspVariable var)
public void add(CspVariable[] vars)
public void remove(CspVariable var)
public boolean contains(CspVariable var)
public java.util.List variables()
public void setMinimizeObjective(CspNumExpr expr)
expr
- Expression that is to be minimizedpublic void setMaximizeObjective(CspNumExpr expr)
expr
- Expression that is to be maximizedpublic void clearObjective()
public boolean isMinimizeObjective()
public boolean isMaximizeObjective()
public CspNumExpr getObjectiveExpression()
public CspIntExpr getIntObjectiveExpression()
public CspLongExpr getLongObjectiveExpression()
public CspFloatExpr getFloatObjectiveExpression()
public CspDoubleExpr getDoubleObjectiveExpression()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |