Class MockBeamOnMonitor

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

public class MockBeamOnMonitor extends MockScannable
Designed to model exiting the scan because a certain value is illegal
  • Constructor Details

    • MockBeamOnMonitor

      public MockBeamOnMonitor(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