Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/TkhProcessor.java @ 8946:5d5d482da3e9
Implementing SINFO - FlowDepthMinMax calculation
author | gernotbelger |
---|---|
date | Tue, 13 Mar 2018 18:49:33 +0100 |
parents | a9950a3a71e5 |
children | a4f1ac81f26d |
comparison
equal
deleted
inserted
replaced
8945:4a6b6a3c279c | 8946:5d5d482da3e9 |
---|---|
47 @Override | 47 @Override |
48 protected String generateSeries(final DiagramGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible) { | 48 protected String generateSeries(final DiagramGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible) { |
49 final CallContext context = generator.getCallContext(); | 49 final CallContext context = generator.getCallContext(); |
50 | 50 |
51 final String facetName = bundle.getFacetName(); | 51 final String facetName = bundle.getFacetName(); |
52 final AbstractSInfoCalculationResult<?> data = (AbstractSInfoCalculationResult<?>) bundle.getData(context); | 52 final AbstractTkhCalculationResult<?> data = (AbstractTkhCalculationResult<?>) bundle.getData(context); |
53 if (data == null) { | 53 if (data == null) { |
54 // Check has been here before so we keep it for security reasons | 54 // Check has been here before so we keep it for security reasons |
55 // this should never happen though. | 55 // this should never happen though. |
56 throw new IllegalStateException("Data is null for facet: " + facetName); | 56 throw new IllegalStateException("Data is null for facet: " + facetName); |
57 } | 57 } |