Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java @ 7290:1843023549df
issue1512: spawn more facets for FlowVelocityMeasurementArtifact .
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 11 Oct 2013 12:15:01 +0200 |
parents | 602dac32a996 |
children | ea5da3e140ef |
comparison
equal
deleted
inserted
replaced
7289:015e12aac2dc | 7290:1843023549df |
---|---|
128 String name = flowVelocityMeasurement.getDescription(); | 128 String name = flowVelocityMeasurement.getDescription(); |
129 logger.debug ("datetime " + flowVelocityMeasurement.getDatetime()); | 129 logger.debug ("datetime " + flowVelocityMeasurement.getDatetime()); |
130 name += " - " + dateFormatter.format( | 130 name += " - " + dateFormatter.format( |
131 flowVelocityMeasurement.getDatetime()); | 131 flowVelocityMeasurement.getDatetime()); |
132 | 132 |
133 Facet facet = new FlowVelocityMeasurementFacet( | 133 // TODO naming/ i18N |
134 Facet vFacet = new FlowVelocityMeasurementFacet( | |
134 FLOW_VELOCITY_MEASUREMENT, | 135 FLOW_VELOCITY_MEASUREMENT, |
135 name); | 136 "v " + name); |
136 fs.add(facet); | 137 fs.add(vFacet); |
138 | |
139 Facet qFacet = new FlowVelocityMeasurementFacet( | |
140 FLOW_VELOCITY_DISCHARGE, | |
141 "q " + name); | |
142 fs.add(qFacet); | |
143 | |
144 Facet wFacet = new FlowVelocityMeasurementFacet( | |
145 FLOW_VELOCITY_WATERLEVEL, | |
146 "w " + name); | |
147 fs.add(wFacet); | |
148 | |
137 addFacets(state.getID(), fs); | 149 addFacets(state.getID(), fs); |
138 addStringData(DATA_NAME, code); | 150 addStringData(DATA_NAME, code); |
139 } | 151 } |
140 | 152 |
141 spawnState(); | 153 spawnState(); |