Package org.eclipse.scanning.points
Class NoModelGenerator
java.lang.Object
org.eclipse.scanning.api.points.AbstractGenerator<AbstractPointsModel>
org.eclipse.scanning.points.AbstractScanPointGenerator<AbstractPointsModel>
org.eclipse.scanning.points.NoModelGenerator
- All Implemented Interfaces:
Iterable<IPosition>,IModelProvider<AbstractPointsModel>,IPointGenerator<AbstractPointsModel>,PySerializable
A Generator with no model, for situations where a PPointGenerator is given to GDA without
model information (e.g. a PPointGenerator is handed to Malcolm, which does additional validation
and modifies the PPointGenerator, meaning that the model GDA was using is now invalid.
This object is therefore just a wrapper for the PPointGenerator for situations where we want to treat it like an
IPointGenerator: passing it to a CompoundGenerator for example
-
Field Summary
Fields inherited from class org.eclipse.scanning.points.AbstractScanPointGenerator
pointGeneratorFields inherited from class org.eclipse.scanning.api.points.AbstractGenerator
model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PPointGeneratorbooleangetModel()The model for the generator.inthashCode()toString()protected voidMethods inherited from class org.eclipse.scanning.points.AbstractScanPointGenerator
createSpgCompoundGenerator, createWrappingCompoundGenerator, finalBounds, getDimensionNames, getNames, getPointGenerator, getRank, getShape, initialBounds, iterator, setModel, size, toDictMethods inherited from class org.eclipse.scanning.api.points.AbstractGenerator
createPointsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.IModelProvider
updateModelMethods inherited from interface org.eclipse.scanning.api.points.IPointGenerator
getFirstPointMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NoModelGenerator
-
-
Method Details
-
createPythonPointGenerator
- Specified by:
createPythonPointGeneratorin classAbstractScanPointGenerator<AbstractPointsModel>
-
toString
- Overrides:
toStringin classAbstractGenerator<AbstractPointsModel>
-
validateModel
protected void validateModel()- Overrides:
validateModelin classAbstractScanPointGenerator<AbstractPointsModel>
-
getModel
Description copied from interface:IPointGeneratorThe model for the generator.- Specified by:
getModelin interfaceIModelProvider<AbstractPointsModel>- Specified by:
getModelin interfaceIPointGenerator<AbstractPointsModel>- Overrides:
getModelin classAbstractGenerator<AbstractPointsModel>- Returns:
-
equals
- Overrides:
equalsin classAbstractGenerator<AbstractPointsModel>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractGenerator<AbstractPointsModel>
-