JAGA Homepage

Class RangeConstraint

  extended by org.jaga.individualRepresentation.greycodedNumbers.RangeConstraint

public class RangeConstraint
extends java.lang.Object

Represents a constraint to the range of values a decimal variable inside an NDecimalsIndividual can assume.

Project: JAGA - Java API for Genetic Algorithms.

Company: University College London and JAGA.Org (http://www.jaga.org).

Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ONLY if you include a note of the original author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/gpl.html

JAGA public release 1.0 beta
Greg Paperin (greg@jaga.org)

Field Summary
(package private)  double max
(package private)  double min
Constructor Summary
RangeConstraint(double min, double max)
Method Summary
 double getMaxValue()
 double getMinValue()
private  void setRange(double min, double max)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


double min


double max
Constructor Detail


public RangeConstraint()


public RangeConstraint(double min,
                       double max)
Method Detail


private void setRange(double min,
                      double max)


public double getMinValue()


public double getMaxValue()

JAGA Homepage

Go to JAGA Homepage