View Issue Details

IDProjectCategoryView StatusLast Update
000830010000-003: Address SpaceSpecpublic2022-10-11 15:39
ReporterWolfgang Mahnke Assigned ToJeff Harding  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.05.02 RC1 
Target Version1.05.02Fixed in Version1.05.02 
Summary0008300: Various issues on OptionSet DataType
Description

we discussed OptionSets based on the OptionSet DataType today and came to several conclusions:

  • The length of the ByteString in the OptionSet shall be for default the number of used bits + the offset to fill full Bytes (e.g. 1 Byte for 3 bits, 2 Bytes for 10 bits).
  • Subtypes of a concrete subtype of OptionSet shall not change the length anymore!
  • The length of an OptionSet can also be defined explicitly by a new defined optional Property on the DataType NodeClass (e.g. OptionSetByteStringLength, which is similar to MaxByteStringLength on Variables, but defines the length always to be used). So each concrete OptionSet DataType has a fixed length. The Property allows defining an OptionSet that may have subtypes with additional bits.
  • As stated currently in the 1.05.02 RC the structure of the structured DataType OptionSet shall never be extended. However, a subtype may add additional bits as long as it does not exceed the length of the ByteString defined in the supertype. In the Subtype, the OptionSetValues shall repeat or refine all entries of the supertype and may add additional entries. A refinement of a bit may be to change from "Pump is off" to "First Pump is Off", but not to something completely different like "motor is on".
TagsNo tags attached.
Commit Version
Fix Due Date

Relationships

related to 0008349 closedRandy Armstrong NodeSets, XSDs and Generated Code Various issues on OptionSet DataType 

Activities

Jeff Harding

2022-09-21 19:41

developer   ~0017762

During Foxboro Face to Face we agreed to fix this for 1.05.02.

Jeff Harding

2022-09-22 20:11

developer   ~0017813

New OptionSetLength standard property added and a detailed description was added to OptionSet DataType which explains the rules related to subtyping OptionSets.

Jim Luth

2022-10-11 15:39

administrator   ~0017986

We reviewed this in a previous meeting.

Issue History

Date Modified Username Field Change
2022-09-06 17:24 Wolfgang Mahnke New Issue
2022-09-06 17:24 Wolfgang Mahnke Status new => assigned
2022-09-06 17:24 Wolfgang Mahnke Assigned To => Jeff Harding
2022-09-21 19:30 Jim Luth Target Version 1.05.02 => 1.05.03 RC1
2022-09-21 19:41 Jeff Harding Note Added: 0017762
2022-09-21 19:41 Jeff Harding Target Version 1.05.03 RC1 => 1.05.02
2022-09-22 20:08 Jim Luth Issue cloned: 0008349
2022-09-22 20:08 Jim Luth Relationship added related to 0008349
2022-09-22 20:11 Jeff Harding Status assigned => resolved
2022-09-22 20:11 Jeff Harding Resolution open => fixed
2022-09-22 20:11 Jeff Harding Fixed in Version => 1.05.02
2022-09-22 20:11 Jeff Harding Note Added: 0017813
2022-10-11 15:39 Jim Luth Status resolved => closed
2022-10-11 15:39 Jim Luth Note Added: 0017986