Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/UINFOArtifact.java @ 9514:ee6508687e3f
Added default vegetation zones tzo iota result map.
author | gernotbelger |
---|---|
date | Mon, 01 Oct 2018 13:03:42 +0200 |
parents | 8b7bf26b8782 |
children |
comparison
equal
deleted
inserted
replaced
9513:1722727803f7 | 9514:ee6508687e3f |
---|---|
110 return getDataAsString(FIELD_RIVER); | 110 return getDataAsString(FIELD_RIVER); |
111 } | 111 } |
112 | 112 |
113 @Override | 113 @Override |
114 public double getWaterLevel(final ComputeType type, final String hash, final String stateId, final double currentKm, final Serializable waterLineIndex, | 114 public double getWaterLevel(final ComputeType type, final String hash, final String stateId, final double currentKm, final Serializable waterLineIndex, |
115 final double nextKm, | 115 final double nextKm, final double prevKm, final CallContext context) { |
116 final double prevKm, | |
117 final CallContext context) { | |
118 | 116 |
119 final CalculationResult res = (CalculationResult) this.compute(context, hash, stateId, type, false); | 117 final CalculationResult res = (CalculationResult) this.compute(context, hash, stateId, type, false); |
120 final Object data = res.getData(); | 118 final Object data = res.getData(); |
121 if (data instanceof SalixLineCalculationResults) | 119 if (data instanceof SalixLineCalculationResults) |
122 return ((SalixLineCalculationResults) data).getCrossSectionLine(currentKm, waterLineIndex, nextKm, prevKm, context); | 120 return ((SalixLineCalculationResults) data).getCrossSectionLine(currentKm, waterLineIndex, nextKm, prevKm); |
123 | 121 |
124 throw new IllegalStateException("Cross section stuff should only happen for salix line"); | 122 throw new IllegalStateException("Cross section stuff should only happen for salix line"); |
125 } | 123 } |
126 } | 124 } |