jenes.tutorials.old.problem5.Color.java

01 /*
02  * JENES
03  * A time asnd memory efficient Java library for genetic algorithms and more 
04  * Copyright (C) 2011 Intelligentia srl
05  *
06  * This program is free software: you can redistribute it and/or modify
07  * it under the terms of the GNU General Public License as published by
08  * the Free Software Foundation, either version 3 of the License, or
09  * (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>. 
18  */
19 package jenes.tutorials.old.problem5;
20 
21 
22 /**
23  * Tutorial illustrating the use of object-oriented chromosomes, whose
24  * allele set can be defined by the user for each gene.
25  *
26  * In this example the chromosomes are combinations of colors. We aim at finding
27  * the vector of colors closest to a given sequence.
28  *
29  * This class defines the enumeration of possible colors.
30  *
31  @author Luigi Troiano
32  @author Pierpaolo Lombardi
33  *
34  @version 1.0
35  @since 1.0
36  */
37 public enum Color {
38     
39     RED, BLACK, WHITE;
40     
41 }