IArrayListSorter
Short summary
Interface for sorter of ArrayList classes
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | IListSorter | - |
UML Diagram
Methods
instantInverseSort
- Parameters:
size(UDINT): The size of the list to be sortedcontainer(POINTER TO CNM_AbstractObject.IObject): the container, that contains the list elementscomparator(CNM_AbstractObject.IComparator): the comparator that should be used for the sort. Must not be changed while sort is in processcurrentListVersion(__XWORD): the current version of the list, must change when the data in the list changes
- Return type: CNM_ReturnTypes.SingleExecutionResult
This method sorts the data structure instantly in descending order within one call. …
instantSort
- Parameters:
size(UDINT): The size of the list to be sortedcontainer(POINTER TO CNM_AbstractObject.IObject): the container, that contains the list elementscomparator(CNM_AbstractObject.IComparator): the comparator that should be used for the sort. Must not be changed while sort is in processcurrentListVersion(__XWORD): the current version of the list, must change when the data in the list changes
- Return type: CNM_ReturnTypes.SingleExecutionResult
This method sorts the data structure instantly within one call. …
inverseSort
- Parameters:
currentListVersion(__XWORD): the current version of the list, must change when the data in the list changesexecute(BOOL): control bit to start or abort the inverting, needs to be active until the ExecutionState is noz longer busysize(UDINT): The size of the list to be sortedcontainer(POINTER TO CNM_AbstractObject.IObject): the container, that contains the list elementscomparator(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.SingleExecutionState
This method sorts the ArrayList in the inverse order, from greatest to smallest. …
sort
- Parameters:
execute(BOOL): control bit to start or abort the sortingsize(UDINT): The size of the list to be sortedcontainer(POINTER TO CNM_AbstractObject.IObject): the container, that contains the list elementscomparator(CNM_AbstractObject.IComparator): the comparator that should be used for the sort. Must not be changed while sort is in processcurrentListVersion(__XWORD): the current version of the list, must change when the data in the list changes
- Return type: CNM_ReturnTypes.SingleExecutionState
This method sorts the data structure. …
Code
Declaration
INTERFACE IArrayListSorter EXTENDS IListSorter