SD2E / opil

The Open Protocol Interface Language (OPIL) is intended as a standard language for protocol interfaces
5 stars 1 forks source link

Does Measurement need required? #129

Open jakebeal opened 3 years ago

jakebeal commented 3 years ago

It seems like the required field in Measurement is not needed, and could be emulated by setting minCount to 1.

jakebeal commented 3 years ago

If we did this, the cardinality on minCount would change from [0..1] to [1]

bbartley commented 3 years ago

Does the latter necessarily follow from the former? I would interpret both of the following as "not required": minCount of 0 or minCount left unspecified

jakebeal commented 3 years ago

You have a point, especially since I just wrote "If \opil{minCount} is not set, it is treated as zero (or one if \opil{required} is true)."

I'm ambivalent about whether to keep or drop required, though. Do you have a strong opinion? My base thought is to leave it as a query for the community.