Interface IControlRunner
Control Runner. The term control is machine control. The Control Line is such like the NC (Numerical Control) line.
public interface IControlRunner
- Extension Methods
Methods
RunControlLines(string, IEnumerable<string>, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken)
Runs raw Control lines and yields source sentence and Act pairs.
IEnumerable<SourcedActEntry> RunControlLines(string relFilePath, IEnumerable<string> lines, MachiningSession machiningSession, StepDiagnosticProgress stepDiagnosticProgress, NcDiagnosticProgress ncDiagnosticProgress, CancellationToken cancellationToken)
Parameters
relFilePathstringThe relative path of the control file
linesIEnumerable<string>The enumerable collection of command (control code) lines
machiningSessionMachiningSessionSession-scoped state shared across multiple RunControlLines(string, IEnumerable<string>, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken) calls (e.g. lazy-initialized pipeline state, file-index counter).
stepDiagnosticProgressStepDiagnosticProgressStep-anchored IMessage-channel sink.
ncDiagnosticProgressNcDiagnosticProgressNC-pipeline diagnostic sink, threaded in as an input so the runner stays host-agnostic (the caller injects it; the production caller passes the service-scoped instance, standalone tests pass their own).
cancellationTokenCancellationTokenCancellation token to cancel the operation
Returns
- IEnumerable<SourcedActEntry>
Enumerable of source sentence and Act pairs