Skip to main content

SetStrategyExecutor

AccessAbstractFinalExtendsImplements
INTERNALNoNoCNM_AbstractObject.ObjectCNM_CollectionInterfaces.ISetStrategy

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.IInstantSetStrategy

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

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

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

getEqualObject

Searches an object that is equal to the provided object in terms of the compareTo method (or a comparator provided by the parent).

intersect

overwrites the content of this set with the intersection of this set and the given set

merge

overwrites the content of this set with the union of this set and the given set

subtract

overwrites the content of this set with the set difference of this set and the given set

Code

Declaration

FUNCTION_BLOCK INTERNAL SetStrategyExecutor EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_CollectionInterfaces.ISetStrategy
VAR
set :ISetHelper;
instantExecutor :InstantSetStrategyExecutor;
END_VAR