Skip to main content

IArrayListSorter

Short summary

Interface for sorter of ArrayList classes

AccessAbstractFinalExtendsImplements
-NoNoIListSorter-

UML Diagram

Methods

instantInverseSort

This method sorts the data structure instantly in descending order within one call.

instantSort

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 changes
    • execute (BOOL): control bit to start or abort the inverting, needs to be active until the ExecutionState is noz longer busy
    • size (UDINT): The size of the list to be sorted
    • container (POINTER TO CNM_AbstractObject.IObject): the container, that contains the list elements
    • 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.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 sorting
    • size (UDINT): The size of the list to be sorted
    • container (POINTER TO CNM_AbstractObject.IObject): the container, that contains the list elements
    • comparator (CNM_AbstractObject.IComparator): the comparator that should be used for the sort. Must not be changed while sort is in process
    • currentListVersion (__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