diff backend/src/main/java/org/dive4elements/river/model/SedimentLoad.java @ 8028:aa054f72e887

Added importer models for sediment load and sediment load values.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 10 Jul 2014 16:57:32 +0200
parents 4b3054edbbaf
children bde5f5ec7c72
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/model/SedimentLoad.java	Thu Jul 10 16:11:55 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/SedimentLoad.java	Thu Jul 10 16:57:32 2014 +0200
@@ -43,6 +43,20 @@
     public SedimentLoad() {
     }
 
+    public SedimentLoad(
+        GrainFraction grainFraction,
+        TimeInterval  timeInterval,
+        TimeInterval  sqTimeInterval,
+        String        description,
+        Integer       kind
+    ) {
+        this.grainFraction  = grainFraction;
+        this.timeInterval   = timeInterval;
+        this.sqTimeInterval = sqTimeInterval;
+        this.description    = description;
+        this.kind           = kind;
+    }
+
     @Id
     @SequenceGenerator(
         name           = "SEQUENCE_SEDIMENT_LOAD_ID_SEQ",

http://dive4elements.wald.intevation.org