Class SimpleFileNameMapper<N extends INode,​E extends IEdge>

java.lang.Object
kieker.analysis.generic.graph.mapping.SimpleFileNameMapper<N,​E>
Type Parameters:
N - node type
E - edge type
All Implemented Interfaces:
java.util.function.Function<IGraph<N,​E>,​java.nio.file.Path>

public class SimpleFileNameMapper<N extends INode,​E extends IEdge>
extends java.lang.Object
implements java.util.function.Function<IGraph<N,​E>,​java.nio.file.Path>
This function maps a graph to a file name with a specific pattern. Pattern is defined as: output directory + graph name + file extension
Since:
1.14
Author:
Sören Henning
  • Constructor Summary

    Constructors 
    Constructor Description
    SimpleFileNameMapper​(java.nio.file.Path outputDirectory, java.lang.String fileExtension)
    Create a simple file mapper.
  • Method Summary

    Modifier and Type Method Description
    java.nio.file.Path apply​(IGraph<N,​E> graph)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

    • SimpleFileNameMapper

      public SimpleFileNameMapper​(java.nio.file.Path outputDirectory, java.lang.String fileExtension)
      Create a simple file mapper.
      Parameters:
      outputDirectory - output directory path
      fileExtension - file extension for the graph
  • Method Details

    • apply

      public java.nio.file.Path apply​(IGraph<N,​E> graph)
      Specified by:
      apply in interface java.util.function.Function<N extends INode,​E extends IEdge>