@Override\r
public Double getValue() {\r
double[] array = getValueFull();\r
- if(array == null || array.length < index+1) return Double.NaN;\r
- return array[0];\r
+ if(array == null || index < 0 || array.length < index+1) return Double.NaN;\r
+ return array[index];\r
}\r
\r
@Override\r
ensureInformationAvailable(graph);\r
double[] existing = getValueFull();\r
double[] newValue = Arrays.copyOf(existing, existing.length);\r
- newValue[0] = (Double)value;\r
+ newValue[index] = (Double)value;\r
super.setValue(graph, newValue);\r
}\r
\r