public interface IdGenerator
GraphMLNode
in the generated graph.
The IdGenerator
is necessary, because due to the nature of Assets.
Let's assume a hierarchy "Region -> Building" should be created and two nodes from different Regions,
but the same building, either two or only one GraphMLNode
must be drawn.
The IdGenerator
allows to consider the hierarchy an GraphMLNode
is added into.
Example:
Modifier and Type | Field and Description |
---|---|
static IdGenerator |
HIERARCHY
The id generated by this generator considers hierarchy by simply concatenating the parent ids with the
currentId (generated by NodeDecorator.getId(Object) ). |
static IdGenerator |
SIMPLE
Does not consider hierarchy.
|
Modifier and Type | Method and Description |
---|---|
String |
generateId(List<Layer> processedLayers,
OnmsNode currentNode,
String currentId) |
static final IdGenerator HIERARCHY
currentId
(generated by NodeDecorator.getId(Object)
).static final IdGenerator SIMPLE
NodeDecorator.getId(Object)
(currentId
).Copyright © 2020. All rights reserved.