Table of Contents

Class CsvRunner

Namespace
Hi.Numerical.FilePlayers
Assembly
HiNc.dll

Provides functionality for running and processing csv lines.

public class CsvRunner : IControlRunner
Inheritance
CsvRunner
Implements
Inherited Members
Extension Methods

Constructors

CsvRunner(LocalProjectService)

Initializes a new instance.

public CsvRunner(LocalProjectService localProjectService)

Parameters

localProjectService LocalProjectService

The local project service.

Properties

Config

Configuration for CSV Runner.

public CsvRunnerConfig Config { get; set; }

Property Value

CsvRunnerConfig

Methods

Reset()

Reset runtime data, including the execution-order Hi.Numerical.FilePlayers.CsvRunner.sentenceIndex counter. Called from LocalProjectService.ResetRuntime only — session stop (EndSession) deliberately does not reset the runner.

public void Reset()

RunControlLines(string, IEnumerable<string>, MachiningSession, SessionProgress, CancellationToken)

Runs raw Control lines and yields source sentence and Act pairs.

public IEnumerable<SourcedActEntry> RunControlLines(string relFilePath, IEnumerable<string> lines, MachiningSession machiningSession, SessionProgress sessionMessageHost, CancellationToken cancellationToken)

Parameters

relFilePath string

The relative path of the control file

lines IEnumerable<string>

The enumerable collection of command (control code) lines

machiningSession MachiningSession

Session-scoped state shared across multiple RunControlLines(string, IEnumerable<string>, MachiningSession, SessionProgress, CancellationToken) calls (e.g. lazy-initialized pipeline state, file-index counter).

sessionMessageHost SessionProgress
cancellationToken CancellationToken

Cancellation token to cancel the operation

Returns

IEnumerable<SourcedActEntry>

Enumerable of source sentence and Act pairs