package lectures.animation.threads.wait_notify;
import util.annotations.WebDocuments;

import lectures.animation.threads.ui.AConcurrentShuttleAnimator;
import lectures.composite.objects_shapes.PlottedShuttle;
/* 
 The Y loop is different now. It makes an additional call before calling super.
 */
// Look at the class 
@WebDocuments({"Lectures/AnimationThreadsWaitNotify.pptx", "Lectures/AnimationThreadsWaitNotify.pdf", "Videos/AnimationThreadsWaitNotify.avi"})
public class AShuttleAnimatorWatitingForClearance extends AConcurrentShuttleAnimator {
    ClearanceManager sequencer;
    public AShuttleAnimatorWatitingForClearance(PlottedShuttle theShuttle, ClearanceManager aSequencer) {
        super(theShuttle);
        sequencer = aSequencer;
    }
    protected void animateYFromOrigin(PlottedShuttle shuttle, int animationStep, int animationPauseTime, int startY, int endY) {    
        sequencer.waitForProceed(); 
        super.animateYFromOrigin(shuttle, animationStep, animationPauseTime, startY, endY);
    }
}