Class AbstractDataSource
java.lang.Object
org.palladiosimulator.metricspec.metricentity.MetricEntity
org.palladiosimulator.edp2.datastream.AbstractDataSource
- All Implemented Interfaces:
IAdaptable,org.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>,IPropertyConfigurable,IDataSource,org.palladiosimulator.metricspec.metricentity.IMetricEntity
- Direct Known Subclasses:
AbstractAdapter,Edp2BasicDataSource,Edp2DataTupleDataSource
public abstract class AbstractDataSource
extends org.palladiosimulator.metricspec.metricentity.MetricEntity
implements IDataSource, IPropertyConfigurable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.palladiosimulator.commons.designpatterns.AbstractObservable<IDataSourceListener> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDataSource(org.palladiosimulator.metricspec.MetricDescription metricDescription) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObserver(IDataSourceListener observer) protected abstract PropertyConfigurablegetAdapter(Class adapter) <G extends IPropertyConfigurable>
GgetKeys()Class<?>getPropertyType(String key) booleanisPropertyNotSet(String key) voidremoveObserver(IDataSourceListener observer) voidsetProperties(Map<String, Object> newProperties) voidunsetProperty(String key) Methods inherited from class org.palladiosimulator.metricspec.metricentity.MetricEntity
getMetricDesciption, isCompatibleWith, setMetricDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.palladiosimulator.edp2.datastream.IDataSource
getDataStream, getMeasuringPointMethods inherited from interface org.palladiosimulator.metricspec.metricentity.IMetricEntity
getMetricDesciption, isCompatibleWith
-
Field Details
-
datasourceChangedListener
protected final org.palladiosimulator.commons.designpatterns.AbstractObservable<IDataSourceListener> datasourceChangedListener
-
-
Constructor Details
-
AbstractDataSource
public AbstractDataSource() -
AbstractDataSource
public AbstractDataSource(org.palladiosimulator.metricspec.MetricDescription metricDescription)
-
-
Method Details
-
createProperties
-
getConfiguration
- Specified by:
getConfigurationin interfaceIDataSource
-
getDefaultConfiguration
- Specified by:
getDefaultConfigurationin interfaceIPropertyConfigurable- Returns:
- See Also:
-
getKeys
- Specified by:
getKeysin interfaceIPropertyConfigurable- Returns:
- See Also:
-
getProperties
- Specified by:
getPropertiesin interfaceIPropertyConfigurable- Returns:
- See Also:
-
setProperties
- Specified by:
setPropertiesin interfaceIPropertyConfigurable- Parameters:
newProperties-- See Also:
-
getAdapter
- Specified by:
getAdapterin interfaceIAdaptable- Parameters:
adapter-- Returns:
- See Also:
-
addObserver
- Specified by:
addObserverin interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>- Parameters:
observer-- See Also:
-
AbstractObservable.addObserver(java.lang.Object)
-
removeObserver
- Specified by:
removeObserverin interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>- Parameters:
observer-- See Also:
-
AbstractObservable.removeObserver(java.lang.Object)
-
getPropertyType
- Specified by:
getPropertyTypein interfaceIPropertyConfigurable
-
isPropertyNotSet
- Specified by:
isPropertyNotSetin interfaceIPropertyConfigurable- Parameters:
key-- Returns:
- See Also:
-
unsetProperty
- Specified by:
unsetPropertyin interfaceIPropertyConfigurable- Parameters:
key-- See Also:
-