public class SequenceDiagramFilter extends AbstractMessageTraceProcessingFilter
Modifier and Type | Class and Description |
---|---|
static class |
SequenceDiagramFilter.SDModes |
IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_OUTPUT_FN_BASE
The name of the configuration determining the used output filename base.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_OUTPUT_SDMODE
The name of the configuration determining the used mode.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_OUTPUT_SHORTLABES
The name of the configuration determining whether to use short labels or not.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_OUTPUT_FN_BASE_DEFAULT
This constant determines the default used output filename base.
|
INPUT_PORT_NAME_MESSAGE_TRACES
CONFIG_PROPERTY_VALUE_VERBOSE, LOG, REPOSITORY_PORT_NAME_SYSTEM_MODEL
CONFIG_NAME, configuration, log, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
SequenceDiagramFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
void |
inputMessageTraces(MessageTrace mt)
This is the (abstract) input port for the incoming message traces.
|
void |
printStatusMessage()
Returns a user-addressed status message to be logged by the calling tool.
|
static void |
writePicForMessageTrace(MessageTrace msgTrace,
SequenceDiagramFilter.SDModes sdMode,
java.lang.String outputFilename,
boolean shortLabels)
This method writes the pic code for the given message trace into the given file.
|
getErrorCount, getLastTraceIdError, getLastTraceIdSuccess, getSuccessCount, getTotalCount, reportError, reportSuccess
createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, getSystemEntityFactory, printDebugLogMessage, printErrorLogMessage
init, terminate
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
public static final java.lang.String CONFIG_PROPERTY_NAME_OUTPUT_FN_BASE
public static final java.lang.String CONFIG_PROPERTY_NAME_OUTPUT_SHORTLABES
public static final java.lang.String CONFIG_PROPERTY_NAME_OUTPUT_SDMODE
public static final java.lang.String CONFIG_PROPERTY_VALUE_OUTPUT_FN_BASE_DEFAULT
public SequenceDiagramFilter(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration to use for this filter.projectContext
- The project context to use for this filter.public void printStatusMessage()
printStatusMessage
in class AbstractTraceProcessingFilter
public void inputMessageTraces(MessageTrace mt)
AbstractMessageTraceProcessingFilter
inputMessageTraces
in class AbstractMessageTraceProcessingFilter
mt
- The incoming message trace.public static void writePicForMessageTrace(MessageTrace msgTrace, SequenceDiagramFilter.SDModes sdMode, java.lang.String outputFilename, boolean shortLabels) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
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.java.io.FileNotFoundException
- If the given file is somehow invalid.java.io.UnsupportedEncodingException
- If the used default encoding is not supported.public Configuration getCurrentConfiguration()
AbstractAnalysisComponent
Configuration
object containing the current configuration of this instance. In other words: The constructor should be
able to use the given object to initialize a new instance of this class with the same intern properties.getCurrentConfiguration
in interface IAnalysisComponent
getCurrentConfiguration
in interface IPlugin
getCurrentConfiguration
in class AbstractTraceAnalysisFilter
Copyright 2017 Kieker Project, http://kieker-monitoring.net