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
Fields Modifier and Type Field Description protected org.palladiosimulator.commons.designpatterns.AbstractObservable<IDataSourceListener>datasourceChangedListener
-
Constructor Summary
Constructors Constructor Description AbstractDataSource()AbstractDataSource(org.palladiosimulator.metricspec.MetricDescription metricDescription)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddObserver(IDataSourceListener observer)protected abstract PropertyConfigurablecreateProperties()ObjectgetAdapter(Class adapter)<G extends IPropertyConfigurable>
GgetConfiguration()Map<? extends String,? extends Object>getDefaultConfiguration()Set<String>getKeys()Map<String,Object>getProperties()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, 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
-
-
-
-
Field Detail
-
datasourceChangedListener
protected final org.palladiosimulator.commons.designpatterns.AbstractObservable<IDataSourceListener> datasourceChangedListener
-
-
Method Detail
-
createProperties
protected abstract PropertyConfigurable createProperties()
-
getConfiguration
public <G extends IPropertyConfigurable> G getConfiguration()
- Specified by:
getConfigurationin interfaceIDataSource
-
getDefaultConfiguration
public Map<? extends String,? extends Object> getDefaultConfiguration()
- Specified by:
getDefaultConfigurationin interfaceIPropertyConfigurable- Returns:
- See Also:
PropertyConfigurable.getDefaultConfiguration()
-
getKeys
public Set<String> getKeys()
- Specified by:
getKeysin interfaceIPropertyConfigurable- Returns:
- See Also:
PropertyConfigurable.getKeys()
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getPropertiesin interfaceIPropertyConfigurable- Returns:
- See Also:
PropertyConfigurable.getProperties()
-
setProperties
public void setProperties(Map<String,Object> newProperties)
- Specified by:
setPropertiesin interfaceIPropertyConfigurable- Parameters:
newProperties-- See Also:
PropertyConfigurable.setProperties(java.util.Map)
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapterin interfaceIAdaptable- Parameters:
adapter-- Returns:
- See Also:
PropertyConfigurable.getAdapter(java.lang.Class)
-
addObserver
public void addObserver(IDataSourceListener observer)
- Specified by:
addObserverin interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>- Parameters:
observer-- See Also:
AbstractObservable.addObserver(java.lang.Object)
-
removeObserver
public void removeObserver(IDataSourceListener observer)
- Specified by:
removeObserverin interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>- Parameters:
observer-- See Also:
AbstractObservable.removeObserver(java.lang.Object)
-
getPropertyType
public Class<?> getPropertyType(String key)
- Specified by:
getPropertyTypein interfaceIPropertyConfigurable
-
isPropertyNotSet
public boolean isPropertyNotSet(String key)
- Specified by:
isPropertyNotSetin interfaceIPropertyConfigurable- Parameters:
key-- Returns:
- See Also:
PropertyConfigurable.isPropertyNotSet(java.lang.String)
-
unsetProperty
public void unsetProperty(String key)
- Specified by:
unsetPropertyin interfaceIPropertyConfigurable- Parameters:
key-- See Also:
PropertyConfigurable.unsetProperty(java.lang.String)
-
-