Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FlowVelocityMeasurementArtifact.java @ 4504:d7e1aee9d51e
Merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 12:37:57 +0100 |
parents | a2735a4bf75e |
children |
comparison
equal
deleted
inserted
replaced
4503:f91260ccef03 | 4504:d7e1aee9d51e |
---|---|
66 | 66 |
67 | 67 |
68 /** Create a new state with bogus output. */ | 68 /** Create a new state with bogus output. */ |
69 protected State spawnState() { | 69 protected State spawnState() { |
70 state = new StaticState(STATIC_STATE_NAME); | 70 state = new StaticState(STATIC_STATE_NAME); |
71 List<Facet> fs = facets.get(STATIC_STATE_NAME); | 71 List<Facet> fs = getFacets(STATIC_STATE_NAME); |
72 DefaultOutput output = new DefaultOutput( | 72 DefaultOutput output = new DefaultOutput( |
73 "general", | 73 "general", |
74 "general", | 74 "general", |
75 "image/png", | 75 "image/png", |
76 fs, | 76 fs, |
109 // store relevant parts of code as data. | 109 // store relevant parts of code as data. |
110 Facet facet = new FlowVelocityMeasurementFacet( | 110 Facet facet = new FlowVelocityMeasurementFacet( |
111 FLOW_VELOCITY_MEASUREMENT, | 111 FLOW_VELOCITY_MEASUREMENT, |
112 "flowvelocity-name"); | 112 "flowvelocity-name"); |
113 fs.add(facet); | 113 fs.add(facet); |
114 facets.put(state.getID(), fs); | 114 addFacets(state.getID(), fs); |
115 addStringData(DATA_NAME, code); | 115 addStringData(DATA_NAME, code); |
116 } | 116 } |
117 | 117 |
118 spawnState(); | 118 spawnState(); |
119 super.setup(identifier, factory, context, callMeta, data); | 119 super.setup(identifier, factory, context, callMeta, data); |