SortingStrategyExecutor
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | CNM_AbstractObject.Object | CNM_CollectionInterfaces.ISortable |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
instant
Type: CNM_CollectionInterfaces.IInstantSortable
This property returns a fluent interface for immediate sorting operations that will finish wihtin one call.…
Methods
ascending
- Parameters:
execute(BOOL): control bit to start or abort the sorting, needs to be active until the ExecutionState is SUCCESScomparator(CNM_CollectionInterfaces.CNM_AbstractObject.IComparator): Optional: the comparator that should be used for the sort. Must not be changed while sort is in process
- Return type: CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionState
This method sorts the data structure. …
descending
- Parameters:
execute(BOOL): control bit to start or abort the inverting, needs to be active until the ExecutionState is noz longer busycomparator(CNM_CollectionInterfaces.CNM_AbstractObject.IComparator): the comparator that should be used for the sort. Must not be changed while sort is in process
- Return type: CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionState
This method sorts the Sortable in the inverted order, so from great to low…
FB_init
- Parameters:
bInitRetains(BOOL): if TRUE, the retain variables are initialized (warm start / cold start)bInCopyCode(BOOL): if TRUE, the instance afterwards gets moved into the copy code (online change)list(IListHelpers): the list it should be attached to
- Return type:
BOOL
The constructor FB_init is needed to create an unique hash code.…
Code
Declaration
FUNCTION_BLOCK SortingStrategyExecutor EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_CollectionInterfaces.ISortable
VAR
usedList :IListHelpers;
instantStrategy :InstantSortingStrategyExecutor(THIS^.usedList);
END_VAR