Beispiel #1
0
  void setValue(VTime time, CellPosition pos, double value) {
    int res = currentTime.compareTo(time);
    if (res > 0) {
      System.err.println("non-increment timestamp found: " + time.toString());
      return;
    } else if (res < 0) {
      currentState = new CellState(currentState);
      stateList.add(currentState);

      currentTime = new VTime(time.toString());
      timeList.add(currentTime);
    }
    currentState.setValue(pos, value);
    if (!Double.isNaN(value)) this.setNumberWidth(Double.toString(value).length());
  }
Beispiel #2
0
 public void get(int index, VTime time, CellState state) {
   time.setTime((VTime) timeList.elementAt(index));
   state.setValue((CellState) stateList.elementAt(index));
 }