Class NestedPropertyConfigurableConfiguration

  • All Implemented Interfaces:
    IAdaptable, org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.edp2.datastream.configurable.IPropertyListener>, org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable, org.palladiosimulator.edp2.datastream.configurable.IPropertyListener

    public class NestedPropertyConfigurableConfiguration
    extends org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
    implements org.palladiosimulator.edp2.datastream.configurable.IPropertyListener
    This class allows to combine the setting of multiple IPropertyConfigurable using one dynamic properties map. Currently it is not supported for two nested PropertyConfigurable to declare properties if the same name.
    • Constructor Detail

      • NestedPropertyConfigurableConfiguration

        public NestedPropertyConfigurableConfiguration​(Set<? extends org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable> configurables)
        Instantiates a new nested property configurable configuration.
        Parameters:
        the - set of nested IPropertyConfigurable
    • Method Detail

      • getPropertyType

        public Class<?> getPropertyType​(String key)
        Specified by:
        getPropertyType in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
      • getDefaultConfiguration

        public Map<String,​Object> getDefaultConfiguration()
        Specified by:
        getDefaultConfiguration in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
        Specified by:
        getDefaultConfiguration in class org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
      • getKeys

        public Set<String> getKeys()
        Specified by:
        getKeys in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
        Specified by:
        getKeys in class org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
      • getProperties

        public Map<String,​Object> getProperties()
        Specified by:
        getProperties in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
        Overrides:
        getProperties in class org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
      • setProperties

        public void setProperties​(Map<String,​Object> properties)
        Specified by:
        setProperties in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
        Overrides:
        setProperties in class org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
      • isPropertyNotSet

        public boolean isPropertyNotSet​(String key)
        Specified by:
        isPropertyNotSet in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
        Overrides:
        isPropertyNotSet in class org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
      • unsetProperty

        public void unsetProperty​(String key)
        Specified by:
        unsetProperty in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
        Overrides:
        unsetProperty in class org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
      • getAdapter

        public Object getAdapter​(Class adapter)
        Specified by:
        getAdapter in interface IAdaptable
        Overrides:
        getAdapter in class org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
      • addObserver

        public void addObserver​(org.palladiosimulator.edp2.datastream.configurable.IPropertyListener observer)
        With the current implementation of this PropertyConfigurable it is only possible to be notified on changes applied to this nested configurable. To be notified upon changes made to the nested properties direclty a listener has to be attached to the nested PropertyConfigurable.
        Specified by:
        addObserver in interface org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.edp2.datastream.configurable.IPropertyListener>
        Overrides:
        addObserver in class org.palladiosimulator.commons.designpatterns.AbstractObservable<org.palladiosimulator.edp2.datastream.configurable.IPropertyListener>
      • propertyChanged

        public void propertyChanged​(String key,
                                    Object oldValue,
                                    Object newValue)
        Specified by:
        propertyChanged in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyListener
      • propertyChangeCompleted

        public void propertyChangeCompleted()
        Specified by:
        propertyChangeCompleted in interface org.palladiosimulator.edp2.datastream.configurable.IPropertyListener