Skip to main content

InstantSortingStrategyExecutor

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.ObjectCNM_CollectionInterfaces.IInstantSortable

UML Diagram

Parameters

none

Properties

className

Type: CNM_AbstractObject.ClassName

Methods

ascending

This method sorts the data structure immediately in an ascending order.

attachList

descending

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