Table of Contents

Class WorkstationStateExtensions

Namespace
Acuit.Pinpoint.Workstation
Assembly
Acuit.Pinpoint.Workstation.Abstractions.dll

Extension members for IWorkstationState.

public static class WorkstationStateExtensions
Inheritance
WorkstationStateExtensions
Inherited Members

Methods

get_IsStationRunning(IWorkstationState)

Gets whether the station is running.

public static bool get_IsStationRunning(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

bool

get_IsUnitAtStation(IWorkstationState)

Gets whether a unit is at the station.

public static bool get_IsUnitAtStation(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

bool

get_IsWorkerAtStation(IWorkstationState)

Gets whether a worker is logged on at the station.

public static bool get_IsWorkerAtStation(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

bool

get_RequiredRunningStation(IWorkstationState)

Gets the IRunningStation representing the running station, or throws an exception if the station is not running.

public static IRunningStation get_RequiredRunningStation(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

IRunningStation

Exceptions

InvalidOperationException

The station is not running.

get_RequiredUnitAtStation(IWorkstationState)

Gets the IUnitAtStation representing the unit currently at the station, or throws an exception if no unit is currently at the station.

public static IUnitAtStation get_RequiredUnitAtStation(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

IUnitAtStation

Exceptions

InvalidOperationException

The station is not running.

InvalidOperationException

There is no worker logged on at the station.

InvalidOperationException

There is no unit at the station.

get_RequiredWorkerAtStation(IWorkstationState)

Gets the IWorkerAtStation representing the worker logged on at the station (including for stations with an automatic worker logon configured), or throws an exception if no worker is logged on at the station.

public static IWorkerAtStation get_RequiredWorkerAtStation(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

IWorkerAtStation

Exceptions

InvalidOperationException

The station is not running.

InvalidOperationException

There is no worker logged on at the station.

get_UnitAtStation(IWorkstationState)

Gets the IUnitAtStation representing the unit currently at the station, or null if no unit is currently at the station.

public static IUnitAtStation? get_UnitAtStation(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

IUnitAtStation

get_WorkerAtStation(IWorkstationState)

Gets the IWorkerAtStation representing the worker logged on at the station (including for stations with an automatic worker logon configured), or null if no worker is logged on at the station.

public static IWorkerAtStation? get_WorkerAtStation(IWorkstationState workstationState)

Parameters

workstationState IWorkstationState

Returns

IWorkerAtStation