InstantSortingStrategyExecutor
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | CNM_AbstractObject.Object | CNM_CollectionInterfaces.IInstantSortable |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
Methods
ascending
- Parameters:
comparator(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.SingleExecutionResult
This method sorts the data structure immediately in an ascending order. …
attachList
- Parameters:
list(IListHelpers)
- Return type:
VOID
descending
- Parameters:
comparator(CNM_AbstractObject.IComparator): the comparator that should be used for the sort. Must not be changed while sort is in process
- Return type: CNM_ReturnTypes.SingleExecutionResult
This method sorts the data structure in a descending 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 InstantSortingStrategyExecutor EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_CollectionInterfaces.IInstantSortable
VAR
usedList :IListHelpers;
END_VAR