Class TwoAxisPointSingleModel
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.points.models.AbstractPointsModel
org.eclipse.scanning.api.points.models.AbstractMapModel
org.eclipse.scanning.api.points.models.TwoAxisPointSingleModel
- All Implemented Interfaces:
INameable,IMapPathModel,IScanPathModel,IScanPointGeneratorModel
A model for a scan at a single two-dimensional point.
-
Field Summary
Fields inherited from class org.eclipse.scanning.api.points.models.AbstractPointsModel
HARDCODED_UNITS, pcs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublegetX()doublegetY()inthashCode()booleanThis setting only makes sense when there is another model outside of this model within a CompoundModel: e.g.booleanIftruethe scan is continuous if possible, i.e.voidsetAlternating(boolean alternating) voidsetContinuous(boolean continuous) voidsetX(double x) voidsetY(double y) toString()Methods inherited from class org.eclipse.scanning.api.points.models.AbstractMapModel
getScannableNames, getUnits, getxAxisName, getxAxisUnits, getyAxisName, getyAxisUnits, setUnits, setxAxisName, setxAxisUnits, setyAxisName, setyAxisUnitsMethods inherited from class org.eclipse.scanning.api.points.models.AbstractPointsModel
addPropertyChangeListener, getSummary, removePropertyChangeListener, supportsAlternating, supportsContinuous, supportsRandomOffset, supportsVertical, updateFromPropertiesMapMethods inherited from class org.eclipse.scanning.api.AbstractNameable
getName, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.points.models.IScanPathModel
addPropertyChangeListener, removePropertyChangeListenerMethods inherited from interface org.eclipse.scanning.api.points.models.IScanPointGeneratorModel
updateFromPropertiesMap
-
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
- Overrides:
toStringin classAbstractMapModel
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractMapModel
-
equals
- Overrides:
equalsin classAbstractMapModel
-
isContinuous
public boolean isContinuous()Description copied from interface:IScanPointGeneratorModelIftruethe scan is continuous if possible, i.e. the motors continue to move while the detectors are exposed, iffalsethe 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:
isContinuousin interfaceIScanPointGeneratorModel- Overrides:
isContinuousin classAbstractPointsModel- Returns:
trueif the scan should be continuous,falseotherwise.
-
setContinuous
public void setContinuous(boolean continuous) - Specified by:
setContinuousin interfaceIScanPointGeneratorModel- Overrides:
setContinuousin classAbstractPointsModel
-
isAlternating
public boolean isAlternating()Description copied from interface:IScanPointGeneratorModelThis 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:
isAlternatingin interfaceIScanPointGeneratorModel- Overrides:
isAlternatingin classAbstractPointsModel- Returns:
trueif the scan is a alternating,falseotherwise
-
setAlternating
public void setAlternating(boolean alternating) - Specified by:
setAlternatingin interfaceIScanPointGeneratorModel- Overrides:
setAlternatingin classAbstractPointsModel
-