Photomechanics API
PhotomechanicsDevicesManagerService Class Reference

Default devices manager implementation. Currently searches for MFT series turntables and K-1x cranes. More...

Inheritance diagram for PhotomechanicsDevicesManagerService:
[legend]

Public Member Functions

 PhotomechanicsDevicesManagerService (ILogger logger)
 Construct new instance of service with default parameters.
 
async ValueTask DisposeAsync ()
 
void StartMonitoringDevices ()
 Begin periodic search for connected turn tables. More...
 
async Task SearchForDevices ()
 Try to find turntable and crane and instantiate their APIs and set TurnTableApi and CraneApi. More...
 
Task SearchForDevices ()
 Try to find turntable and crane and instantiate their APIs and set TurnTableApi and CraneApi. More...
 
void StartMonitoringDevices ()
 Begin periodic search for connected turn tables. More...
 

Properties

TimeSpan SerialPortWriteTimeout [get, set]
 Write timeout for serial ports created by this device manager.
 
TimeSpan DeviceInitializationTimeout [get, set]
 Determines how long device manager will wait for spawned device API (over COM port or network) to initialize before considering connection attempt failed.
 
IPEndPoint RD300EndPoint [get, set]
 RD-300 IP endpoint. If not null, manager will attempt to connect to provided endpoint. More...
 
ITurntableApi TurnTableApi [get]
 Turn table API. null if no device is connected. More...
 
ICraneApi CraneApi [get]
 Crane API. null if no device is connected. More...
 
TimeSpan DevicesDiscoveryInterval [get, set]
 Devices polling interval. More...
 
- Properties inherited from IPhotomechanicsDevicesManagerService
IPEndPoint RD300EndPoint [get, set]
 RD-300 IP endpoint. If not null, manager will attempt to connect to provided endpoint. More...
 
ITurntableApi TurnTableApi [get]
 Turn table API. null if no device is connected. More...
 
ICraneApi CraneApi [get]
 Crane API. null if no device is connected. More...
 
TimeSpan DevicesDiscoveryInterval [get, set]
 Devices polling interval. More...
 

Events

AsyncTypedEventHandler< IPhotomechanicsDevicesManagerServiceTurntableApiChanged
 
AsyncTypedEventHandler< IPhotomechanicsDevicesManagerServiceCraneApiChanged
 
- Events inherited from IPhotomechanicsDevicesManagerService
AsyncTypedEventHandler< IPhotomechanicsDevicesManagerServiceTurntableApiChanged
 Occurs when TurnTableApi is changed. More...
 
AsyncTypedEventHandler< IPhotomechanicsDevicesManagerServiceCraneApiChanged
 Occurs when CraneApi is changed. More...
 

Detailed Description

Default devices manager implementation. Currently searches for MFT series turntables and K-1x cranes.

Member Function Documentation

◆ StartMonitoringDevices()

void PhotomechanicsDevicesManagerService.StartMonitoringDevices ( )

Begin periodic search for connected turn tables.

Implements IPhotomechanicsDevicesManagerService.

◆ SearchForDevices()

async Task PhotomechanicsDevicesManagerService.SearchForDevices ( )

Try to find turntable and crane and instantiate their APIs and set TurnTableApi and CraneApi.

Implements IPhotomechanicsDevicesManagerService.

Property Documentation

◆ RD300EndPoint

IPEndPoint PhotomechanicsDevicesManagerService.RD300EndPoint
getset

RD-300 IP endpoint. If not null, manager will attempt to connect to provided endpoint.

Implements IPhotomechanicsDevicesManagerService.

◆ TurnTableApi

ITurntableApi PhotomechanicsDevicesManagerService.TurnTableApi
get

Turn table API. null if no device is connected.

Implements IPhotomechanicsDevicesManagerService.

◆ CraneApi

ICraneApi PhotomechanicsDevicesManagerService.CraneApi
get

Crane API. null if no device is connected.

Implements IPhotomechanicsDevicesManagerService.

◆ DevicesDiscoveryInterval

TimeSpan PhotomechanicsDevicesManagerService.DevicesDiscoveryInterval
getset

Devices polling interval.

Implements IPhotomechanicsDevicesManagerService.