This class is an Implementation of the VisionDeviceEventListener
This class will poll to perform a check for events and for the connection status with a period defined by the Interval Property.
More...
Public Member Functions | |
| VisionDeviceEventListenerPeriodic (EventsManager eventsManager, OperationsExecutionScheduler executionScheduler, VisionFactory factory) | |
| Constructor More... | |
| virtual void | CheckEventsAndConnection () |
| This method will force an event check More... | |
Public Member Functions inherited from VisionSDK.VisionDeviceEventListener | |
| VisionDeviceEventListener (EventsManager eventsManager) | |
| Constructor More... | |
Properties | |
| OperationsExecutionScheduler | ExecutionScheduler [get, set] |
| This is the execution scheduler responsible for executing the CheckEventsOperation More... | |
| VisionFactory | Factory [get, set] |
| The Factory used to create the CheckEventsOperation More... | |
| Double | Interval [get, set] |
| The Polling interval More... | |
| new Boolean | CheckConnectionStatus [get, set] |
| If True, performs the Connection Status Check More... | |
| new Boolean | ListenForOccurredEvents [get, set] |
| If true, performs the Events Check More... | |
| new VisionDeviceConnection | DeviceConnection [get, set] |
| The VisionDeviceConnection on which to check the events More... | |
Properties inherited from VisionSDK.VisionDeviceEventListener | |
| Boolean | DiscardDuplicateEvents [get, set] |
| If true, this will keep a single type of event for each check and discard the equivalents More... | |
| int | NumberOfContiguosFailBeforeFireConnectionLost [get, set] |
| Specify a number of continuous failed checks before firing the Connection Lost event More... | |
| int | NumberOfContiguosFailOccurred [get] |
| Return the number of failed requests that occurred More... | |
| VisionDeviceConnection | DeviceConnection [get, set] |
| The VisionDeviceConnection on which to check the events More... | |
| Boolean | CheckConnectionStatus [get, set] |
| If True, the Connection Status check is performed More... | |
| Boolean | ListenForOccurredEvents [get, set] |
| If true, the Events check is performed More... | |
| EventsManager | EventManager [get, set] |
Additional Inherited Members | |
Protected Member Functions inherited from VisionSDK.VisionDeviceEventListener | |
| void | OnConnectionLost () |
| This method will fire the ConnectionLost Event More... | |
| void | OnOccurredEvent (VisionEvent visionEvent) |
| This method will fire the Event based on the VisionEvent parameter More... | |
Protected Attributes inherited from VisionSDK.VisionDeviceEventListener | |
| int | numberOfContiguosFailOccurred |
| Keep track of the number of failed requests that occurred (cleared each time a successful request is performed) More... | |
| VisionDeviceConnection | deviceConnection |
| Boolean | checkConnectionStatus |
| Boolean | listenForOccurredEvents |
Events inherited from VisionSDK.VisionDeviceEventListener | |
| EventHandler< VisionEventArgs > | DidAcquiredABadImage |
| Fired when a Bad Image is acquired from the camera More... | |
| EventHandler< VisionEventArgs > | DidAcquiredAnImage |
| Fired when an Image is acquired from the camera More... | |
| EventHandler< VisionEventArgs > | DidLostTheConnection |
| Fired if the VisionDeviceConnection loses the connection More... | |
| EventHandler< VisionEventArgs > | DidGoOnline |
| Fired when the Vision Device goes to the online state More... | |
| EventHandler< VisionEventArgs > | DidGoOffline |
| Fired when the Vision Device goes to the offline state More... | |
| EventHandler< VisionCustomEventArgs > | DidReceivedACustomEvent |
| Fired if the Vision Device receives a custom event More... | |
This class is an Implementation of the VisionDeviceEventListener
This class will poll to perform a check for events and for the connection status with a period defined by the Interval Property.
| VisionSDK.VisionDeviceEventListenerPeriodic.VisionDeviceEventListenerPeriodic | ( | EventsManager | eventsManager, |
| OperationsExecutionScheduler | executionScheduler, | ||
| VisionFactory | factory | ||
| ) |
Constructor
| eventsManager | The EventsManager that fires the events that occurred |
| executionScheduler | The ExecutionScheduler that executes the CheckEventOperation |
| factory | The Factory used to create the CheckEventOperation |
|
virtual |
This method will force an event check
|
getset |
If True, performs the Connection Status Check
|
getset |
The VisionDeviceConnection on which to check the events
|
getset |
This is the execution scheduler responsible for executing the CheckEventsOperation
|
getset |
The Factory used to create the CheckEventsOperation
|
getset |
The Polling interval
|
getset |
If true, performs the Events Check