| Modifier and Type | Method and Description |
|---|---|
P |
create(List<E> elements,
List<P> paths)
Creates a new path from elements and continuation paths.
|
P |
create(List<E> elements,
P path)
Creates a new path by prepending elements to an existing path.
|
default List<P> |
merge(List<P> paths)
Merge paths to remove redundant path segments.
The returned consolidated paths form a hierarchical graph. |
P create(List<E> elements, List<P> paths)
elements - the elements of the pathpaths - the continuation pathsP create(List<E> elements, P path)
elements - the elements to prependpath - the path to prepend elementsdefault List<P> merge(List<P> paths)
Example:
given:
a1 -- b1 -- c1 -- d1 -- eX
a1 -- b1 -- c1 -- d2
a1 -- b1 -- c2
a1 -- b1 -- c2 -- d3
a1 -- b1 -- c2 -- d3 -- eX
a1 -- b2 -- cX -- dX
a1 -- b2
merged result:
a1 -- b1 -- c1 -- d1 -- eX
| | |
| | -- d2
| |
| -- c2 -- d3 -- eX
|
-- b2 -- cX -- dX
paths - input pathsTentackle - distributed, domain- and model-driven