Skip to main content

insertCollection

Short summary

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

If any value of the collection could not be inserted because of duplication, operation isn't aborted, insertion is tried for every element of the collection.

Return: SUCCESS: if insert could be made ABORTED: execute has a falling edge during insert, BUSY: Insert is in Progress ERROR: the passed collection where not valid / contained invalid Elements IDLE: method was never started

Parameters

NameTypeCommentKind
collectionCNM_CollectionInterfaces.ICollectionThe collection that should be insertedinput
executeBOOLIf insert should be processedinput

Code

Declaration

METHOD insertCollection : CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
(*The collection that should be inserted*)
collection : CNM_CollectionInterfaces.ICollection;
(*If insert should be processed*)
execute : BOOL;
END_VAR

Implementation

insertCollection := THIS^.tree.insertCollection(collection := collection, execute := execute);