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
-
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
-
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.IOExceptionCreate a Allen metric save routine.- Parameters:
outputPath
- path of the output filenewline
- newline stringvalueSeparator
- value separator stringmetrics
- 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 classteetime.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 classteetime.framework.AbstractStage
-