Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/StateEngine.java @ 449:708de1779232 2.9.7
Add debug output for StateEngine
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 12 Dec 2012 16:06:55 +0100 |
parents | 5420b96dd0b3 |
children |
comparison
equal
deleted
inserted
replaced
448:f2eab30cbc9a | 449:708de1779232 |
---|---|
138 public Map<String, List<String>> getCompatibleFacets(List<String> aStates) { | 138 public Map<String, List<String>> getCompatibleFacets(List<String> aStates) { |
139 Map<String, List<String>> compatibilityMatrix = | 139 Map<String, List<String>> compatibilityMatrix = |
140 new HashMap<String, List<String>>(); | 140 new HashMap<String, List<String>>(); |
141 | 141 |
142 // For all states that the artifact had seen, add outputs facets. | 142 // For all states that the artifact had seen, add outputs facets. |
143 logger.debug("Searching in " + aStates); | |
143 for (String stateId: aStates) { | 144 for (String stateId: aStates) { |
144 | 145 |
145 State state = allStates.get(stateId); | 146 State state = allStates.get(stateId); |
146 if (state == null) { | 147 if (state == null) { |
148 logger.debug("No state found for id " + stateId); | |
147 continue; | 149 continue; |
148 } | 150 } |
149 | 151 |
150 for (Output output: state.getOutputs()) { | 152 for (Output output: state.getOutputs()) { |
151 List<Facet> outFacets = output.getFacets(); | 153 List<Facet> outFacets = output.getFacets(); |
154 logger.debug("Facets for output " + output.getName() + " :" + outFacets); | |
152 | 155 |
153 List<String> oldFacets = compatibilityMatrix.get(output.getName()); | 156 List<String> oldFacets = compatibilityMatrix.get(output.getName()); |
154 | 157 |
155 if (oldFacets == null) { | 158 if (oldFacets == null) { |
156 oldFacets = new ArrayList<String>(); | 159 oldFacets = new ArrayList<String>(); |