Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/DurationWaterlevel.java @ 9630:8da911b5169c
3 Significant also for Q_1, Q_2...
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Mon, 14 Oct 2019 18:07:31 +0200 |
parents | 5ce50640688c |
children |
comparison
equal
deleted
inserted
replaced
9629:d1c7ee4a3723 | 9630:8da911b5169c |
---|---|
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.sinfo.flood_duration; | 10 package org.dive4elements.river.artifacts.sinfo.flood_duration; |
11 | 11 |
12 import java.io.Serializable; | 12 import java.io.Serializable; |
13 import java.text.NumberFormat; | 13 import java.text.NumberFormat; |
14 | |
15 import org.dive4elements.artifacts.CallContext; | |
16 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; | |
14 | 17 |
15 /** | 18 /** |
16 * @author Domenico Nardi Tironi | 19 * @author Domenico Nardi Tironi |
17 * | 20 * |
18 */ | 21 */ |
54 | 57 |
55 public String getQFormatted(final NumberFormat qFormatter) { | 58 public String getQFormatted(final NumberFormat qFormatter) { |
56 return qFormatter.format(this.q); | 59 return qFormatter.format(this.q); |
57 } | 60 } |
58 | 61 |
62 public String getQFormatted3Significant(final CallContext context) { | |
63 return SInfoResultType.floodDischarge.exportValue(context, this.q); | |
64 } | |
65 | |
59 public String getWFormatted(final NumberFormat wFormatter) { | 66 public String getWFormatted(final NumberFormat wFormatter) { |
60 return wFormatter.format(this.w); | 67 return wFormatter.format(this.w); |
61 } | 68 } |
62 | 69 |
63 // normally, the label is included in the type, but we need to replace the index ("_1") | 70 // normally, the label is included in the type, but we need to replace the index ("_1") |