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
Modifier and TypeFieldDescriptionprotected final org.palladiosimulator.commons.designpatterns.AbstractObservable<IDataSourceListener>
-
Constructor Summary
ConstructorDescriptionAbstractDataSource
(org.palladiosimulator.metricspec.MetricDescription metricDescription) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(IDataSourceListener observer) protected abstract PropertyConfigurable
getAdapter
(Class adapter) <G extends IPropertyConfigurable>
GgetKeys()
Class<?>
getPropertyType
(String key) boolean
isPropertyNotSet
(String key) void
removeObserver
(IDataSourceListener observer) void
setProperties
(Map<String, Object> newProperties) void
unsetProperty
(String key) 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.edp2.datastream.IDataSource
getDataStream, getMeasuringPoint
Methods 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:
getConfiguration
in interfaceIDataSource
-
getDefaultConfiguration
- Specified by:
getDefaultConfiguration
in interfaceIPropertyConfigurable
- Returns:
- See Also:
-
getKeys
- Specified by:
getKeys
in interfaceIPropertyConfigurable
- Returns:
- See Also:
-
getProperties
- Specified by:
getProperties
in interfaceIPropertyConfigurable
- Returns:
- See Also:
-
setProperties
- Specified by:
setProperties
in interfaceIPropertyConfigurable
- Parameters:
newProperties
-- See Also:
-
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- Parameters:
adapter
-- Returns:
- See Also:
-
addObserver
- Specified by:
addObserver
in interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>
- Parameters:
observer
-- See Also:
-
AbstractObservable.addObserver(java.lang.Object)
-
removeObserver
- Specified by:
removeObserver
in interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>
- Parameters:
observer
-- See Also:
-
AbstractObservable.removeObserver(java.lang.Object)
-
getPropertyType
- Specified by:
getPropertyType
in interfaceIPropertyConfigurable
-
isPropertyNotSet
- Specified by:
isPropertyNotSet
in interfaceIPropertyConfigurable
- Parameters:
key
-- Returns:
- See Also:
-
unsetProperty
- Specified by:
unsetProperty
in interfaceIPropertyConfigurable
- Parameters:
key
-- See Also:
-