Last change
on this file since 9449 was
6152,
checked in by bfarka, 14 years ago
|
added ecj and custom statistics to communicate with the okb services #1441
|
File size:
1.3 KB
|
Rev | Line | |
---|
[6152] | 1 | /* |
---|
| 2 | Copyright 2006 by Sean Luke |
---|
| 3 | Licensed under the Academic Free License version 3.0 |
---|
| 4 | See the file "LICENSE" for more information |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | package ec.gp; |
---|
| 9 | import ec.*; |
---|
| 10 | import ec.util.*; |
---|
| 11 | |
---|
| 12 | /* |
---|
| 13 | * GPData.java |
---|
| 14 | * |
---|
| 15 | * Created: Mon Oct 25 19:37:18 1999 |
---|
| 16 | * By: Sean Luke |
---|
| 17 | */ |
---|
| 18 | |
---|
| 19 | /** |
---|
| 20 | * GPData is the parent class of data transferred between GPNodes. |
---|
| 21 | * If performed correctly, there need be only one GPData instance |
---|
| 22 | * ever created in the evaluation of many individuals. |
---|
| 23 | |
---|
| 24 | <p><b>Default Base</b><br> |
---|
| 25 | gp.data |
---|
| 26 | |
---|
| 27 | * |
---|
| 28 | * @author Sean Luke |
---|
| 29 | * @version 1.0 |
---|
| 30 | */ |
---|
| 31 | |
---|
| 32 | public abstract class GPData implements Prototype |
---|
| 33 | { |
---|
| 34 | public static final String P_GPDATA = "data"; |
---|
| 35 | |
---|
| 36 | /** Modifies gpd so that gpd is equivalent to us. You may |
---|
| 37 | safely assume that gpd is of the same class as we are. |
---|
| 38 | Do not share pointers with the other object, except to |
---|
| 39 | read-only data: instead, copy any read-write data as necessary. */ |
---|
| 40 | public abstract void copyTo(final GPData gpd); |
---|
| 41 | |
---|
| 42 | public Parameter defaultBase() |
---|
| 43 | { |
---|
| 44 | return GPDefaults.base().push(P_GPDATA); |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | public void setup(final EvolutionState state, final Parameter base) |
---|
| 48 | { |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | public Object clone() |
---|
| 52 | { |
---|
| 53 | try { return super.clone(); } |
---|
| 54 | catch (CloneNotSupportedException e) |
---|
| 55 | { throw new InternalError(); } // never happens |
---|
| 56 | } |
---|
| 57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.