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 void
addObserver(IDataSourceListener observer)
protected abstract PropertyConfigurable
createProperties()
Object
getAdapter(Class adapter)
<G extends IPropertyConfigurable>
GgetConfiguration()
Map<? extends String,? extends Object>
getDefaultConfiguration()
Set<String>
getKeys()
Map<String,Object>
getProperties()
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
-
-
-
-
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:
getConfiguration
in interfaceIDataSource
-
getDefaultConfiguration
public Map<? extends String,? extends Object> getDefaultConfiguration()
- Specified by:
getDefaultConfiguration
in interfaceIPropertyConfigurable
- Returns:
- See Also:
PropertyConfigurable.getDefaultConfiguration()
-
getKeys
public Set<String> getKeys()
- Specified by:
getKeys
in interfaceIPropertyConfigurable
- Returns:
- See Also:
PropertyConfigurable.getKeys()
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getProperties
in interfaceIPropertyConfigurable
- Returns:
- See Also:
PropertyConfigurable.getProperties()
-
setProperties
public void setProperties(Map<String,Object> newProperties)
- Specified by:
setProperties
in interfaceIPropertyConfigurable
- Parameters:
newProperties
-- See Also:
PropertyConfigurable.setProperties(java.util.Map)
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interfaceIAdaptable
- Parameters:
adapter
-- Returns:
- See Also:
PropertyConfigurable.getAdapter(java.lang.Class)
-
addObserver
public void addObserver(IDataSourceListener observer)
- Specified by:
addObserver
in interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>
- Parameters:
observer
-- See Also:
AbstractObservable.addObserver(java.lang.Object)
-
removeObserver
public void removeObserver(IDataSourceListener observer)
- Specified by:
removeObserver
in interfaceorg.palladiosimulator.commons.designpatterns.IAbstractObservable<IDataSourceListener>
- Parameters:
observer
-- See Also:
AbstractObservable.removeObserver(java.lang.Object)
-
getPropertyType
public Class<?> getPropertyType(String key)
- Specified by:
getPropertyType
in interfaceIPropertyConfigurable
-
isPropertyNotSet
public boolean isPropertyNotSet(String key)
- Specified by:
isPropertyNotSet
in interfaceIPropertyConfigurable
- Parameters:
key
-- Returns:
- See Also:
PropertyConfigurable.isPropertyNotSet(java.lang.String)
-
unsetProperty
public void unsetProperty(String key)
- Specified by:
unsetProperty
in interfaceIPropertyConfigurable
- Parameters:
key
-- See Also:
PropertyConfigurable.unsetProperty(java.lang.String)
-
-