Skip to content
Start free evaluation

PDComm.GemFormattedProgramSelectionToken

Class

Identifies the equipment's current formatted process program selection.

public sealed record GemFormattedProgramSelectionToken

GemFormattedPrograms.SelectProgram returns it. Pass it unchanged to GemFormattedPrograms.ClearSelection, GemFormattedPrograms.ValidateSelection, GemFormattedPrograms.DryRun and GemFormattedPrograms.StartExecution; a token that does not match the current selection fails with PdcommStatus.StaleToken.

Parameters

NameDescription
EndpointIdThe process-local identity of the endpoint that made the selection.
SessionGenerationThe connection generation in which the program was selected.
StoreRevisionThe program store revision when the program was selected.
EntryGenerationThe generation of the selected store entry when the program was selected.
SelectionGenerationThe selection generation; it increases when a new selection replaces the current one and when the selection is cleared.

Members

GemFormattedProgramSelectionToken

Constructor

Identifies the equipment's current formatted process program selection.

public GemFormattedProgramSelectionToken(ulong EndpointId, ulong SessionGeneration, ulong StoreRevision, ulong EntryGeneration, ulong SelectionGeneration)

GemFormattedPrograms.SelectProgram returns it. Pass it unchanged to GemFormattedPrograms.ClearSelection, GemFormattedPrograms.ValidateSelection, GemFormattedPrograms.DryRun and GemFormattedPrograms.StartExecution; a token that does not match the current selection fails with PdcommStatus.StaleToken.

Parameters

NameDescription
EndpointIdThe process-local identity of the endpoint that made the selection.
SessionGenerationThe connection generation in which the program was selected.
StoreRevisionThe program store revision when the program was selected.
EntryGenerationThe generation of the selected store entry when the program was selected.
SelectionGenerationThe selection generation; it increases when a new selection replaces the current one and when the selection is cleared.

EndpointId

Property

The process-local identity of the endpoint that made the selection.

public ulong EndpointId { get; init; }

EntryGeneration

Property

The generation of the selected store entry when the program was selected.

public ulong EntryGeneration { get; init; }

SelectionGeneration

Property

The selection generation; it increases when a new selection replaces the current one and when the selection is cleared.

public ulong SelectionGeneration { get; init; }

SessionGeneration

Property

The connection generation in which the program was selected.

public ulong SessionGeneration { get; init; }

StoreRevision

Property

The program store revision when the program was selected.

public ulong StoreRevision { get; init; }