Photomechanics API
|
Default devices manager implementation. Currently searches for MFT series turntables and K-1x cranes. More...
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< IPhotomechanicsDevicesManagerService > | TurntableApiChanged |
AsyncTypedEventHandler< IPhotomechanicsDevicesManagerService > | CraneApiChanged |
Events inherited from IPhotomechanicsDevicesManagerService | |
AsyncTypedEventHandler< IPhotomechanicsDevicesManagerService > | TurntableApiChanged |
Occurs when TurnTableApi is changed. More... | |
AsyncTypedEventHandler< IPhotomechanicsDevicesManagerService > | CraneApiChanged |
Occurs when CraneApi is changed. More... | |
Default devices manager implementation. Currently searches for MFT series turntables and K-1x cranes.
void PhotomechanicsDevicesManagerService.StartMonitoringDevices | ( | ) |
Begin periodic search for connected turn tables.
Implements IPhotomechanicsDevicesManagerService.
async Task PhotomechanicsDevicesManagerService.SearchForDevices | ( | ) |
Try to find turntable and crane and instantiate their APIs and set TurnTableApi and CraneApi.
Implements IPhotomechanicsDevicesManagerService.
|
getset |
RD-300 IP endpoint. If not null, manager will attempt to connect to provided endpoint.
Implements IPhotomechanicsDevicesManagerService.
|
get |
Turn table API. null
if no device is connected.
Implements IPhotomechanicsDevicesManagerService.
|
get |
Crane API. null
if no device is connected.
Implements IPhotomechanicsDevicesManagerService.
|
getset |
Devices polling interval.
Implements IPhotomechanicsDevicesManagerService.