|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.problem.Problem
public class Problem
This class represents a problem to resolve.
Field Summary | |
---|---|
private boolean |
checkBounds
|
private java.util.List<Constraint> |
constraints
List of the constraints of the problem. |
private java.util.List<ObjectiveFunction> |
objectiveFunctions
List of the objective functions of the problem. |
Constructor Summary | |
---|---|
Problem()
Creates an instance of the class Problem without objectives and constraints. |
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures the current problem. |
private java.util.List<Constraint> |
createConstraints(org.apache.commons.configuration.Configuration conf)
Creates the list of constraint functions of this problem from the Configuration object. |
private java.util.List<ObjectiveFunction> |
createObjectiveFunctions(org.apache.commons.configuration.Configuration conf)
Creates the list of objective functions of this problem from the Configuration object. |
java.util.List<Constraint> |
getConstraints()
Returns the current list of constraints. |
java.util.List<ObjectiveFunction> |
getObjectiveFunctions()
Returns the current list of objective functions. |
boolean |
isCheckBounds()
Returns the value of the variable #chekcBounds. |
void |
resetObjectiveFunctions()
Resets the value of all the objective functions- |
void |
setCheckBounds(boolean checkBounds)
Sets the value of the variable checkBounds. |
void |
setConstraints(java.util.List<Constraint> constraints)
Sets a new list of constraints. |
void |
setObjectiveFunctions(java.util.List<ObjectiveFunction> objectiveFunctions)
Sets a new list of objective functions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<ObjectiveFunction> objectiveFunctions
private java.util.List<Constraint> constraints
private boolean checkBounds
Constructor Detail |
---|
public Problem()
Method Detail |
---|
public boolean isCheckBounds()
public void setCheckBounds(boolean checkBounds)
checkBounds
- new value for the variable checkBounds.public void setObjectiveFunctions(java.util.List<ObjectiveFunction> objectiveFunctions)
objectiveFunctions
- a new list of objective functions.public java.util.List<ObjectiveFunction> getObjectiveFunctions()
public void setConstraints(java.util.List<Constraint> constraints)
constraints
- a new list of constraints.public java.util.List<Constraint> getConstraints()
public void resetObjectiveFunctions()
public void configure(org.apache.commons.configuration.Configuration conf)
configure
in interface Configurable
conf
- a Configuration object with the configuration of this problem.Configuration
private java.util.List<ObjectiveFunction> createObjectiveFunctions(org.apache.commons.configuration.Configuration conf)
conf
- a Configuration object with the configuration of this problem.
private java.util.List<Constraint> createConstraints(org.apache.commons.configuration.Configuration conf)
conf
- a Configuration object with the configuration of this problem.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |