Class MockPausingMonitor

All Implemented Interfaces:
IActivatable, IBoundable<Number>, ILevel, INameable, IScanAttributeContainer, IScannable<Number>, ITerminatable, ITimeoutable, ITolerable<Number>, IPositionListenable

public class MockPausingMonitor extends MockScannable
Designed to monitor topup (pretty badly, just conceptually). On a step divisible by ten, will force a wait until imaginary topup value is reached.
  • Constructor Details

    • MockPausingMonitor

      public MockPausingMonitor(String string, double d, int i)
  • Method Details

    • setPosition

      public Number setPosition(Number position, IPosition loc) throws ScanningException
      Description copied from interface: IScannable
      Moves to the position required, blocking until it is complete. Similar to moveTo(...) in GDA8
      Specified by:
      setPosition in interface IScannable<Number>
      Overrides:
      setPosition in class MockScannable
      Parameters:
      position - that this scalar should take.
      loc - if within in a scan or null if not within a scan.
      Returns:
      the new position attained by the device, if known. (Saves additional call to getPosition()) If not know the demand value is returned. NOTE if null is returned the system will call getPosition() again.
      Throws:
      ScanningException