java.lang.Object
kieker.analysis.generic.sink.graph.AbstractTransformer<O,N,E>
- Type Parameters:
N
- node typeE
- edge typeO
- Output format of the transformation
- All Implemented Interfaces:
IEdgeVisitor<E>
,INodeVisitor<N>
- Direct Known Subclasses:
BlueprintsTransformer
,DotTransformer
,GraphMLTransformer
public abstract class AbstractTransformer<O,N extends INode,E extends IEdge> extends java.lang.Object implements INodeVisitor<N>, IEdgeVisitor<E>
- Since:
- 1.14
- Author:
- Sören Henning
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTransformer(com.google.common.graph.MutableNetwork<N,E> graph, java.lang.String label)
protected
AbstractTransformer(IGraph<N,E> graph)
-
Method Summary
Modifier and Type Method Description protected abstract void
afterTransformation()
protected abstract void
beforeTransformation()
protected abstract O
getTransformation()
O
transform()
protected abstract void
transformEdge(E edge)
protected abstract void
transformVertex(N vertex)
void
visitEdge(E edge)
void
visitNode(N vertex)
Visitor for nodes.
-
Field Details
-
Constructor Details
-
Method Details
-
transform
-
beforeTransformation
protected abstract void beforeTransformation() -
afterTransformation
protected abstract void afterTransformation() -
transformVertex
-
transformEdge
-
getTransformation
-
visitNode
Description copied from interface:INodeVisitor
Visitor for nodes.- Specified by:
visitNode
in interfaceINodeVisitor<O>
- Parameters:
vertex
- node to be visited
-
visitEdge
- Specified by:
visitEdge
in interfaceIEdgeVisitor<O>
- Parameters:
edge
- edge to be visited
-