CS 328 - Week 3 lab - 2015-02-06

NXTRegulatedMotor class has a separate regulator thread...

(thread: lightweight process -- Java and leJos support
programs that can have MULTIPLE communicating threads
running at a time!)

*   ONE of the regulator thread's main tasks:
    is to STOP the motor at a desired angle;

    consider these 4 related-but-varying methods:

    rotate
    rotateTo
    ...in 1 and 2 argument versions

    1-argument versions:
    these BOTH expect an int
    *   rotate's int is the number of degrees you
        want to rotate the motor from where it is
	now

    *   rotateTo's int is the degree/angle you
        want to rotate TO...

    *   for both of these, ONCE the desired rotation
        has been done, THEN the method returns

        (you know, like a "typical" method call!)

    2-argument versions:
    ...the second argument is a boolean, immediateReturn --
       if true, control will immediately return to
       the caller (even though the regulator thread is
       still doing the desired rotation)

       if false, it returns once the desired rotation
       is done (like the 1-argument version)

*   trying these out in RotatePlay.java;