public void addData(final TimeData DATA) {
        sum += DATA.getValue();
        window.add(DATA);
        if (window.size() > period) {
            sum -= window.remove().getValue();
        }
    }
public void addData ( final TimeData DATA ) { sum += DATA . getValue ( ) ; window . add ( DATA ) ; if ( window . size ( ) > period ) { sum -= window . remove ( ) . getValue ( ) ; } }
******************** Methods *******************************************