Public Member Functions | Package Functions

de.fraunhofer.isst.eastadl.featuremodeling.FeatureConstraint Interface Reference

List of all members.

Public Member Functions

void setCriterion (String value)

Package Functions

String getCriterion ()

Detailed Description

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
-

Author:
dprenzel

Member Function Documentation

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".

Returns:
the value of the 'Criterion' attribute.
See also:
setCriterion(String)
de.fraunhofer.isst.eastadl.featuremodeling.FeaturemodelPackage.getFeatureConstraint_Criterion() required="true"

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".

Parameters:
value the new value of the 'Criterion' attribute.
See also:
getCriterion()

Implemented in de.fraunhofer.isst.eastadl.featuremodeling.impl.FeatureConstraintImpl.