es.udc.gii.common.eaf.problem
Class Problem

java.lang.Object
  extended by es.udc.gii.common.eaf.problem.Problem
All Implemented Interfaces:
Configurable

public class Problem
extends java.lang.Object
implements Configurable

This class represents a problem to resolve.

Since:
1.0
Author:
Grupo Integrado de IngenierĂ­a (www.gii.udc.es)

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

objectiveFunctions

private java.util.List<ObjectiveFunction> objectiveFunctions
List of the objective functions of the problem.


constraints

private java.util.List<Constraint> constraints
List of the constraints of the problem.


checkBounds

private boolean checkBounds
Constructor Detail

Problem

public Problem()
Creates an instance of the class Problem without objectives and constraints.

Method Detail

isCheckBounds

public boolean isCheckBounds()
Returns the value of the variable #chekcBounds.

Returns:
the value of the variable checkBounds.

setCheckBounds

public void setCheckBounds(boolean checkBounds)
Sets the value of the variable checkBounds.

Parameters:
checkBounds - new value for the variable checkBounds.

setObjectiveFunctions

public void setObjectiveFunctions(java.util.List<ObjectiveFunction> objectiveFunctions)
Sets a new list of objective functions.

Parameters:
objectiveFunctions - a new list of objective functions.

getObjectiveFunctions

public java.util.List<ObjectiveFunction> getObjectiveFunctions()
Returns the current list of objective functions.

Returns:
the current list of objective functions.

setConstraints

public void setConstraints(java.util.List<Constraint> constraints)
Sets a new list of constraints.

Parameters:
constraints - a new list of constraints.

getConstraints

public java.util.List<Constraint> getConstraints()
Returns the current list of constraints.

Returns:
the current list of constraints.

resetObjectiveFunctions

public void resetObjectiveFunctions()
Resets the value of all the objective functions-


configure

public void configure(org.apache.commons.configuration.Configuration conf)
Configures the current problem.

Specified by:
configure in interface Configurable
Parameters:
conf - a Configuration object with the configuration of this problem.
See Also:
Configuration

createObjectiveFunctions

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.

Parameters:
conf - a Configuration object with the configuration of this problem.
Returns:
the list of objective functions.

createConstraints

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.

Parameters:
conf - a Configuration object with the configuration of this problem.
Returns:
the list of constraint functions.