comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCurveFacet.java @ 9266:465347d12990

Station specific calculation of flood duration curve and infrastructure annotations
author mschaefer
date Wed, 18 Jul 2018 12:20:01 +0200
parents e5367900dd6d
children ae9dee74e43e
comparison
equal deleted inserted replaced
9265:e5367900dd6d 9266:465347d12990
15 import org.dive4elements.artifactdatabase.state.Facet; 15 import org.dive4elements.artifactdatabase.state.Facet;
16 import org.dive4elements.artifacts.Artifact; 16 import org.dive4elements.artifacts.Artifact;
17 import org.dive4elements.artifacts.CallContext; 17 import org.dive4elements.artifacts.CallContext;
18 import org.dive4elements.river.artifacts.D4EArtifact; 18 import org.dive4elements.river.artifacts.D4EArtifact;
19 import org.dive4elements.river.artifacts.model.CalculationResult; 19 import org.dive4elements.river.artifacts.model.CalculationResult;
20 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact;
20 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; 21 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType;
21 22
22 23
23 /** 24 /**
24 * Data of a duration curve. 25 * Data of a duration curve.
57 58
58 final double currentKm = getCurrentKm(context); 59 final double currentKm = getCurrentKm(context);
59 // TODO: entweder in data.getDurationCurve() reingeben, oder bei FloodDurationCalculationResults auswerten... 60 // TODO: entweder in data.getDurationCurve() reingeben, oder bei FloodDurationCalculationResults auswerten...
60 // TODO: was ist aus perfromanz/speicher-sicht besser? 61 // TODO: was ist aus perfromanz/speicher-sicht besser?
61 62
62 return data.getDurationCurve(); 63 // return data.getDurationCurve();
64 return new FloodDurationCalculation(context).calcStationCurve(currentKm, (SINFOArtifact) flys);
63 } 65 }
64 66
65 /** 67 /**
66 * Returns the current km from the context. 68 * Returns the current km from the context.
67 * If the context is null or doesn't contain a currentKm 69 * If the context is null or doesn't contain a currentKm

http://dive4elements.wald.intevation.org