Class TraceEquivalenceClassFilter

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>

public class TraceEquivalenceClassFilter extends AbstractTraceProcessingStage<ExecutionTrace>
Since:
1.2
Author:
Andre van Hoorn, Reiner Jung -- teetime port
  • Field Details

    • INPUT_PORT_NAME_EXECUTION_TRACE

      public static final String INPUT_PORT_NAME_EXECUTION_TRACE
      This is the name of the input port receiving new execution traces.
      See Also:
    • CONFIG_PROPERTY_NAME_EQUIVALENCE_MODE

      public static final String CONFIG_PROPERTY_NAME_EQUIVALENCE_MODE
      This is the name of the property determining the equivalence mode.
      See Also:
    • DEFAULT_EQUIVALENCE_MODE

      public static final TraceEquivalenceClassFilter.TraceEquivalenceClassModes 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 repository
      equivalenceMode - equivalence mode
  • Method Details

    • execute

      protected void execute(ExecutionTrace et) throws Exception
      This method represents the input port of this filter, processing incoming execution traces.
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<ExecutionTrace>
      Parameters:
      et - The next execution trace.
      Throws:
      Exception
    • getEquivalenceClassMap

      public ConcurrentMap<ExecutionTrace,Integer> getEquivalenceClassMap()
    • onTerminating

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

      public teetime.framework.OutputPort<Map<ExecutionTrace,Integer>> getEquivalenceMapOutputPort()
    • getExecutionTraceOutputPort

      public teetime.framework.OutputPort<ExecutionTrace> getExecutionTraceOutputPort()
    • getMessageTraceOutputPort

      public teetime.framework.OutputPort<MessageTrace> getMessageTraceOutputPort()