Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Parameters.java @ 3392:56f62b5209f5
S/Q relation: Write parameters as export result.
flys-artifacts/trunk@5020 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 16 Jul 2012 18:26:00 +0000 |
parents | 79dd823733e2 |
children | 1df6984628c3 |
comparison
equal
deleted
inserted
replaced
3391:2b3c4abe034f | 3392:56f62b5209f5 |
---|---|
117 int [] indices = new int[columns.length]; | 117 int [] indices = new int[columns.length]; |
118 for (int i = 0; i < columns.length; ++i) { | 118 for (int i = 0; i < columns.length; ++i) { |
119 indices[i] = columnIndex(columns[i]); | 119 indices[i] = columnIndex(columns[i]); |
120 } | 120 } |
121 return indices; | 121 return indices; |
122 } | |
123 | |
124 public double getValue(int row, String column) { | |
125 int idx = columnIndex(column); | |
126 return idx >= 0 | |
127 ? columns[idx].getQuick(row) | |
128 : Double.NaN; | |
122 } | 129 } |
123 | 130 |
124 public double [] get(int row, String [] columns) { | 131 public double [] get(int row, String [] columns) { |
125 return get(row, columns, new double[columns.length]); | 132 return get(row, columns, new double[columns.length]); |
126 } | 133 } |