/***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. S�nchez (luciano@uniovi.es)
J. Alcal�-Fdez (jalcala@decsai.ugr.es)
S. Garc�a (sglopez@ujaen.es)
A. Fern�ndez (alberto.fernandez@ujaen.es)
J. Luengo (julianlm@decsai.ugr.es)
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, either version 3 of the License, or
(at your option) any later version.
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, see http://www.gnu.org/licenses/
**********************************************************************/
package keel.Algorithms.UnsupervisedLearning.AssociationRules.IntervalRuleLearning.GENAR;
public class Gene {
public static final int NOMINAL = 0;
public static final int INTEGER = 1;
public static final int REAL = 2;
private int attr;
private int type;
private double l;
private double u;
public Gene() {
}
public Gene copy() {
Gene gen = new Gene();
gen.attr = this.attr;
gen.type = this.type;
gen.l = this.l;
gen.u = this.u;
return gen;
}
public int getAttr() {
return attr;
}
public void setAttr(int attr) {
this.attr = attr;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public double getL() {
return l;
}
public void setL(double l) {
this.l = l;
}
public double getU() {
return u;
}
public void setU(double u) {
this.u = u;
}
public String toString() {
return "A: " + attr + "; T: " + type + "; L: " + l + "; U: " + u;
}
}