public class ForecastingFilter extends AbstractUpdateableFilterPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_DELTA_TIME |
static java.lang.String |
CONFIG_PROPERTY_NAME_DELTA_UNIT |
static java.lang.String |
CONFIG_PROPERTY_NAME_FC_CONFIDENCE |
static java.lang.String |
CONFIG_PROPERTY_NAME_FC_METHOD |
static java.lang.String |
CONFIG_PROPERTY_NAME_TS_WINDOW_CAPACITY |
static java.lang.String |
INPUT_PORT_NAME_TSPOINT |
static java.lang.String |
OUTPUT_PORT_NAME_FORECAST |
static java.lang.String |
OUTPUT_PORT_NAME_FORECASTED_AND_CURRENT |
static java.lang.String |
OUTPUT_PORT_NAME_FORECASTED_AND_MEASURED |
CONFIG_NAME, configuration, log, LOG, projectContext, recordsTimeUnitFromProjectContext| Constructor and Description |
|---|
ForecastingFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
void |
inputEvent(NamedDoubleTimeSeriesPoint input)
Represents the input port for measurements.
|
void |
processInput(NamedDoubleTimeSeriesPoint input,
long timestamp,
java.lang.String name)
Calculating the Forecast and delivers it.
|
void |
setCurrentConfiguration(Configuration config,
boolean update)
Set current configuration.
|
isPropertyUpdateableinit, terminateareAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, 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_TSPOINT
public static final java.lang.String OUTPUT_PORT_NAME_FORECAST
public static final java.lang.String OUTPUT_PORT_NAME_FORECASTED_AND_CURRENT
public static final java.lang.String OUTPUT_PORT_NAME_FORECASTED_AND_MEASURED
public static final java.lang.String CONFIG_PROPERTY_NAME_DELTA_TIME
public static final java.lang.String CONFIG_PROPERTY_NAME_DELTA_UNIT
public static final java.lang.String CONFIG_PROPERTY_NAME_FC_METHOD
public static final java.lang.String CONFIG_PROPERTY_NAME_TS_WINDOW_CAPACITY
public static final java.lang.String CONFIG_PROPERTY_NAME_FC_CONFIDENCE
public ForecastingFilter(Configuration configuration, IProjectContext projectContext)
configuration - Configuration of this componentprojectContext - ProjectContext of this componentpublic 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 setCurrentConfiguration(Configuration config, boolean update)
AbstractUpdateableFilterPlugin
// The following condition is true, if key exists in config object AND (update and isUpdateable is true OR update is false)
if(!update || isPropertyUpdateable(CONFIG_PROPERTY_PROP_NAME)) {
this.localProperty = config.getLongProperty(CONFIG_PROPERTY_PROP_NAME);
}
setCurrentConfiguration in class AbstractUpdateableFilterPluginconfig - Configuration object that contains the configuration to be set.update - If false, set all properties, else overwrite only properties that are marked as updateablepublic void inputEvent(NamedDoubleTimeSeriesPoint input)
input - Incoming measurementspublic void processInput(NamedDoubleTimeSeriesPoint input, long timestamp, java.lang.String name)
input - Incoming measurementtimestamp - Timestamp of the measurementname - Name of the application of the measurementCopyright 2017 Kieker Project, http://kieker-monitoring.net