# HG changeset patch # User Felix Wolfsteller # Date 1343218255 0 # Node ID 7485338aedff2825f5798d0fed0cf7e5a9a18745 # Parent 676f87e173f7d8c253b2ff4799f6cadf96ebee0d Also add Q-facets for fixrealization. flys-artifacts/trunk@5125 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 676f87e173f7 -r 7485338aedff flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Jul 25 10:20:15 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Jul 25 12:10:55 2012 +0000 @@ -1,3 +1,8 @@ +2012-07-25 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java: + Also add Q-Facet. + 2012-07-25 Felix Wolfsteller * src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java: diff -r 676f87e173f7 -r 7485338aedff flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java Wed Jul 25 10:20:15 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java Wed Jul 25 12:10:55 2012 +0000 @@ -11,6 +11,7 @@ import de.intevation.flys.artifacts.model.CalculationResult; import de.intevation.flys.artifacts.model.FacetTypes; import de.intevation.flys.artifacts.model.ReportFacet; +import de.intevation.flys.artifacts.model.WQKms; import de.intevation.flys.artifacts.model.WaterlevelFacet; import de.intevation.flys.artifacts.model.fixings.FixRealizingCalculation; @@ -71,12 +72,23 @@ // TODO: Add more facets. FixRealizingResult fr = (FixRealizingResult) res.getData(); + /* + facets.add( + new DataFacet(CSV, "CSV data", ComputeType.ADVANCE, hash, id)); + */ + // WaterlevelFacet // Also: DataFacet and WQstuff // TODO naming, i18n. String nameW = "waterlevel"; - facets.add(new WaterlevelFacet( - 0, LONGITUDINAL_W, nameW, ComputeType.ADVANCE, id, hash)); + String nameQ = "discharge"; + WQKms[] wqkms = fr.getWQKms(); + for (int i = 0; i < wqkms.length; i++) { + facets.add(new WaterlevelFacet( + i, LONGITUDINAL_W, nameW, ComputeType.ADVANCE, id, hash)); + facets.add(new WaterlevelFacet( + i, LONGITUDINAL_Q, nameQ, ComputeType.ADVANCE, id, hash)); + } return res; }