Class StepTimeShotUtil
Utility methods for working with time-based shots (measurements) and mapping them to machining steps.
public static class StepTimeShotUtil
- Inheritance
-
StepTimeShotUtil
- Inherited Members
Methods
GetStepToShotsDictionaryByActualTime(ClStrip, CycleSamplingMode, string, GetTimeShotByFileDelegate, IDictionary<int, List<ITimeShot>>, IProgress<object>, CancellationToken?)
Gets a dictionary mapping step indices to time shots based on actual time.
public static void GetStepToShotsDictionaryByActualTime(ClStrip clStrip, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, string timeShotRelFile, StepTimeShotUtil.GetTimeShotByFileDelegate getTimeShotByRelFileFunc, IDictionary<int, List<ITimeShot>> dstStepToShotsDictionary, IProgress<object> sessionMessageHost, CancellationToken? cancellationToken)
Parameters
clStripClStripThe cutter location strip.
cycleSamplingModeStepTimeShotUtil.CycleSamplingModeThe cycle sampling mode.
timeShotRelFilestringThe relative file path for time shots.
getTimeShotByRelFileFuncStepTimeShotUtil.GetTimeShotByFileDelegateThe delegate function to get time shots by relative file path.
dstStepToShotsDictionaryIDictionary<int, List<ITimeShot>>The destination dictionary to store the mapping.
sessionMessageHostIProgress<object>The session message host for logging.
cancellationTokenCancellationToken?The cancellation token.
GetTimeShotByFile(string, Action<int>, CancellationToken?)
Gets time shots from a file, reading and parsing force acceleration data.
public static List<ITimeShot> GetTimeShotByFile(string file, Action<int> lineReaded, CancellationToken? cancellationToken = null)
Parameters
filestringThe file path to read time shots from.
lineReadedAction<int>Action to call when a line is read, providing progress feedback with the current line number.
cancellationTokenCancellationToken?Optional cancellation token to cancel the reading operation.