de.uka.ipd.sdq.featureconfig
Interface Configuration

All Known Implementing Classes:
ConfigurationImpl

public interface Configuration

A representation of the model object 'Configuration'. External container for default and overrides config

The following features are supported:

See Also:
featureconfigPackage.getConfiguration()

Method Summary
 FeatureConfig getConfigOverrides()
          Returns the value of the 'Config Overrides' containment reference.
 FeatureConfig getDefaultConfig()
          Returns the value of the 'Default Config' containment reference.
 String getName()
          Returns the value of the 'Name' attribute.
 boolean mandatoryFeaturesChecked(Configuration configuration, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if all mandatory Features are selected
 boolean minMaxCorrect(Configuration configuration, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if the the number of selected Feature objects in every FeatureGroup is in the Min:Max range of that group
 void setConfigOverrides(FeatureConfig value)
          Sets the value of the 'Config Overrides' containment reference.
 void setDefaultConfig(FeatureConfig value)
          Sets the value of the 'Default Config' containment reference.
 void setName(String value)
          Sets the value of the 'Name' attribute.
 

Method Detail

getDefaultConfig

FeatureConfig getDefaultConfig()
Returns the value of the 'Default Config' containment reference.

If the meaning of the 'Default Config' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Default Config' containment reference.
See Also:
setDefaultConfig(FeatureConfig), featureconfigPackage.getConfiguration_DefaultConfig()

setDefaultConfig

void setDefaultConfig(FeatureConfig value)
Sets the value of the 'Default Config' containment reference.

Parameters:
value - the new value of the 'Default Config' containment reference.
See Also:
getDefaultConfig()

getConfigOverrides

FeatureConfig getConfigOverrides()
Returns the value of the 'Config Overrides' containment reference.

If the meaning of the 'Config Overrides' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Config Overrides' containment reference.
See Also:
setConfigOverrides(FeatureConfig), featureconfigPackage.getConfiguration_ConfigOverrides()

setConfigOverrides

void setConfigOverrides(FeatureConfig value)
Sets the value of the 'Config Overrides' containment reference.

Parameters:
value - the new value of the 'Config Overrides' containment reference.
See Also:
getConfigOverrides()

getName

String getName()
Returns the value of the 'Name' attribute.

If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Name' attribute.
See Also:
setName(String), featureconfigPackage.getConfiguration_Name()

setName

void setName(String value)
Sets the value of the 'Name' attribute.

Parameters:
value - the new value of the 'Name' attribute.
See Also:
getName()

mandatoryFeaturesChecked

boolean mandatoryFeaturesChecked(Configuration configuration,
                                 DiagnosticChain diagnostics,
                                 Map<Object,Object> context)
Checks if all mandatory Features are selected

Parameters:
configuration - The Configuration object
diagnostics - The DiagnosticChain object for the validation process
context - The context map
Returns:
true if the validation succeeded false else

minMaxCorrect

boolean minMaxCorrect(Configuration configuration,
                      DiagnosticChain diagnostics,
                      Map<Object,Object> context)
Checks if the the number of selected Feature objects in every FeatureGroup is in the Min:Max range of that group

Parameters:
configuration - The Configuration object
diagnostics - The DiagnosticChain object for the validation process
context - The context map
Returns:
true if the validation succeeded false else