module StudentVersion;

(****
* This module contains all the operations and objects specific to the student version.
*)

from LectureDB import Lecture, Slide, CurrentSlide, SlideNumber;
export Notepad;

operation Synchronize is
     inputs:  lecture:Lecture;
     outputs:  lecture':Lecture;
     preconditions:  exists (s in lecture.slide) s.number = lecture.clsCurrentPosition;
     postconditions:  lecture'.myCurrentPosition = lecture.clsCurrentPosition;
     description: (* To synchrnoize a student's slide to the instructor's, the student's 
                     lecture object's current position needs to be set equal to the
                     instructor's class current position. *);
end Synchronize;

object Notepad is string;

end StudentVersion;