Class SequenceDiagramFilter


public class SequenceDiagramFilter extends AbstractMessageTraceProcessingFilter
Refactored copy from LogAnalysis-legacy tool
This class has exactly one input port named "in". The data which is send to this plugin is not delegated in any way.
Since:
0.95a
Author:
Andre van Hoorn, Nils Sommer, Jan Waller
  • Constructor Details

    • SequenceDiagramFilter

      public SequenceDiagramFilter(SystemModelRepository repository, SequenceDiagramFilter.SDModes sdmode, String outputFnBase, boolean shortLabels)
      Creates a new instance of this class using the given parameters.
      Parameters:
      configuration - The configuration to use for this filter.
      projectContext - The project context to use for this filter.
  • Method Details

    • printStatusMessage

      public void printStatusMessage()
      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>
    • execute

      protected void execute(MessageTrace mt) throws Exception
      Specified by:
      execute in class AbstractMessageTraceProcessingFilter
      Throws:
      Exception
    • writePicForMessageTrace

      public static void writePicForMessageTrace(MessageTrace msgTrace, SequenceDiagramFilter.SDModes sdMode, String outputFilename, boolean shortLabels) throws IOException
      This method writes the pic code for the given message trace into the given file.
      Parameters:
      msgTrace - The message trace to convert.
      sdMode - The mode of the sequence diagram (allocation, assembly).
      shortLabels - Determines whether to use short labels or not.
      outputFilename - The name of the file in which the code will be written.
      Throws:
      IOException - on io errors