Class AbstractFilter

java.lang.Object
org.palladiosimulator.metricspec.metricentity.MetricEntity
All Implemented Interfaces:
IAdaptable, org.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>, IPropertyConfigurable, IFilter, IDataSink, IDataSource, org.palladiosimulator.metricspec.metricentity.IMetricEntity
Direct Known Subclasses:
ExponentialDecayingFilter

public abstract class AbstractFilter extends AbstractAdapter implements IFilter
  • Constructor Details

    • AbstractFilter

      public AbstractFilter(IDataSource datasource, org.palladiosimulator.metricspec.MetricDescription metricDescription)
    • AbstractFilter

      public AbstractFilter(org.palladiosimulator.metricspec.MetricDescription metricDescription)
  • Method Details

    • canAccept

      public boolean canAccept(IDataSource dataSource)
      Determines whether this instance can handle the given data source.
      Specified by:
      canAccept in interface IDataSink
      Parameters:
      dataSource - The IDataSource to be processed by this instance.
      Returns:
      false iff the metric of the given data source is incompatible, otherwise true.
      Throws:
      IllegalArgumentException - In case dataSource == null.
      IllegalStateException - In case this instance has not been initialized.
      See Also:
      • MetricEntity.isCompatibleWith(MetricDescription)