Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractCalculationResult.java @ 9205:3dae6b78e1da
inundationDuration/floodDuration multiple columns+chartLines refactoring
author | gernotbelger |
---|---|
date | Mon, 02 Jul 2018 19:01:09 +0200 |
parents | 4f411c6ee3ae |
children | e5367900dd6d |
comparison
equal
deleted
inserted
replaced
9204:4f411c6ee3ae | 9205:3dae6b78e1da |
---|---|
39 | 39 |
40 public boolean isEmpty() { | 40 public boolean isEmpty() { |
41 return this.rows.isEmpty(); | 41 return this.rows.isEmpty(); |
42 } | 42 } |
43 | 43 |
44 // public final void addRow(final ResultRow resultRow) { | |
45 // this.rows.add(resultRow); | |
46 // } | |
47 | |
48 public Collection<ResultRow> getRows() { | 44 public Collection<ResultRow> getRows() { |
49 return Collections.unmodifiableCollection(this.rows); | 45 return Collections.unmodifiableCollection(this.rows); |
50 } | 46 } |
51 | 47 |
52 public final double[][] getStationPoints(final IResultType type) { // gehört die Methode hier rein? oder in erbende Klassen? | 48 public final double[][] getStationPoints(final IResultType type) { // gehört die Methode hier rein? oder in erbende Klassen? |
64 } | 60 } |
65 | 61 |
66 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() }; | 62 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() }; |
67 } | 63 } |
68 | 64 |
69 public double[][] getStationPoints(final IResultType type, final int index) { | |
70 return getStationPoints(type); | |
71 } | |
72 | |
73 protected final <TYPE> List<TYPE> getValues(final IResultType type) { | 65 protected final <TYPE> List<TYPE> getValues(final IResultType type) { |
74 | 66 |
75 final List<TYPE> values = new ArrayList<>(); | 67 final List<TYPE> values = new ArrayList<>(); |
76 | 68 |
77 for (final ResultRow row : this.rows) { | 69 for (final ResultRow row : this.rows) { |