Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | 8d5ca5175038 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
40 /** Artefact to access flow velocity measurements. */ | 40 /** Artefact to access flow velocity measurements. */ |
41 public class FlowVelocityMeasurementArtifact | 41 public class FlowVelocityMeasurementArtifact |
42 extends StaticD4EArtifact | 42 extends StaticD4EArtifact |
43 implements FacetTypes | 43 implements FacetTypes |
44 { | 44 { |
45 /** The logger for this class. */ | 45 /** The log for this class. */ |
46 private static Logger logger = | 46 private static Logger log = |
47 Logger.getLogger(FlowVelocityMeasurementArtifact.class); | 47 Logger.getLogger(FlowVelocityMeasurementArtifact.class); |
48 | 48 |
49 /** Artifact key name. */ | 49 /** Artifact key name. */ |
50 private static final String NAME = "flowvelocitymeasurement"; | 50 private static final String NAME = "flowvelocitymeasurement"; |
51 | 51 |
73 | 73 |
74 /** | 74 /** |
75 * Trivial Constructor. | 75 * Trivial Constructor. |
76 */ | 76 */ |
77 public FlowVelocityMeasurementArtifact() { | 77 public FlowVelocityMeasurementArtifact() { |
78 logger.debug("FlowVelocityMeasurementArtifact.FlowVelocityMeasurementArtifact"); | 78 log.debug("FlowVelocityMeasurementArtifact.FlowVelocityMeasurementArtifact"); |
79 } | 79 } |
80 | 80 |
81 | 81 |
82 /** Get artifact key name. */ | 82 /** Get artifact key name. */ |
83 @Override | 83 @Override |
113 Object context, | 113 Object context, |
114 CallMeta callMeta, | 114 CallMeta callMeta, |
115 Document data, | 115 Document data, |
116 List<Class> loadFacets) | 116 List<Class> loadFacets) |
117 { | 117 { |
118 logger.debug("FlowVelocityMeasurementArtifact.setup"); | 118 log.debug("FlowVelocityMeasurementArtifact.setup"); |
119 | 119 |
120 state = new StaticState(STATIC_STATE_NAME); | 120 state = new StaticState(STATIC_STATE_NAME); |
121 | 121 |
122 if (logger.isDebugEnabled()) { | 122 if (log.isDebugEnabled()) { |
123 logger.debug(XMLUtils.toString(data)); | 123 log.debug(XMLUtils.toString(data)); |
124 } | 124 } |
125 | 125 |
126 List<Facet> fs = new ArrayList<Facet>(); | 126 List<Facet> fs = new ArrayList<Facet>(); |
127 String code = getDatacageIDValue(data); | 127 String code = getDatacageIDValue(data); |
128 DateFormat dateFormatter = Formatter.getDateFormatter( | 128 DateFormat dateFormatter = Formatter.getDateFormatter( |
134 FlowVelocityMeasurementValue.FastFlowVelocityMeasurementValue | 134 FlowVelocityMeasurementValue.FastFlowVelocityMeasurementValue |
135 flowVelocityMeasurement = | 135 flowVelocityMeasurement = |
136 FlowVelocityMeasurementFactory.getFlowVelocityMeasurement( | 136 FlowVelocityMeasurementFactory.getFlowVelocityMeasurement( |
137 Integer.parseInt(code)); | 137 Integer.parseInt(code)); |
138 String name = flowVelocityMeasurement.getDescription(); | 138 String name = flowVelocityMeasurement.getDescription(); |
139 logger.debug ("datetime " + flowVelocityMeasurement.getDatetime()); | 139 log.debug ("datetime " + flowVelocityMeasurement.getDatetime()); |
140 name += " - " + dateFormatter.format( | 140 name += " - " + dateFormatter.format( |
141 flowVelocityMeasurement.getDatetime()); | 141 flowVelocityMeasurement.getDatetime()); |
142 | 142 |
143 Facet vFacet = new FlowVelocityMeasurementFacet( | 143 Facet vFacet = new FlowVelocityMeasurementFacet( |
144 FLOW_VELOCITY_MEASUREMENT, | 144 FLOW_VELOCITY_MEASUREMENT, |
229 protected void initialize( | 229 protected void initialize( |
230 Artifact artifact, | 230 Artifact artifact, |
231 Object context, | 231 Object context, |
232 CallMeta meta) | 232 CallMeta meta) |
233 { | 233 { |
234 logger.debug("initialize"); | 234 log.debug("initialize"); |
235 } | 235 } |
236 | 236 |
237 | 237 |
238 /** | 238 /** |
239 * Get the db-unbound flow velocity measurement value with given | 239 * Get the db-unbound flow velocity measurement value with given |