KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > grid > fitnessDistributed > MyResult


1 /*
2  * This file is part of JGAP.
3  *
4  * JGAP offers a dual license model containing the LGPL as well as the MPL.
5  *
6  * For licencing information please see the file license.txt included with JGAP
7  * or have a look at the top of class org.jgap.Chromosome which representatively
8  * includes the JGAP license policy applicable for any file delivered with JGAP.
9  */

10 package examples.grid.fitnessDistributed;
11
12 import org.jgap.distr.grid.*;
13 import org.jgap.*;
14
15 /**
16  * Stores the result of a computation. Actually adds no functionality to
17  * superclass JGAPResult. Extend this class for your application if necessary.
18  * It is not necessary to use a class like this, you could simply use
19  * JGAPResult!
20  *
21  * @author Klaus Meffert
22  * @since 3.01
23  */

24 public class MyResult
25     extends JGAPResult {
26   /** String containing the CVS revision. Read out via reflection!*/
27   private final static String JavaDoc CVS_REVISION = "$Revision: 1.3 $";
28
29   /**
30    * Control the class' serializability via this attribute
31    */

32   private static final long serialVersionUID = 2L;
33
34   public MyResult(String JavaDoc a_name, int a_id, IChromosome a_fittestChrom,
35                   long a_unitdone) {
36     super(a_name, a_id, a_fittestChrom, a_unitdone);
37   }
38
39   public MyResult(String JavaDoc a_name, int a_id, Population a_pop,
40                   long a_unitdone) {
41     super(a_name, a_id, a_pop, a_unitdone);
42   }
43 }
44
Popular Tags