Class SaveMultipleResultsAllenMetricSink
java.lang.Object
teetime.framework.AbstractStage
public class SaveMultipleResultsAllenMetricSink
extends teetime.framework.AbstractConsumerStage<Map<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
inputPortFields inherited from class teetime.framework.AbstractStage
logger -
Constructor Summary
ConstructorsConstructorDescriptionSaveMultipleResultsAllenMetricSink(Path outputPath, String newline, String valueSeparator, Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>... metrics) Create a Allen metric save routine. -
Method Summary
Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPortMethods 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(Path outputPath, String newline, String valueSeparator, Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>... metrics) throws IOException Create a Allen metric save routine.- Parameters:
outputPath- path of the output filenewline- newline stringvalueSeparator- value separator stringmetrics- set of metrics- Throws:
IOException- on io error
-
-
Method Details
-
execute
protected void execute(Map<Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>, org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric> valueMap) throws IOException- Specified by:
executein classteetime.framework.AbstractConsumerStage<Map<Class<? extends org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>,org.mosim.refactorlizar.architecture.evaluation.codemetrics.CodeMetric>> - Throws:
IOException
-
onTerminating
protected void onTerminating()- Overrides:
onTerminatingin classteetime.framework.AbstractStage
-