From 07451b5e61e7d8cd24cf3e89fa0578d99f81085d Mon Sep 17 00:00:00 2001 From: Marcel Kronfeld Date: Tue, 14 Sep 2010 15:56:56 +0000 Subject: [PATCH] A static symbol for the solution data column. --- .../server/go/problems/AbstractOptimizationProblem.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/eva2/server/go/problems/AbstractOptimizationProblem.java b/src/eva2/server/go/problems/AbstractOptimizationProblem.java index df803253..c4fee742 100644 --- a/src/eva2/server/go/problems/AbstractOptimizationProblem.java +++ b/src/eva2/server/go/problems/AbstractOptimizationProblem.java @@ -73,6 +73,8 @@ implements InterfaceOptimizationProblem /*, InterfaceParamControllable*/, Serial } + public static final String STAT_SOLUTION_HEADER = "solution"; + int parallelthreads = 1; protected AbstractEAIndividual m_Template; @@ -242,8 +244,8 @@ implements InterfaceOptimizationProblem /*, InterfaceParamControllable*/, Serial * @return String */ public String[] getAdditionalFileStringHeader() { - if (this instanceof InterfaceInterestingHistogram) return new String[]{"solution","histogram","score"}; - else return new String[]{"solution"}; + if (this instanceof InterfaceInterestingHistogram) return new String[]{STAT_SOLUTION_HEADER,"histogram","score"}; + else return new String[]{STAT_SOLUTION_HEADER}; } /** This method returns the header for the additional data that is to be written into a file