Class AbstractAggregatedCallTreeFilter<T>

java.lang.Object
Type Parameters:
T -
Direct Known Subclasses:
AggregatedAllocationComponentOperationCallTreeFilter, AggregatedAssemblyComponentOperationCallTreeFilter

public abstract class AbstractAggregatedCallTreeFilter<T>
extends AbstractCallTreeFilter<T>
This class has exactly one input port named "in". The data which is send to this plugin is not delegated in any way.
Since:
1.1
Author:
Andre van Hoorn
  • Constructor Details

    • AbstractAggregatedCallTreeFilter

      public AbstractAggregatedCallTreeFilter​(SystemModelRepository repository, boolean includeWeights, boolean shortLabels, java.lang.String dotOutputFile)
      Creates a new instance of this class using the given parameters.
      Parameters:
      repository - system model repository
      includeWeights - include weights ingraph
      shortLabels - use short labels
      dotOutputFile - output file name
  • Method Details

    • setRoot

      protected void setRoot​(AbstractAggregatedCallTreeNode<T> root)
      Sets the root of the call tree.
      Parameters:
      root - The new root.
    • saveTreeToDotFile

      public void saveTreeToDotFile() throws java.io.IOException
      This method tries to convert the current tree into the specified file as a valid dot file, which can later be transformed into a visual representation by dot itself.
      Throws:
      java.io.IOException - If something went wrong during the converting.
    • printStatusMessage

      public void printStatusMessage()
      Description copied from class: AbstractTraceProcessingStage
      Returns a user-addressed status message to be logged by the calling tool. Extending classes may override this method but should call the then-inherited method first.
      Overrides:
      printStatusMessage in class AbstractTraceProcessingStage<MessageTrace>
    • onTerminating

      public void onTerminating()
      Saves the call tree to the dot file if error is not true.
      Overrides:
      onTerminating in class teetime.framework.AbstractStage
    • execute

      protected void execute​(MessageTrace trace) throws java.lang.Exception
      Specified by:
      execute in class AbstractMessageTraceProcessingFilter
      Throws:
      java.lang.Exception
    • concreteCreatePair

      protected abstract T concreteCreatePair​(SynchronousCallMessage callMsg)
      HACK. Inheriting classes should implement this method to deliver the actual pair.
      Parameters:
      callMsg - The call message which contains the information necessary to create the pair.
      Returns:
      The actual pair.