Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityModelArtifact.java @ 7368:9eef5004ff21
FlowVelocityModelArtifact: Slightly improve facet names.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 17 Oct 2013 07:45:41 +0200 |
parents | 9ef09d285b1e |
children | 00950f79b0d9 |
comparison
equal
deleted
inserted
replaced
7367:9ef09d285b1e | 7368:9eef5004ff21 |
---|---|
140 List<Facet> fs = new ArrayList<Facet>(); | 140 List<Facet> fs = new ArrayList<Facet>(); |
141 | 141 |
142 String code = getDatacageIDValue(data); | 142 String code = getDatacageIDValue(data); |
143 | 143 |
144 if (code != null) { | 144 if (code != null) { |
145 //String name = FlowVelocityModel.getFlowVelocityModelDescription(Integer.valueOf(code)); | 145 String name = FlowVelocityModel.getModelDescription(Integer.valueOf(code)); |
146 String name = "facet"; | 146 |
147 Facet facet = new FlowVelocityFacet( | 147 Facet facet = new FlowVelocityFacet( |
148 0, | 148 0, |
149 FLOW_VELOCITY_MAINCHANNEL, | 149 FLOW_VELOCITY_MAINCHANNEL, |
150 name + "main", | 150 "mainchannel " + name, |
151 ComputeType.ADVANCE, state.getID(), "hash" | 151 ComputeType.ADVANCE, state.getID(), "hash" |
152 ); | 152 ); |
153 fs.add(facet); | 153 fs.add(facet); |
154 Facet tauFacet = new FlowVelocityFacet( | 154 Facet tauFacet = new FlowVelocityFacet( |
155 0, | 155 0, |
156 FLOW_VELOCITY_TAU, | 156 FLOW_VELOCITY_TAU, |
157 name+"tau", | 157 "tau " + name, |
158 ComputeType.ADVANCE, state.getID(), "hash" | 158 ComputeType.ADVANCE, state.getID(), "hash" |
159 ); | 159 ); |
160 fs.add(tauFacet); | 160 fs.add(tauFacet); |
161 Facet qFacet = new FlowVelocityFacet( | 161 Facet qFacet = new FlowVelocityFacet( |
162 0, | 162 0, |
163 FLOW_VELOCITY_DISCHARGE, | 163 FLOW_VELOCITY_DISCHARGE, |
164 name+"q", | 164 "Q " + name, |
165 ComputeType.ADVANCE, state.getID(), "hash" | 165 ComputeType.ADVANCE, state.getID(), "hash" |
166 ); | 166 ); |
167 fs.add(qFacet); | 167 fs.add(qFacet); |
168 Facet tFacet = new FlowVelocityFacet( | 168 Facet tFacet = new FlowVelocityFacet( |
169 0, | 169 0, |
170 FLOW_VELOCITY_TOTALCHANNEL, | 170 FLOW_VELOCITY_TOTALCHANNEL, |
171 name+"t", | 171 "total "+ name, |
172 ComputeType.ADVANCE, state.getID(), "hash" | 172 ComputeType.ADVANCE, state.getID(), "hash" |
173 ); | 173 ); |
174 fs.add(tFacet); | 174 fs.add(tFacet); |
175 addFacets(state.getID(), fs); | 175 addFacets(state.getID(), fs); |
176 addStringData(DATA_ID, code); | 176 addStringData(DATA_ID, code); |