# HG changeset patch # User Felix Wolfsteller # Date 1327048503 0 # Node ID eb1a676c0d6e167e66a05c524f018d1599c123d9 # Parent 0fa37d4de13d543f9fc0df4cabbbc783b1a9d1dd Cleanups. flys-artifacts/trunk@3733 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 0fa37d4de13d -r eb1a676c0d6e flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Jan 20 08:31:25 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri Jan 20 08:35:03 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-20 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/states/StaticHYKState.java: + Cleanup. Mark spot where State-based caching could happen. + 2012-01-20 Felix Wolfsteller * src/main/java/de/intevation/flys/artifacts/model/HYKFacet.java: diff -r 0fa37d4de13d -r eb1a676c0d6e flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticHYKState.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticHYKState.java Fri Jan 20 08:31:25 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticHYKState.java Fri Jan 20 08:35:03 2012 +0000 @@ -49,22 +49,14 @@ logger.debug("StaticHYKState.compute"); String id = getID(); - // TODO caching! - - /* - WQKms res = old instanceof WQKms - ? (WQKms)old - : winfo.getWQKms(); + // Prepare comparison against cached result. + List resZones = old instanceof List + ? (List)old + : null; - WQKms wqkms = res; - */ + // TODO Compare against cached object. - // List res; - Object res = null; - - // Compare against cached objects. - - // Need river id and km. + // Get Zones from HYKFactory List zones = (List) HYKFactory.getHYKs(hyk.getHykId(), hyk.getKm()); @@ -73,8 +65,8 @@ return zones; } + // Spawn Facets. Facet facet = new HYKFacet(0, HYKFactory.getHykName(hyk.getHykId())); - facets.add(facet); return zones;