This sets the state to CANCELLED so that the next call to check()
from the running thread will throw a CancelException, or if check() is
looping in the PAUSED state then it will also throw a CancelException.
A CancelInteractiveConsole extends the jython InteractiveConsole to override
methods allowing it to handle CancelException while running the interact()
method.
This sets the state to PAUSE_REQUEST so that the next call to check()
from the running thread will convert the state to PAUSED and loop until
unpause() or cancel() is called.
Move the stage in the negative Z direction, making tiny sweeps with probe X,
until the probe X tip strain gauge detects a contact force when it is moved,
Then increase Z until no force is detected.
This calls moveProbeXToContact repeatedly, moving SWEEP_TO_CONTACT_INCREMENT
millimeters in the
Y direction until contact, or until the maxDeltaY has been reached.
This calls moveProbeYToContact repeatedly, moving SWEEP_TO_CONTACT_INCREMENT
millimeters in the
X direction until contact, or until the maxDeltaX has been reached.
If the state is PAUSED, this sets the state back to ENABLED so that
the check() method in which the other thread is looping can exit and
allow the thread to resume.