de.uka.ipd.sdq.featureconfig
Interface ConfigNode

All Known Implementing Classes:
ConfigNodeImpl

public interface ConfigNode

A representation of the model object 'Config Node'. Holds ConfigState of a Feature. For a Feature it holds the actual value.

The following features are supported:

See Also:
featureconfigPackage.getConfigNode()

Method Summary
 ConfigState getConfigState()
          Returns the value of the 'Config State' attribute.
 Feature getOrigin()
          Returns the value of the 'Origin' reference.
 boolean prohibitsFeaturesUnchecked(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if the ProhibitConstraints are valid Checks if a ProhibitsConstraint object with the given ConfigNode as source exists and validates if every prohibited Feature of this Constraint is eliminated
 boolean requiresFeaturesChecked(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if the RequiresConstraints are valid Checks if a RequiresConstraint object with the given ConfigNode as source exists and validates if every required Feature of this Constraint is selected
 void setConfigState(ConfigState value)
          Sets the value of the 'Config State' attribute.
 void setOrigin(Feature value)
          Sets the value of the 'Origin' reference.
 

Method Detail

getOrigin

Feature getOrigin()
Returns the value of the 'Origin' reference.

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

Returns:
the value of the 'Origin' reference.
See Also:
setOrigin(Feature), featureconfigPackage.getConfigNode_Origin()

setOrigin

void setOrigin(Feature value)
Sets the value of the 'Origin' reference.

Parameters:
value - the new value of the 'Origin' reference.
See Also:
getOrigin()

getConfigState

ConfigState getConfigState()
Returns the value of the 'Config State' attribute. The default value is "DEFAULT". The literals are from the enumeration ConfigState. actual state for annotated Features; for FeatureGroups it is a derived attribute

Returns:
the value of the 'Config State' attribute.
See Also:
ConfigState, setConfigState(ConfigState), featureconfigPackage.getConfigNode_ConfigState()

setConfigState

void setConfigState(ConfigState value)
Sets the value of the 'Config State' attribute.

Parameters:
value - the new value of the 'Config State' attribute.
See Also:
ConfigState, getConfigState()

requiresFeaturesChecked

boolean requiresFeaturesChecked(ConfigNode configNode,
                                DiagnosticChain diagnostics,
                                Map<Object,Object> context)
Checks if the RequiresConstraints are valid Checks if a RequiresConstraint object with the given ConfigNode as source exists and validates if every required Feature of this Constraint is selected

Parameters:
configNode - the current ConfigNode object in the validation process
diagnostics - the DiagnosticChain object
context - The context map
Returns:
true if every required Feature is selected, if no RequiredConstraint exists or if the given ConfigNode is not selected false else

prohibitsFeaturesUnchecked

boolean prohibitsFeaturesUnchecked(ConfigNode configNode,
                                   DiagnosticChain diagnostics,
                                   Map<Object,Object> context)
Checks if the ProhibitConstraints are valid Checks if a ProhibitsConstraint object with the given ConfigNode as source exists and validates if every prohibited Feature of this Constraint is eliminated

Parameters:
configNode - the current ConfigNode object in the validation process
diagnostics - the DiagnosticChain object
context - The context map
Returns:
true if every prohibited Feature is eliminated, if no ProhibitsConstraint exists or if the given ConfigNode is not selected false else