es.udc.gii.common.eaf.problem.constraint
Class Constraint

java.lang.Object
  extended by es.udc.gii.common.eaf.problem.constraint.Constraint
All Implemented Interfaces:
Configurable
Direct Known Subclasses:
EqualityConstraint, InequalityConstraint

public abstract class Constraint
extends java.lang.Object
implements Configurable

This interface represents a constraint of a problem. The solution of a problen can't violate this constraint.

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

Field Summary
private  double constraint_value
           
 
Constructor Summary
Constraint()
           
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
          Configures the specific element that implements this method.
abstract  double evaluate(double[] values)
          This methods evaluate a list of values with a function implemented by a contraint.
 double getConstraintValue()
           
abstract  boolean isViolated(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraint_value

private double constraint_value
Constructor Detail

Constraint

public Constraint()
Method Detail

evaluate

public abstract double evaluate(double[] values)
This methods evaluate a list of values with a function implemented by a contraint.

Parameters:
values - the values to be evaluated.
Returns:
the constraint violation value of a list of values evaluated by a implemented constraint.

isViolated

public abstract boolean isViolated(double value)

getConstraintValue

public double getConstraintValue()

configure

public void configure(org.apache.commons.configuration.Configuration conf)
Description copied from interface: Configurable
Configures the specific element that implements this method.

Specified by:
configure in interface Configurable
Parameters:
conf - a Configuration object.
See Also:
Configuration