Package gda.org.myls.scannable
Class ScannableGaussian
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.org.myls.scannable.SimpleScannable
gda.org.myls.scannable.ScannableGaussian
- All Implemented Interfaces:
Device,Scannable,Configurable,Findable,gda.observable.IObservable
-
Field Summary
Fields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, VALUE_UNAVAILABLE -
Constructor Summary
ConstructorsConstructorDescriptionScannableGaussian(double centre, double width, double height, double noise) ScannableGaussian(String name, Double xPosition, String xName, String yName, Double centre, Double width, Double height, Double noise, int level, String outputFormatx, String outputFormaty, String unitsx, String unitsy) -
Method Summary
Modifier and TypeMethodDescriptionfinal doublefinal Gaussianfinal doublefinal doublegetNoise()final ObjectReturns the current position of the Scannable.final doublegetWidth()static voidfinal voidsetCentre(double centre) final voidsetGaussian(Gaussian gaussian) final voidsetHeight(double height) final voidsetNoise(double noise) final voidsetWidth(double width) Methods inherited from class gda.org.myls.scannable.SimpleScannable
addIObserver, asynchronousMoveTo, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, close, deleteIObserver, deleteIObservers, getAttribute, getExtraNames, getInputNames, getLevel, getName, getOutputFormat, getProtectionLevel, getUnits, isAt, isBusy, moveTo, setAttribute, setExtraNames, setInputNames, setLevel, setName, setOutputFormat, setPosition, setProtectionLevel, setUnits, stop, waitWhileBusyMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, checkPositionValid, externalToInternal, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, rawAsynchronousMoveTo, rawGetPosition, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toFormattedString, toString, validateScannable, valueUnavailableString, waitWhileBusyMethods inherited from class gda.device.DeviceBase
isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartupMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigure
-
Constructor Details
-
ScannableGaussian
public ScannableGaussian() -
ScannableGaussian
- Parameters:
g-
-
ScannableGaussian
public ScannableGaussian(double centre, double width, double height, double noise) - Parameters:
centre-width-height-noise-
-
ScannableGaussian
public ScannableGaussian(String name, Double xPosition, String xName, String yName, Double centre, Double width, Double height, Double noise, int level, String outputFormatx, String outputFormaty, String unitsx, String unitsy) - Parameters:
name-xPosition-xName-yName-centre-width-height-noise-level-outputFormatx-outputFormaty-unitsx-unitsy-
-
-
Method Details
-
getPosition
Description copied from class:SimpleScannableReturns the current position of the Scannable. Called by ConcurentScan at the end of the point. Reads an internal (hardware) position from rawGetPosition, converts this to an external (user) position and returns it.- Specified by:
getPositionin interfaceScannable- Overrides:
getPositionin classSimpleScannable- Returns:
- Current position with an element for each input and extra field. null if their are no fields.
- Throws:
DeviceException- See Also:
-
main
- Parameters:
args-
-
getCentre
public final double getCentre()- Returns:
- Returns the centre.
-
setCentre
public final void setCentre(double centre) - Parameters:
centre- The centre to set.
-
getWidth
public final double getWidth()- Returns:
- Returns the width.
-
setWidth
public final void setWidth(double width) - Parameters:
width- The width to set.
-
getHeight
public final double getHeight()- Returns:
- Returns the height.
-
setHeight
public final void setHeight(double height) - Parameters:
height- The height to set.
-
getNoise
public final double getNoise()- Returns:
- Returns the noise.
-
setNoise
public final void setNoise(double noise) - Parameters:
noise- The noise to set.
-
getGaussian
- Returns:
- Returns the gaussian.
-
setGaussian
- Parameters:
gaussian- The gaussian to set.
-