Package gda.org.myls.scannable
Class ScannableSine
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.ScannableSine
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetNoise()doubledoubledoublegetPhase()Returns the current position of the Scannable.static voidvoidsetMagnitude(double magnitude) voidsetNoise(double noise) voidsetOffset(double offset) voidsetPeriod(double period) voidsetPhase(double phase) voidsetSineWave(SineWave sineWave) toString()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, 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
-
ScannableSine
public ScannableSine() -
ScannableSine
- Parameters:
sineWave-
-
-
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:
-
toString
- Overrides:
toStringin classScannableBase
-
main
- Parameters:
args-
-
getSineWave
- Returns:
- Returns the sineWave.
-
setSineWave
- Parameters:
sineWave- The sineWave to set.
-
getPeriod
public double getPeriod()- Returns:
- Returns the period.
-
setPeriod
public void setPeriod(double period) - Parameters:
period- The period to set.
-
getPhase
public double getPhase()- Returns:
- Returns the phase.
-
setPhase
public void setPhase(double phase) - Parameters:
phase- The phase to set.
-
getMagnitude
public double getMagnitude()- Returns:
- Returns the magnitude.
-
setMagnitude
public void setMagnitude(double magnitude) - Parameters:
magnitude- The magnitude to set.
-
getOffset
public double getOffset()- Returns:
- Returns the offset.
-
setOffset
public void setOffset(double offset) - Parameters:
offset- The offset to set.
-
getNoise
public double getNoise()- Returns:
- Returns the noise.
-
setNoise
public void setNoise(double noise) - Parameters:
noise- The noise to set.
-