Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/WaterlevelArtifact.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 | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
33 * | 33 * |
34 * @TODO Straighten inheritance-line (waterlevel-WINFO or vice versa). | 34 * @TODO Straighten inheritance-line (waterlevel-WINFO or vice versa). |
35 */ | 35 */ |
36 public class WaterlevelArtifact extends WINFOArtifact { | 36 public class WaterlevelArtifact extends WINFOArtifact { |
37 | 37 |
38 /** The logger for this class. */ | 38 /** The log for this class. */ |
39 private static Logger logger = Logger.getLogger(WaterlevelArtifact.class); | 39 private static Logger log = Logger.getLogger(WaterlevelArtifact.class); |
40 | 40 |
41 /** The name of the artifact. */ | 41 /** The name of the artifact. */ |
42 public static final String ARTIFACT_NAME = "waterlevel"; | 42 public static final String ARTIFACT_NAME = "waterlevel"; |
43 | 43 |
44 static { | 44 static { |
71 // For w_differences, also allow q-facets. | 71 // For w_differences, also allow q-facets. |
72 if(filterFacets != null) { | 72 if(filterFacets != null) { |
73 List<Facet> list = new ArrayList<Facet>(); | 73 List<Facet> list = new ArrayList<Facet>(); |
74 List<Facet> wlist = filterFacets.get(ChartType.LS); | 74 List<Facet> wlist = filterFacets.get(ChartType.LS); |
75 if (wlist == null) { | 75 if (wlist == null) { |
76 logger.warn("No matching filterfacets found"); | 76 log.warn("No matching filterfacets found"); |
77 dumpFilterFacets(); | 77 dumpFilterFacets(); |
78 } else { | 78 } else { |
79 for (Facet f: wlist) { | 79 for (Facet f: wlist) { |
80 if (!f.getName().equals(LONGITUDINAL_Q)) { | 80 if (!f.getName().equals(LONGITUDINAL_Q)) { |
81 DefaultFacet df = new DefaultFacet(f.getIndex(), | 81 DefaultFacet df = new DefaultFacet(f.getIndex(), |
101 Object context, | 101 Object context, |
102 CallMeta meta) | 102 CallMeta meta) |
103 { | 103 { |
104 WINFOArtifact winfo = (WINFOArtifact) artifact; | 104 WINFOArtifact winfo = (WINFOArtifact) artifact; |
105 setData(winfo.cloneData()); | 105 setData(winfo.cloneData()); |
106 logger.debug("Cloned data of winfo artifact."); | 106 log.debug("Cloned data of winfo artifact."); |
107 // Statically add Facets. | 107 // Statically add Facets. |
108 List<Facet> fs = new ArrayList<Facet>(); | 108 List<Facet> fs = new ArrayList<Facet>(); |
109 DefaultState state = (DefaultState) getCurrentState(context); | 109 DefaultState state = (DefaultState) getCurrentState(context); |
110 state.computeInit(this, hash(), context, meta, fs); | 110 state.computeInit(this, hash(), context, meta, fs); |
111 if (!fs.isEmpty()) { | 111 if (!fs.isEmpty()) { |
112 logger.debug("Facets to add in WaterlevelArtifact.initialize ."); | 112 log.debug("Facets to add in WaterlevelArtifact.initialize ."); |
113 addFacets(getCurrentStateId(), fs); | 113 addFacets(getCurrentStateId(), fs); |
114 } | 114 } |
115 else { | 115 else { |
116 logger.debug("No facets to add in WaterlevelArtifact.initialize (" | 116 log.debug("No facets to add in WaterlevelArtifact.initialize (" |
117 + state.getID() + ")."); | 117 + state.getID() + ")."); |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 | 121 |