Impact Vision SDK  11.8.1
VisionSDK.Operations.Execution.OperationsExecutionSchedulerSync Class Reference

This class is a subclass of OperationExecutionScheduler and overrides the ExecuteOperation method for executing operations synchronously More...

Inheritance diagram for VisionSDK.Operations.Execution.OperationsExecutionSchedulerSync:
VisionSDK.Operations.Execution.OperationsExecutionScheduler

Public Member Functions

 OperationsExecutionSchedulerSync (IScheduler scheduler)
 Constructor More...
 
- Public Member Functions inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler
 OperationsExecutionScheduler (IScheduler scheduler)
 Constructor More...
 
void AddOperationToExecutionQueue (Operation operation)
 Adds an operation to the execution queue. This operaton will execute as soon as possible. More...
 
void RemoveAllOperationsInQueue ()
 Removes all the operations in the execution queue that are not executing More...
 

Static Public Member Functions

static OperationsExecutionScheduler CreateOperationsExecutionScheduler (IScheduler scheduler)
 

Protected Member Functions

override void ExecuteOperation (Operation operation)
 Executes an operation synchronously. It does not execute the operation's completion handler when the operation is executed More...
 
- Protected Member Functions inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler
void OnWillExecuteOperation (Operation operation)
 This method fires the "OnWillExecuteOperation" using the EventManager More...
 
void OnDidExecutedOperation (Operation operation)
 This method fires the "OnDidExecutedOperation" using the EventManager More...
 
virtual void PrepareOperationForExecution (Operation operation)
 This method must be called from the OperationExecutionScheduler subclasses before an operation starts execution and it will fire the "OnWillExecuteOperation" Event using the EventManager More...
 
void OperationExecutionCompleted (Operation operation)
 This method must be called from the OperationExecutionScheduler subclasses when an operation has completed execution. It will remove the Operation from the "OnWillExecuteOperation" Event using the EventManager More...
 
virtual Operation PickOperationToExecute ()
 Returns the next operation to execute, removes it from the OperationsToExecuteQueue, then pushes it to the OperationsToExecuteQueue More...
 

Additional Inherited Members

- Protected Attributes inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler
int maxSimultaneousOperations
 
- Properties inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler
int MaxSimultaneousOperations [get]
 Maximum number of simultaneous operations ( Default = 1 ) More...
 
List< Operation > OperationsToExecute [get, set]
 
List< Operation > OperationsInExecution [get, set]
 
int NumberOfOperationsInQueue [get]
 The number of operations in the queue waiting to be executed More...
 
int NumberOfOperationsInExecution [get]
 Number of operations that are executing More...
 
Boolean IsExecutingOperations [get]
 True if currently executing operations More...
 
Boolean CanPerformOperations [get]
 True if currently executing fewer operations than the MaxSimultaneousOperations More...
 
EventsScheduler EventManager [get, set]
 Fire the events on the right Dispatcher More...
 
IScheduler Scheduler [get, set]
 Execute the operation's completion handler on the right Dispatcher More...
 
- Events inherited from VisionSDK.Operations.Execution.OperationsExecutionScheduler
EventHandler< VisionEventOperationArgs > WillExecuteOperation
 Fired before start to execute an operation More...
 
EventHandler< VisionEventOperationArgs > DidExecuteOperation
 Fired when an operation execution is completed More...
 

Detailed Description

This class is a subclass of OperationExecutionScheduler and overrides the ExecuteOperation method for executing operations synchronously

Constructor & Destructor Documentation

VisionSDK.Operations.Execution.OperationsExecutionSchedulerSync.OperationsExecutionSchedulerSync ( IScheduler  scheduler)

Constructor

Parameters
schedulerThe IScheduler used to execute actions on the right Dispatcher

Member Function Documentation

static OperationsExecutionScheduler VisionSDK.Operations.Execution.OperationsExecutionSchedulerSync.CreateOperationsExecutionScheduler ( IScheduler  scheduler)
static
override void VisionSDK.Operations.Execution.OperationsExecutionSchedulerSync.ExecuteOperation ( Operation  operation)
protectedvirtual

Executes an operation synchronously. It does not execute the operation's completion handler when the operation is executed

Parameters
operationThe operation to execute

Reimplemented from VisionSDK.Operations.Execution.OperationsExecutionScheduler.

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