Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local Cross Tree Constraints #3

Open
gzoumix opened this issue Sep 4, 2024 · 0 comments
Open

local Cross Tree Constraints #3

gzoumix opened this issue Sep 4, 2024 · 0 comments

Comments

@gzoumix
Copy link

gzoumix commented Sep 4, 2024

I work on a industrial tool simulating fluid flow (e.g., air flow on an supersonic airplane).
For this tool, I developed the pydop library, and I would really like to be able to directly use the UVL as input syntax.
However, UVL faces a couple of mostly-cosmetics limitations that my physicists colleagues do no like.
The first one is the fact that the cross-tree constraints are defined globally at the end of the file.
This makes writing and reading the feature model less natural, since the information related to some features are not close by.
Syntactically, local ctc only requires adding an optional new "constraints" block within a feature, at the same level of groups:

features
    root
        optional
            f1
                optional
                    f2
                    f3
                constraints
                    f3 => f2
            f4
                ...

The drawback of such local ctc, as noted by Sebastian Krieter is that it requires some scope analysis to ensures that the features mentioned in a local ctc are declared in the local fm subtree. Then the semantics of such a ctc is simply "if the including feature is selected, then the ctc must be validated", which is quite intuitive, as demonstrated by my physicists colleagues who didn't have any prior knowledge of SPL before our collaboration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant