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>>, SessionMessageHost, CancellationToken?)
public static void GetStepToShotsDictionaryByActualTime(ClStrip clStrip, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, string timeShotRelFile, StepTimeShotUtil.GetTimeShotByFileDelegate getTimeShotByRelFileFunc, IDictionary<int, List<ITimeShot>> dstStepToShotsDictionary, SessionMessageHost sessionMessageHost, CancellationToken? cancellationToken)
Parameters
clStripClStripcycleSamplingModeStepTimeShotUtil.CycleSamplingModetimeShotRelFilestringgetTimeShotByRelFileFuncStepTimeShotUtil.GetTimeShotByFileDelegatedstStepToShotsDictionaryIDictionary<int, List<ITimeShot>>sessionMessageHostSessionMessageHostcancellationTokenCancellationToken?
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.