Public Member Functions | |
void | setCriterion (String value) |
Package Functions | |
String | getCriterion () |
FeatureConstraint (from FeatureModeling)
Generalizations
EAElement (from Elements)
Description
Captures a constraint on the containing feature model's configuration which is too complex to be expressed by way of a FeatureLink. In general, all constraints that can be expressed by a FeatureLink can also be expressed by a FeatureConstraint, but not vice versa.
Attributes
criterion : String [1]
The actual constraint. This is a logic expression in VSL like the criterion of a ConfigurationDecision. For the constraint to be met this expression always has to evaluate to true.
For example, to express a mutual exclusion of two features, use the expression "! (Radar &
RainSensor)". However, note that this particular constraint could also be formulated as a FeatureLink with type "excludes".
Associations
No additional associations
Constraints
No additional constraints
Semantics
-
String de.fraunhofer.isst.eastadl.featuremodeling.FeatureConstraint.getCriterion | ( | ) | [package] |
Returns the value of the 'Criterion' attribute.
criterion : String [1]
The actual constraint. This is a logic expression in VSL like the criterion of a ConfigurationDecision. For the constraint to be met this expression always has to evaluate to true.
For example, to express a mutual exclusion of two features, use the expression "! (Radar &
RainSensor)". However, note that this particular constraint could also be formulated as a FeatureLink with type "excludes".
Implemented in de.fraunhofer.isst.eastadl.featuremodeling.impl.FeatureConstraintImpl.
void de.fraunhofer.isst.eastadl.featuremodeling.FeatureConstraint.setCriterion | ( | String | value | ) |
Sets the value of the 'Criterion' attribute.
criterion : String [1]
The actual constraint. This is a logic expression in VSL like the criterion of a ConfigurationDecision. For the constraint to be met this expression always has to evaluate to true.
For example, to express a mutual exclusion of two features, use the expression "! (Radar &
RainSensor)". However, note that this particular constraint could also be formulated as a FeatureLink with type "excludes".
value | the new value of the 'Criterion' attribute. |
Implemented in de.fraunhofer.isst.eastadl.featuremodeling.impl.FeatureConstraintImpl.