Class TraceEquivalenceClassFilter
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>
kieker.analysis.architecture.trace.AbstractTraceAnalysisStage<T>
kieker.analysis.architecture.trace.AbstractTraceProcessingStage<ExecutionTrace>
kieker.analysis.architecture.trace.execution.TraceEquivalenceClassFilter
public class TraceEquivalenceClassFilter extends AbstractTraceProcessingStage<ExecutionTrace>
- Since:
- 1.2
- Author:
- Andre van Hoorn, Reiner Jung -- teetime port
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TraceEquivalenceClassFilter.TraceEquivalenceClassModes
This enum represents the different trace equivalence class modes. -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_PROPERTY_NAME_EQUIVALENCE_MODE
This is the name of the property determining the equivalence mode.static TraceEquivalenceClassFilter.TraceEquivalenceClassModes
DEFAULT_EQUIVALENCE_MODE
This constant determines the default equivalence mode (the default value is disabled).static java.lang.String
INPUT_PORT_NAME_EXECUTION_TRACE
This is the name of the input port receiving new execution traces. -
Constructor Summary
Constructors Constructor Description TraceEquivalenceClassFilter(SystemModelRepository systemModelRepository, TraceEquivalenceClassFilter.TraceEquivalenceClassModes equivalenceMode)
Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description protected void
execute(ExecutionTrace et)
This method represents the input port of this filter, processing incoming execution traces.java.util.concurrent.ConcurrentMap<ExecutionTrace,java.lang.Integer>
getEquivalenceClassMap()
teetime.framework.OutputPort<java.util.Map<ExecutionTrace,java.lang.Integer>>
getEquivalenceMapOutputPort()
teetime.framework.OutputPort<ExecutionTrace>
getExecutionTraceOutputPort()
teetime.framework.OutputPort<MessageTrace>
getMessageTraceOutputPort()
protected void
onTerminating()
Methods inherited from class kieker.analysis.architecture.trace.AbstractTraceProcessingStage
getErrorCount, getLastTraceIdError, getLastTraceIdSuccess, getSuccessCount, getTotalCount, printStatusMessage, reportError, reportSuccess
Methods inherited from class kieker.analysis.architecture.trace.AbstractTraceAnalysisStage
createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, getSystemModelRepository, printDebugLogMessage, printErrorLogMessage
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
-
Field Details
-
INPUT_PORT_NAME_EXECUTION_TRACE
public static final java.lang.String INPUT_PORT_NAME_EXECUTION_TRACEThis is the name of the input port receiving new execution traces.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_NAME_EQUIVALENCE_MODE
public static final java.lang.String CONFIG_PROPERTY_NAME_EQUIVALENCE_MODEThis is the name of the property determining the equivalence mode.- See Also:
- Constant Field Values
-
DEFAULT_EQUIVALENCE_MODE
This constant determines the default equivalence mode (the default value is disabled).
-
-
Constructor Details
-
TraceEquivalenceClassFilter
public TraceEquivalenceClassFilter(SystemModelRepository systemModelRepository, TraceEquivalenceClassFilter.TraceEquivalenceClassModes equivalenceMode)Creates a new instance of this class using the given parameters. Keep in mind that the Trace-Equivalence-Class-Mode has to be set via the method setTraceEquivalenceCallMode before using this component!- Parameters:
systemModelRepository
- system model repositoryequivalenceMode
- equivalence mode
-
-
Method Details
-
execute
This method represents the input port of this filter, processing incoming execution traces.- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<ExecutionTrace>
- Parameters:
et
- The next execution trace.- Throws:
java.lang.Exception
-
getEquivalenceClassMap
public java.util.concurrent.ConcurrentMap<ExecutionTrace,java.lang.Integer> getEquivalenceClassMap() -
onTerminating
protected void onTerminating()- Overrides:
onTerminating
in classteetime.framework.AbstractStage
-
getEquivalenceMapOutputPort
public teetime.framework.OutputPort<java.util.Map<ExecutionTrace,java.lang.Integer>> getEquivalenceMapOutputPort() -
getExecutionTraceOutputPort
-
getMessageTraceOutputPort
-