Package org.eclipse.scanning.api.points
Class Scalar<T>
java.lang.Object
org.eclipse.scanning.api.points.AbstractPosition
org.eclipse.scanning.api.points.Scalar<T>
- Type Parameters:
T- the type of the value of this position
- All Implemented Interfaces:
Serializable,IPosition
A single value position.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe value of a named position.intGet the index of the data for instance in a scan of temperature from 290 to 300 step 1, the indices will be 0-10.getNames()The names of all the scalars set for this position.getType()getValue()intsize()The number of named scalars in this positionMethods inherited from class org.eclipse.scanning.api.points.AbstractPosition
compound, equals, equals, getDimensionNames, getDimensionNames, getExposureTime, getIndex, getScanRank, getStepIndex, hashCode, setDimensionNames, setExposureTime, setStepIndex, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.points.IPosition
getDouble, getIndices, getValue, getValues
-
Constructor Details
-
Scalar
-
Scalar
-
Scalar
-
-
Method Details
-
size
public int size()Description copied from interface:IPositionThe number of named scalars in this position- Returns:
- number of scalars
-
getNames
Description copied from interface:IPositionThe names of all the scalars set for this position. For instance 'x' and 'y' for a map or 'Temperature' Note to implementers: should never returnnull- Returns:
- name of scalars
-
get
Description copied from interface:IPositionThe value of a named position. For instanceget("X")to return the value of the X IScannable double.- Parameters:
name-- Returns:
- value for the given axis name
-
getValue
-
getType
-
getIndex
Description copied from interface:IPositionGet the index of the data for instance in a scan of temperature from 290 to 300 step 1, the indices will be 0-10. If one dimension has more than one motor with it, for instance x and y in a line scan, both getIndex("x") and getIndex("y") return the same value.- Returns:
- data index for given axis name
-