Mercurial > dive4elements > river
view artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/CollisionDbAccess.java @ 9202:b4402594213b
More work on calculations and output for S-Info flood duration workflow (chart types 1 and 2)
author | mschaefer |
---|---|
date | Mon, 02 Jul 2018 07:33:53 +0200 |
parents | 820ae41c81b6 |
children |
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde * Software engineering by * Björnsen Beratende Ingenieure GmbH * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt * * This file is Free Software under the GNU AGPL (>=v3) * and comes with ABSOLUTELY NO WARRANTY! Check out the * documentation coming with Dive4Elements River for details. */ package org.dive4elements.river.artifacts.sinfo.collision; import org.dive4elements.river.artifacts.D4EArtifact; import org.dive4elements.river.artifacts.access.RangeAccess; /** * Access to the database loaded river bed collision artifact data * * @author Matthias Schäfer */ final class CollisionDbAccess extends RangeAccess { /***** FIELDS *****/ private Integer id; private String name; /***** CONSTRUCTORS *****/ public CollisionDbAccess(final D4EArtifact artifact) { super(artifact); } /***** METHODS *****/ public Integer getId() { if (this.id == null) { this.id = getInteger("collision_id"); } return this.id; } public String getName() { if (this.name == null) { this.name = getString("name"); } return this.name; } }