Class TwoAxisPointSingleModel

All Implemented Interfaces:
INameable, IMapPathModel, IScanPathModel, IScanPointGeneratorModel

public class TwoAxisPointSingleModel extends AbstractMapModel
A model for a scan at a single two-dimensional point.
  • Constructor Details

    • TwoAxisPointSingleModel

      public TwoAxisPointSingleModel()
  • Method Details

    • getX

      public double getX()
    • setX

      public void setX(double x)
    • getY

      public double getY()
    • setY

      public void setY(double y)
    • toString

      public String toString()
      Overrides:
      toString in class AbstractMapModel
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractMapModel
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractMapModel
    • isContinuous

      public boolean isContinuous()
      Description copied from interface: IScanPointGeneratorModel
      If true the scan is continuous if possible, i.e. the motors continue to move while the detectors are exposed, if false the motors stop at each point for the detectors are exposed. For a scan to be continous, generally it must done by malcolm device, i.e. for a GDA point of view the scan contains exactly one runnable device and that must be a malcolm device. Additionally continuous scanning is only possible for certain path models, e.g. TwoAxisGridPointsModel, where even then the scan will only be continuous in the fast axis, and step in the slow axis, where the x-axis is the fast axis by default.
      Specified by:
      isContinuous in interface IScanPointGeneratorModel
      Overrides:
      isContinuous in class AbstractPointsModel
      Returns:
      true if the scan should be continuous, false otherwise.
    • setContinuous

      public void setContinuous(boolean continuous)
      Specified by:
      setContinuous in interface IScanPointGeneratorModel
      Overrides:
      setContinuous in class AbstractPointsModel
    • isAlternating

      public boolean isAlternating()
      Description copied from interface: IScanPointGeneratorModel
      This setting only makes sense when there is another model outside of this model within a CompoundModel: e.g. a StepModel in Energy outside of a Spiral in x, y will run the points of the Spiral backwards every alternate step of Energy, preventing having to return to starting positions of that scan. In the special case of Grid shaped scans both axes of the scan alternate, so it runs: bottom left -> bottom right -> top right -> top left, top left -> top right...
      Specified by:
      isAlternating in interface IScanPointGeneratorModel
      Overrides:
      isAlternating in class AbstractPointsModel
      Returns:
      true if the scan is a alternating, false otherwise
    • setAlternating

      public void setAlternating(boolean alternating)
      Specified by:
      setAlternating in interface IScanPointGeneratorModel
      Overrides:
      setAlternating in class AbstractPointsModel