Class MockCountingPositionScannable
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.AbstractNameableTimeoutable
org.eclipse.scanning.api.AbstractScannable<Number>
org.eclipse.scanning.api.CountableScannable<Number>
org.eclipse.scanning.example.scannable.MockScannable
org.eclipse.scanning.example.scannable.MockCountingPositionScannable
- All Implemented Interfaces:
IActivatable,IBoundable<Number>,ILevel,INameable,IScanAttributeContainer,IScannable<Number>,ITerminatable,ITimeoutable,ITolerable<Number>,IPositionListenable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.scanning.api.ITerminatable
ITerminatable.TerminationPreference -
Field Summary
Fields inherited from class org.eclipse.scanning.example.scannable.MockScannable
positionFields inherited from class org.eclipse.scanning.api.AbstractScannable
delegate -
Constructor Summary
ConstructorsConstructorDescriptionMockCountingPositionScannable(String name, double position, boolean returnPosition) -
Method Summary
Modifier and TypeMethodDescriptionThe position is the value which should be: 1.setPosition(Number value, IPosition loc) Moves to the position required, blocking until it is complete.Methods inherited from class org.eclipse.scanning.example.scannable.MockScannable
abort, doRealisticMove, equalsWithinTolerance, getMaximum, getMinimum, getMoveRate, getUnit, getValues, isRealisticMove, isRequireSleep, setInitialPosition, setMaximum, setMinimum, setMoveRate, setPosition, setRealisticMove, setRequireSleep, setUnit, terminate, toString, verifyMethods inherited from class org.eclipse.scanning.api.CountableScannable
count, getCount, getMethodName, resetCountMethods inherited from class org.eclipse.scanning.api.AbstractScannable
addPositionListener, getDeviceInformation, getLevel, getModel, getScanAttribute, getScanAttributeNames, getTolerance, isActivated, register, removePositionListener, setActivated, setLevel, setModel, setPublisher, setScanAttribute, setToleranceMethods inherited from class org.eclipse.scanning.api.AbstractNameableTimeoutable
equals, getTimeout, hashCode, setTimeoutMethods 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.IBoundable
getPermittedValuesMethods inherited from interface org.eclipse.scanning.api.scan.event.IPositionListenable
getPositioner, setPositionerMethods inherited from interface org.eclipse.scanning.api.ITimeoutable
getTimeout, setTimeout
-
Constructor Details
-
MockCountingPositionScannable
-
-
Method Details
-
setPosition
Description copied from interface:IScannableMoves to the position required, blocking until it is complete. Similar to moveTo(...) in GDA8- Specified by:
setPositionin interfaceIScannable<Number>- Overrides:
setPositionin classMockScannable- Parameters:
value- that this scalar should take.loc- if within in a scan or null if not within a scan.- Returns:
- the new position attained by the device, if known. (Saves additional call to getPosition()) If not know the demand value is returned. NOTE if null is returned the system will call getPosition() again.
- Throws:
ScanningException
-
getPosition
Description copied from interface:IBoundableThe position is the value which should be: 1. Greater than or equal to the lower 2. Less than or equal to the upper. 3. One of the permitted values, if they are not null.- Specified by:
getPositionin interfaceIBoundable<Number>- Overrides:
getPositionin classMockScannable- Returns:
-