G - The graph that is processed by this filterV - The vertex type of the graphE - The edge type of the graphO - The type of the graph's elements originspublic abstract class AbstractGraphFilter<G extends AbstractGraph<V,E,O>,V extends AbstractVertex<V,E,O>,E extends AbstractEdge<V,E,O>,O> extends AbstractFilterPlugin implements IGraphOutputtingFilter<G>
IPlugin.PluginInputPortReference, IPlugin.STATE| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INPUT_PORT_NAME_GRAPH
The name of the filter's graph input port.
|
CONFIG_NAME, logger, projectContext, recordsTimeUnitFromProjectContextOUTPUT_PORT_NAME_GRAPH| Constructor and Description |
|---|
AbstractGraphFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new filter with the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
protected abstract IOriginRetentionPolicy |
getDesiredOriginRetentionPolicy() |
java.lang.String |
getGraphInputPortName()
Returns the name of the port this filter accepts graphs on.
|
java.lang.String |
getGraphOutputPortName()
Returns the name of the port this filter uses to emit the graph.
|
boolean |
init()
Initiates the start of a component.
|
protected void |
notifyNewIncomingConnection(java.lang.String inputPortName,
AbstractPlugin connectedPlugin,
java.lang.String outputPortName)
Notification method which is called when a new incoming connection to this plugin is established.
|
protected abstract G |
performConcreteGraphProcessing(G graph)
This method encapsulates the concrete graph processing performed by the concrete filters.
|
void |
processGraph(G graph)
Processes the given graph.
|
terminateareAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewOutgoingConnection, shutdown, startgetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getStatepublic static final java.lang.String INPUT_PORT_NAME_GRAPH
public AbstractGraphFilter(Configuration configuration, IProjectContext projectContext)
configuration - The filter configuration to useprojectContext - The project context to use.protected void notifyNewIncomingConnection(java.lang.String inputPortName,
AbstractPlugin connectedPlugin,
java.lang.String outputPortName)
throws AnalysisConfigurationException
AbstractPluginnotifyNewIncomingConnection in class AbstractPlugininputPortName - The input port name to which the connection was establishedconnectedPlugin - The plugin that was connectedoutputPortName - The opposing plugin's output port from which the connection was establishedAnalysisConfigurationException - If an error occurs while processing of this notificationpublic boolean init()
AbstractFilterPlugininit in interface IPlugininit in class AbstractFilterPluginprotected abstract IOriginRetentionPolicy getDesiredOriginRetentionPolicy() throws AnalysisConfigurationException
AnalysisConfigurationExceptionpublic Configuration getCurrentConfiguration()
AbstractAnalysisComponentConfiguration 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 IAnalysisComponentgetCurrentConfiguration in interface IPlugingetCurrentConfiguration in class AbstractAnalysisComponentpublic void processGraph(G graph)
graph - The graph to processpublic java.lang.String getGraphOutputPortName()
getGraphOutputPortName in interface IGraphOutputtingFilter<G extends AbstractGraph<V,E,O>>public java.lang.String getGraphInputPortName()
Copyright 2020 Kieker Project, http://kieker-monitoring.net