Click or drag to resize

TreeTraversalService Class

Service providing tree traversal algorithms for InternalElement Trees.
Inheritance Hierarchy
SystemObject
  Aml.Engine.Services.TreeTraversalTreeTraversalService

Namespace: Aml.Engine.Services.TreeTraversal
Assembly: Aml.Engine.Services.TreeTraversal (in Aml.Engine.Services.TreeTraversal.dll) Version: 2.0
Syntax
public class TreeTraversalService : ITreeTraversalService, 
	IAMLService

The TreeTraversalService type exposes the following members.

Constructors
 NameDescription
Public methodTreeTraversalServiceInitializes a new instance of the TreeTraversalService class
Top
Methods
 NameDescription
Public methodBreathFirst(InstanceHierarchyType, PredicateInternalElementType) A BreathFirst Traversal algorithm, which can be used to traverse an InstanceHierarchy tree via foreach (var item in collection){ ... }. A predicate can be specified to restrict the element selection.
Public methodBreathFirst(InternalElementType, PredicateInternalElementType) A BreathFirst Traversal algorithm, which can be used to traverse an InternalElement tree via foreach (var item in collection){ ... }. A predicate can be specified to restrict the element selection.
Public methodDepthFirstPostOrder(InstanceHierarchyType, PredicateInternalElementType) A DepthFirst (Post-Order) Traversal algorithm, which can be used to traverse an InstanceHierarchy tree in post order via foreach (var item in collection){ ... }. A predicate can be specified to restrict the element selection.
Public methodDepthFirstPostOrder(InternalElementType, PredicateInternalElementType) A DepthFirst (Post-Order) Traversal algorithm, which can be used to traverse an InternalElement tree in post order via foreach (var item in collection){ ... }. A predicate can be specified to restrict the element selection.
Public methodDepthFirstPreOrder(IInternalElementContainer, PredicateInternalElementType) A DepthFirst (Pre-Order) Traversal algorithm, which can be used to traverse an InstanceHierarchy tree in pre order via foreach (var item in collection){ ... }. A predicate can be specified to restrict the element selection.
Public methodDepthFirstPreOrder(InternalElementType, PredicateInternalElementType) A DepthFirst (Pre-Order) Traversal algorithm, which can be used to traverse an InternalElement tree in pre order via foreach (var item in collection){ ... }. A predicate can be specified to restrict the element selection.
Public methodStatic memberRegister Registers a new instance of a TreeTraversalService with the ServiceLocator of the AMLEngine.
Public methodStatic memberUnRegister Unregisters this service
Top
Remarks
This implementation is based on http://urosv.blogspot.de/2011/04/iterative-binary-tree-traversal.html C/C++ Blog Post by: Uros Vidojevic and https://github.com/Dirkster99/TreeLib/ published under MIT License. The sourcecode is used as it is. The original NUGET assemblies are signed.
See Also