Impact Vision SDK  11.8.1
VisionSDK.Operations.VisionOperation Class Reference

This class represents an operation executed on a Vision Device
It also stores DeviceConnection which is the connection to the Vision Device. More...

Inheritance diagram for VisionSDK.Operations.VisionOperation:
VisionSDK.Operations.Operation VisionSDK.Operations.AutoWhiteBalanceOperation VisionSDK.Operations.ClearSystemLogOperation VisionSDK.Operations.SnapImageAndSetToPortsOperation VisionSDK.Operations.StartAutoTriggerOperation VisionSDK.Operations.StopAutoTriggerOperation VisionSDK.Operations.TriggerOperation VisionSDK.Operations.UnloadAllLoadedProgramsOperation VisionSDK.Operations.UnloadProgramOperation VisionSDK.Operations.VisionFileOperation VisionSDK.Operations.VisionGetOperation< T > VisionSDK.Operations.VisionPortOperation VisionSDK.Operations.VisionSetOperation< T >

Public Member Functions

override void Execute ()
 This function checks CanPerformOperation() before it executes the operation
It then performs a lock on the DeviceConnection object so multiple operations cannot be executed at the same time. More...
 
- Public Member Functions inherited from VisionSDK.Operations.Operation
 Operation ()
 Constructor More...
 
object Clone ()
 
void AddCompletionHandler (Action< OperationResult > completionHandler)
 This method sets the completion handler of the operation More...
 
void AddCompletionHandler< T > (Action< OperationResult< T >> completionHandler)
 This method sets the completion handler of the operation More...
 

Protected Member Functions

override bool CanPerformOperation ()
 Checks if DeviceConnection is connected before executing the operation More...
 
- Protected Member Functions inherited from VisionSDK.Operations.Operation
virtual void PerformOperation ()
 Override this method with a new one that contains the operation to execute More...
 

Properties

VisionDeviceConnection DeviceConnection [get, set]
 The Connection to the Vision Device More...
 
- Properties inherited from VisionSDK.Operations.Operation
String Name [get, set]
 The Operation's Name
By Default this is set with the Operation's Type Name More...
 
OperationResult Result [get, set]
 The Operation Result More...
 
Action CompletionHandler [get, set]
 A delegate associated with the operation
This delegate never gets called by this class itself More...
 

Additional Inherited Members

- Static Public Member Functions inherited from VisionSDK.Operations.Operation
static void DeleteOperation (Operation operation)
 Delete an Operation and its completion handler More...
 
- Protected Attributes inherited from VisionSDK.Operations.Operation
OperationResult result
 The Operation Result More...
 

Detailed Description

This class represents an operation executed on a Vision Device
It also stores DeviceConnection which is the connection to the Vision Device.

Member Function Documentation

override bool VisionSDK.Operations.VisionOperation.CanPerformOperation ( )
protectedvirtual

Checks if DeviceConnection is connected before executing the operation

Returns
true if DeviceConnection is connected

Reimplemented from VisionSDK.Operations.Operation.

Reimplemented in VisionSDK.Operations.VisionSetOperation< T >, VisionSDK.Operations.VisionGetPortOperation< T >, VisionSDK.Operations.VisionSetPortOperation< T >, and VisionSDK.Operations.VisionPortOperation.

override void VisionSDK.Operations.VisionOperation.Execute ( )
virtual

This function checks CanPerformOperation() before it executes the operation
It then performs a lock on the DeviceConnection object so multiple operations cannot be executed at the same time.

Reimplemented from VisionSDK.Operations.Operation.

Property Documentation

VisionDeviceConnection VisionSDK.Operations.VisionOperation.DeviceConnection
getset

The Connection to the Vision Device

HTML Footer Datalogic Automation, Inc.    ©2016 Datalogic Automation Inc. All Rights Reserved