# HG changeset patch # User Felix Wolfsteller # Date 1315563202 0 # Node ID fc572b30f1b8bf9d49730d8b884d841d21f5772e # Parent 08048bd090e634c37f2620a15a5cf860da5a5c6a Added configuration to kick-in w-differences branch of winfo. flys-artifacts/trunk@2683 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 08048bd090e6 -r fc572b30f1b8 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Sep 09 10:07:14 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Sep 09 10:13:22 2011 +0000 @@ -1,3 +1,18 @@ +2011-09-09 Felix Wolfsteller + + Added configuration to kick-in w-differences branch of winfo. + + * doc/conf/conf.xml: Register new (w-differences) OutputGenerators. + + * doc/conf/artifacts/winfo.xml: Register new state and transitions. + + * src/main/java/de/intevation/flys/artifacts/states/CalculationSelect.java: + Added new (w-differences) calculation mode. + + * src/main/java/de/intevation/flys/exports/WDifferencesCurveInfoGenerator.java: + New file, implementing naive approach to display w-differences + (accidentially omitted in last commit). + 2011-09-09 Felix Wolfsteller Added very stubby WDifferences State/OutGenerator for WINFOArtifact. @@ -9,9 +24,8 @@ New file, implements naive approach to calculate w-differences (of calculations identified by hardcoded uuids!) and register respective facet. - * src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java: - src/main/java/de/intevation/flys/exports/WDifferencesCurveInfoGenerator.java: - New files, implementing naive approach to display w-differences. + * src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java, + New file, implementing naive approach to display w-differences. 2011-09-09 Felix Wolfsteller diff -r 08048bd090e6 -r fc572b30f1b8 flys-artifacts/doc/conf/artifacts/winfo.xml --- a/flys-artifacts/doc/conf/artifacts/winfo.xml Fri Sep 09 10:07:14 2011 +0000 +++ b/flys-artifacts/doc/conf/artifacts/winfo.xml Fri Sep 09 10:13:22 2011 +0000 @@ -12,7 +12,7 @@ - + @@ -39,6 +39,12 @@ + + + + + + @@ -106,6 +112,12 @@ + + + + + + @@ -122,6 +134,18 @@ + + + + + + + + + + + + diff -r 08048bd090e6 -r fc572b30f1b8 flys-artifacts/doc/conf/conf.xml --- a/flys-artifacts/doc/conf/conf.xml Fri Sep 09 10:07:14 2011 +0000 +++ b/flys-artifacts/doc/conf/conf.xml Fri Sep 09 10:13:22 2011 +0000 @@ -101,6 +101,8 @@ de.intevation.flys.exports.DurationCurveExporter de.intevation.flys.exports.ComputedDischargeCurveExporter de.intevation.flys.exports.DischargeLongitudinalSectionExporter + de.intevation.flys.exports.WDifferencesCurveGenerator + de.intevation.flys.exports.WDifferencesCurveInfoGenerator de.intevation.flys.exports.ReportGenerator de.intevation.flys.exports.ReportGenerator diff -r 08048bd090e6 -r fc572b30f1b8 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/CalculationSelect.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/CalculationSelect.java Fri Sep 09 10:07:14 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/CalculationSelect.java Fri Sep 09 10:13:22 2011 +0000 @@ -47,13 +47,18 @@ public static final String CALCULATION_DISCHARGE_CURVE = "calc.discharge.curve"; - /** An array that holds all available calculation modes.*/ + /** Constant value for the state w differences calculation. */ + public static final String CALCULATION_W_DIFFERENCES = + "calc.w.differences"; + + /** An array that holds all available calculation modes. */ public static final String[] CALCULATIONS = { CALCULATION_SURFACE_CURVE, CALCULATION_FLOOD_MAP, CALCULATION_DISCHARGE_CURVE, CALCULATION_DURATION_CURVE, - CALCULATION_DISCHARGE_LONGITUDINAL_CURVE }; + CALCULATION_DISCHARGE_LONGITUDINAL_CURVE, + CALCULATION_W_DIFFERENCES }; /** Error message that is thrown if no mode has been chosen. */ diff -r 08048bd090e6 -r fc572b30f1b8 flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveInfoGenerator.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveInfoGenerator.java Fri Sep 09 10:13:22 2011 +0000 @@ -0,0 +1,15 @@ +package de.intevation.flys.exports; + + +/** + * A ChartInfoGenerator that generates meta information for specific + * w differences. + */ +public class WDifferencesCurveInfoGenerator +extends ChartInfoGenerator +{ + public WDifferencesCurveInfoGenerator() { + super(new WDifferencesCurveGenerator()); + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :