Class HklAdapter

java.lang.Object
uk.ac.gda.analysis.mscan.HklAdapter

public abstract class HklAdapter extends Object
The hkl scannable (diffcalc.gdasupport.scannable.hkl.Hkl) is a ScannableMotionWithScannableFieldsBase. It has a simulateMoveTo method which could be used, alternatively its _diffcalc object (module 'diffcalc.dc.dcyou') which has hkl_to_angles. The diffhw is a scannabke group _fourc. From angles_to_hkl we get ((h, k, l), paramDict)
  • Constructor Details

    • HklAdapter

      public HklAdapter()
  • Method Details

    • getFourCNames

      protected abstract List<String> getFourCNames()
    • getHkl

      protected abstract List<Number> getHkl(Object angles)
      Call angles_to_hkl on diffcalc to get the calculated hkl values corresponding to the position
      Parameters:
      angles - array of angles in the same order as _fourc
    • getCurrentAnglePositions

      protected abstract Map<String,Double> getCurrentAnglePositions()
      Returns:
      current position of the four circle scannable group
    • populateHkl

      public void populateHkl(org.eclipse.january.dataset.ILazyWriteableDataset hData, org.eclipse.january.dataset.ILazyWriteableDataset kData, org.eclipse.january.dataset.ILazyWriteableDataset lData, List<IPosition> positions, List<String> axisNames)