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

Uniqueness of attributes #60

Open
rakhimov opened this issue Feb 2, 2018 · 0 comments
Open

Uniqueness of attributes #60

rakhimov opened this issue Feb 2, 2018 · 0 comments

Comments

@rakhimov
Copy link
Member

rakhimov commented Feb 2, 2018

The current specification for MEF attributes functionality
does not explicitly state whether it allows duplicates or not.
Is it implicitly unique? (like XML attributes or Object attributes/properties)

The situation with duplicates would be complicated
because variables can inherit and override container attributes.

Consider the following example:

<opsa-mef>
  <define-fault-tree name="tree">
    <attributes>
      <attribute name="room" value="42"/>
      <attribute name="room" value="13"/> <!-- Error? -->
    </attributes>

    <define-basic-event name="pump">
      <attributes>
        <attribute name="room" value="66"/>
      </attributes>
    </define-basic-event>
  </define-fault-tree>
</opsa-mef>

If duplicate attributes were allowed,
which 'room' attribute would event 'pump' override? (all of them?)

An analogy for the dilemma can be set vs. multiset.
It is just not clear/explicit what the MEF wants.

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

No branches or pull requests

2 participants
@rakhimov and others