Class AbstractFilter
java.lang.Object
org.palladiosimulator.metricspec.metricentity.MetricEntity
org.palladiosimulator.edp2.datastream.AbstractDataSource
org.palladiosimulator.edp2.datastream.filter.AbstractAdapter
org.palladiosimulator.edp2.datastream.filter.AbstractFilter
- All Implemented Interfaces:
IAdaptable
,org.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>
,IPropertyConfigurable
,IFilter
,IDataSink
,IDataSource
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
- Direct Known Subclasses:
ExponentialDecayingFilter
-
Field Summary
Fields inherited from class org.palladiosimulator.edp2.datastream.AbstractDataSource
datasourceChangedListener
-
Constructor Summary
ConstructorDescriptionAbstractFilter
(IDataSource datasource, org.palladiosimulator.metricspec.MetricDescription metricDescription) AbstractFilter
(org.palladiosimulator.metricspec.MetricDescription metricDescription) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAccept
(IDataSource dataSource) Determines whether this instance can handle the given data source.Methods inherited from class org.palladiosimulator.edp2.datastream.filter.AbstractAdapter
computeOutputFromInput, createProperties, getDataSource, getDataStream, getMeasuringPoint, setDataSource, shouldSkip
Methods inherited from class org.palladiosimulator.edp2.datastream.AbstractDataSource
addObserver, getAdapter, getConfiguration, getDefaultConfiguration, getKeys, getProperties, getPropertyType, isPropertyNotSet, removeObserver, setProperties, unsetProperty
Methods inherited from class org.palladiosimulator.metricspec.metricentity.MetricEntity
getMetricDesciption, isCompatibleWith, setMetricDescription
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.commons.designpatterns.IAbstractObservable
addObserver, removeObserver
Methods inherited from interface org.palladiosimulator.edp2.datastream.IDataSink
getDataSource, setDataSource
Methods inherited from interface org.palladiosimulator.edp2.datastream.IDataSource
getConfiguration, getDataStream, getMeasuringPoint
Methods inherited from interface org.palladiosimulator.metricspec.metricentity.IMetricEntity
getMetricDesciption, isCompatibleWith
-
Constructor Details
-
AbstractFilter
public AbstractFilter(IDataSource datasource, org.palladiosimulator.metricspec.MetricDescription metricDescription) -
AbstractFilter
public AbstractFilter(org.palladiosimulator.metricspec.MetricDescription metricDescription)
-
-
Method Details
-
canAccept
Determines whether this instance can handle the given data source.- Specified by:
canAccept
in interfaceIDataSink
- Parameters:
dataSource
- TheIDataSource
to be processed by this instance.- Returns:
false
iff the metric of the given data source is incompatible, otherwisetrue
.- Throws:
IllegalArgumentException
- In casedataSource == null
.IllegalStateException
- In case this instance has not been initialized.- See Also:
-
MetricEntity.isCompatibleWith(MetricDescription)
-