question: private boolean addState ( long stateNumber ) { if ( firstState < 0 ) { firstState = stateNumber ; } else if ( stepSize < 0 ) { stepSize = ( int ) ( stateNumber - firstState ) ; } else { int step = ( int ) ( stateNumber - lastState ) ; if ( step != stepSize ) { return false ; } } lastState = stateNumber ; return true ; }
target:  Add a state number for these traces. This should be called before adding values for each trace. The spacing between stateNumbers should remain constant.