Skip to main content

TreeStrategyExecutor

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.ObjectCNM_CollectionInterfaces.ITreeStrategy

UML Diagram

Parameters

none

Properties

className

Type: CNM_AbstractObject.ClassName

This abstract property returns the class name of the concrete object,

instant

Type: CNM_CollectionInterfaces.IInstantTreeStrategy

This property returns a fluent interface for immediate (wihtin one call) operations of tree.

Methods

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)
    • tree (ITreeHelper): the tree which this executor will dispatch to
  • Return type: BOOL

The constructor FB_init is needed to create an unique hash code.

insert

A method to insert a single element into the tree.

insertCollection

This method inserts all elements of a collection into the tree.

remove

Function to remove an object from the tree

Code

Declaration

FUNCTION_BLOCK TreeStrategyExecutor EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_CollectionInterfaces.ITreeStrategy
VAR
tree :ITreeHelper;
instantExecutor :InstantTreeStrategyExecutor;
END_VAR