Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixationCompute.java @ 3218:e0e9a2629d7d
FixA: Moved IdGenerator to top level class.
flys-artifacts/trunk@4841 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 01 Jul 2012 08:41:43 +0000 |
parents | 79dd823733e2 |
children | 50d61a2494cb |
comparison
equal
deleted
inserted
replaced
3217:79dd823733e2 | 3218:e0e9a2629d7d |
---|---|
30 | 30 |
31 import de.intevation.flys.artifacts.resources.Resources; | 31 import de.intevation.flys.artifacts.resources.Resources; |
32 | 32 |
33 import de.intevation.flys.artifacts.states.DefaultState; | 33 import de.intevation.flys.artifacts.states.DefaultState; |
34 | 34 |
35 import de.intevation.flys.utils.IdGenerator; | |
36 | |
35 import java.text.DateFormat; | 37 import java.text.DateFormat; |
36 | 38 |
37 import java.util.List; | 39 import java.util.List; |
38 | 40 |
39 import org.apache.log4j.Logger; | 41 import org.apache.log4j.Logger; |
66 "[0 - (MNQ+MQ)/2)", | 68 "[0 - (MNQ+MQ)/2)", |
67 "[(MNQ+MQ)/2 - (MQ+MHQ)/2)", | 69 "[(MNQ+MQ)/2 - (MQ+MHQ)/2)", |
68 "[(MQ+MHQ)/2 - HQ5)", | 70 "[(MQ+MHQ)/2 - HQ5)", |
69 "[HQ5 - \u221e)" | 71 "[HQ5 - \u221e)" |
70 }; | 72 }; |
71 | |
72 public static class IdGenerator { | |
73 private int id; | |
74 | |
75 public IdGenerator() { | |
76 } | |
77 | |
78 public IdGenerator(int id) { | |
79 this.id = id; | |
80 } | |
81 | |
82 public int next() { | |
83 return id++; | |
84 } | |
85 } // class IdGenerator | |
86 | 73 |
87 /** | 74 /** |
88 * The default constructor that initializes an empty State object. | 75 * The default constructor that initializes an empty State object. |
89 */ | 76 */ |
90 public FixationCompute() { | 77 public FixationCompute() { |