annotate artifacts/src/main/java/org/dive4elements/river/utils/IdGenerator.java @ 8587:07c9ac22f611

(issue1755) Generalise BedQuality result handling The bedquality calculation now produces a result for each time period which has BedQualityResultValues for each specific result type. Formally this was split up in density, porosity and diameter classes with some bedload diameter classes mixed in for extra fun. The intent of this commit is to allow more shared code and generic access patterns to the BedQuality results.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 18 Mar 2015 18:42:08 +0100
parents af13ceeba52a
children
rev   line source
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
2 * Software engineering by Intevation GmbH
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
3 *
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5863
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5863
diff changeset
6 * documentation coming with Dive4Elements River for details.
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
7 */
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
8
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3218
diff changeset
9 package org.dive4elements.river.utils;
3218
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11 public class IdGenerator {
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
12
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
13 protected int id;
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
14
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
15 public IdGenerator() {
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
16 }
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
17
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
18 public IdGenerator(int id) {
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
19 this.id = id;
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
20 }
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
21
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
22 public int next() {
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
23 return id++;
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
24 }
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
25 }
e0e9a2629d7d FixA: Moved IdGenerator to top level class.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
26 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org