@Override
    public void reset(){
        graph.resetGraph();
        source.setTranslateX(0);
        waveIndex = 0;
        sourceTranslateIndex = 0;
        observer.setTranslateX(0);
        time = INIT_TIME;
        for(int i=0; i<soundWaves.length; i++){
            if(root_doppler.getChildren().contains(soundWaves[i])){
                root_doppler.getChildren().remove(soundWaves[i]);
            }
        }
    }