Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentDensityArtifact.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 |
---|---|
34 /** Artifact to access sediment density measurements. */ | 34 /** Artifact to access sediment density measurements. */ |
35 public class SedimentDensityArtifact | 35 public class SedimentDensityArtifact |
36 extends StaticD4EArtifact | 36 extends StaticD4EArtifact |
37 implements FacetTypes | 37 implements FacetTypes |
38 { | 38 { |
39 /** The logger for this class. */ | 39 /** The log for this class. */ |
40 private static Logger logger = | 40 private static Logger log = |
41 Logger.getLogger(SedimentDensityArtifact.class); | 41 Logger.getLogger(SedimentDensityArtifact.class); |
42 | 42 |
43 /** Artifact key name. */ | 43 /** Artifact key name. */ |
44 private static final String NAME = "sedimentdensity"; | 44 private static final String NAME = "sedimentdensity"; |
45 | 45 |
61 | 61 |
62 /** | 62 /** |
63 * Trivial Constructor. | 63 * Trivial Constructor. |
64 */ | 64 */ |
65 public SedimentDensityArtifact() { | 65 public SedimentDensityArtifact() { |
66 logger.debug("SedimentDensityArtifact.SedimentDensityArtifact"); | 66 log.debug("SedimentDensityArtifact.SedimentDensityArtifact"); |
67 } | 67 } |
68 | 68 |
69 | 69 |
70 /** Get artifact key name. */ | 70 /** Get artifact key name. */ |
71 @Override | 71 @Override |
73 return NAME; | 73 return NAME; |
74 } | 74 } |
75 | 75 |
76 | 76 |
77 private Object getSedimentDensity() { | 77 private Object getSedimentDensity() { |
78 logger.debug("SedimentDensityArtifact.getSedimentDensity"); | 78 log.debug("SedimentDensityArtifact.getSedimentDensity"); |
79 Integer id = getDataAsInteger(DATA_ID); | 79 Integer id = getDataAsInteger(DATA_ID); |
80 | 80 |
81 // TODO use cache if possible | 81 // TODO use cache if possible |
82 return SedimentDensityFactory.getSedimentDensityUncached(id); | 82 return SedimentDensityFactory.getSedimentDensityUncached(id); |
83 } | 83 } |
119 Object context, | 119 Object context, |
120 CallMeta callMeta, | 120 CallMeta callMeta, |
121 Document data, | 121 Document data, |
122 List<Class> loadFacets) | 122 List<Class> loadFacets) |
123 { | 123 { |
124 logger.debug("SedimentDensityArtifact.setup"); | 124 log.debug("SedimentDensityArtifact.setup"); |
125 | 125 |
126 state = newDensityState(); | 126 state = newDensityState(); |
127 if (logger.isDebugEnabled()) { | 127 if (log.isDebugEnabled()) { |
128 logger.debug(XMLUtils.toString(data)); | 128 log.debug(XMLUtils.toString(data)); |
129 } | 129 } |
130 | 130 |
131 List<Facet> fs = new ArrayList<Facet>(); | 131 List<Facet> fs = new ArrayList<Facet>(); |
132 | 132 |
133 String code = getDatacageIDValue(data); | 133 String code = getDatacageIDValue(data); |
146 fs.add(facet); | 146 fs.add(facet); |
147 addFacets(state.getID(), fs); | 147 addFacets(state.getID(), fs); |
148 addStringData(DATA_ID, code); | 148 addStringData(DATA_ID, code); |
149 } | 149 } |
150 else { | 150 else { |
151 logger.error("No id given."); | 151 log.error("No id given."); |
152 } | 152 } |
153 | 153 |
154 spawnState(); | 154 spawnState(); |
155 super.setup(identifier, factory, context, callMeta, data, loadFacets); | 155 super.setup(identifier, factory, context, callMeta, data, loadFacets); |
156 } | 156 } |
212 protected void initialize( | 212 protected void initialize( |
213 Artifact artifact, | 213 Artifact artifact, |
214 Object context, | 214 Object context, |
215 CallMeta meta) | 215 CallMeta meta) |
216 { | 216 { |
217 logger.debug("SedimentDensityArtifact.initialize"); | 217 log.debug("SedimentDensityArtifact.initialize"); |
218 } | 218 } |
219 } | 219 } |
220 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 220 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |