Class SaveMultipleResultsAllenMetricSink

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<java.util.Map<java.lang.Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>,​org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>>
kieker.analysis.metrics.graph.entropy.SaveMultipleResultsAllenMetricSink

public class SaveMultipleResultsAllenMetricSink
extends teetime.framework.AbstractConsumerStage<java.util.Map<java.lang.Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>,​org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>>
Save multiple Allen metric result sets into a file. The file is closed the completion of the analysis.
Since:
2.0.0
Author:
Reiner Jung
  • Field Summary

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    SaveMultipleResultsAllenMetricSink​(java.nio.file.Path outputPath, java.lang.String newline, java.lang.String valueSeparator, java.lang.Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>... metrics)
    Create a Allen metric save routine.
  • Method Summary

    Modifier and Type Method Description
    protected void execute​(java.util.Map<java.lang.Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>,​org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric> valueMap)  
    protected void onTerminating()  

    Methods inherited from class teetime.framework.AbstractConsumerStage

    createInputPort, execute, getInputPort

    Methods inherited from class teetime.framework.AbstractStage

    abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SaveMultipleResultsAllenMetricSink

      @SafeVarargs public SaveMultipleResultsAllenMetricSink​(java.nio.file.Path outputPath, java.lang.String newline, java.lang.String valueSeparator, java.lang.Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>... metrics) throws java.io.IOException
      Create a Allen metric save routine.
      Parameters:
      outputPath - path of the output file
      newline - newline string
      valueSeparator - value separator string
      metrics - set of metrics
      Throws:
      java.io.IOException - on io error
  • Method Details

    • execute

      protected void execute​(java.util.Map<java.lang.Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>,​org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric> valueMap) throws java.io.IOException
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<java.util.Map<java.lang.Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>,​org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>>
      Throws:
      java.io.IOException
    • onTerminating

      protected void onTerminating()
      Overrides:
      onTerminating in class teetime.framework.AbstractStage