Package gda.scan.ede.timeestimators
Class TimeEstimatorBase
java.lang.Object
gda.scan.ede.timeestimators.TimeEstimatorBase
- All Implemented Interfaces:
EdeTimeEstimate
- Direct Known Subclasses:
LinearExperimentTimeEstimator,SingleExperimentTimeEstimator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DoubleestimateMovementDuration(EdeScanPosition startPosition, EdeScanPosition endPosition) Not simply the duration of the actual movement, but includes overhead of communicating to the motors via the control system.protected DoubleestimateOneFrameFromEachGroupDuration(EdeScanParameters scanParameters) Sum of the integration time of one frame from each timing group with no delays and no triggers.protected DoubleestimateScanDuration(EdeScanParameters scanParameters) Sum all the integration time of all the delays and integrations, assuming no external delays from external triggers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.scan.ede.timeestimators.EdeTimeEstimate
getAfterItDuration, getBeforeItDuration, getItDuration, getTotalDuration
-
Constructor Details
-
TimeEstimatorBase
public TimeEstimatorBase()
-
-
Method Details
-
estimateScanDuration
Sum all the integration time of all the delays and integrations, assuming no external delays from external triggers.- Parameters:
scanParameters-- Returns:
- time in seconds
-
estimateOneFrameFromEachGroupDuration
Sum of the integration time of one frame from each timing group with no delays and no triggers. These are the integrations which would be performed to collect dark, I0 or Iref data to normalise the It data.- Parameters:
scanParameters-- Returns:
- time in seconds
-
estimateMovementDuration
protected Double estimateMovementDuration(EdeScanPosition startPosition, EdeScanPosition endPosition) Not simply the duration of the actual movement, but includes overhead of communicating to the motors via the control system.- Parameters:
startPosition-endPosition-- Returns:
- time in seconds
-