Skip to main content

SortingStrategyExecutor

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.ObjectCNM_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

This method sorts the data structure.

descending

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