View Issue Details

IDProjectCategoryView StatusLast Update
000242710000-003: Address SpaceSpecpublic2014-10-16 14:44
ReporterThomas Kugler Assigned ToMatthias Damm  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Target Version1.03Fixed in Version1.03 
Summary0002427: Use Enumerations for Flags
Description

It would be helpful to use Enumerations for bitmasks.
E.g. it would be practical to use the OpenFileMode Enumeration for the Mode Argument of the Method Open of the FileType - instead of the DataType Byte.
The usage of the Enumerations would be similar to enums in .NET that have the [Flags] attribute.
Proposal: Add a property "Flags" to used for Enumerations (next to EnumStrings and EnumValues)

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Jim Luth

2013-03-19 16:33

administrator   ~0004587

Toolkit vendors can add such flags as a convenience to programmers.

Thomas Kugler

2013-03-20 09:37

reporter   ~0004595

A toolkit vendor can add such flags as a convenience for programmers for known namespaces. But a toolkit vendor cannot add these flags for unknown namespaces. For unknown namespaces you only know the DataType (e.g. UInt8) but you do not know the meaning of each bit.
Currently there is no way to describe bitfields in the information model. The information about the bitfields has to be provided in addition to the nodeset. It would be very helpful to provide this information within the nodeset.
Using the OptionSetType is not an option, since it cannot be used for method arguments or as a field of a structure.

Another proposal: Add a ReferenceType "DefinesFlags". You can add a subtype of a numeric DataType (e.g. UInt8) and add the reference to the Enumeration that describes the flags.

Matthias Damm

2013-04-02 09:27

developer   ~0004616

This issue came up in the BACnet working group.

Thomas just came up with an example from the OPC UA specification. We use bit masks in OPC UA in different places but do not have a way at the moment to expose the information in a machine readable format.

Jim Luth

2013-08-06 17:00

administrator   ~0004904

Matthias Damm will provide a proposal based on the needs of the BACnet w.g.

Matthias Damm

2014-02-13 22:33

developer   ~0005274

A proposal will be posted in the meetings folder for F2F San Ramon
IEC 62541-3 - Address Space Model [Pre-CDV] 1.03.03_MD.doc

See changes to table 11 - new property OptionSetValues
See new data type in chapter 8.41 OptionSet

Jim Luth

2014-10-16 14:44

administrator   ~0005567

Agreed to changes in Carros meeting.

Issue History

Date Modified Username Field Change
2013-03-18 17:09 Thomas Kugler New Issue
2013-03-19 16:33 Jim Luth Status new => closed
2013-03-19 16:33 Jim Luth Note Added: 0004587
2013-03-19 16:33 Jim Luth Resolution open => won't fix
2013-03-20 09:37 Thomas Kugler Status closed => feedback
2013-03-20 09:37 Thomas Kugler Resolution won't fix => reopened
2013-03-20 09:37 Thomas Kugler Note Added: 0004595
2013-04-02 09:27 Matthias Damm Note Added: 0004616
2013-08-06 17:00 Jim Luth Note Added: 0004904
2013-11-19 17:54 Jim Luth Status feedback => assigned
2013-11-19 17:54 Jim Luth Assigned To => Matthias Damm
2014-02-13 22:33 Matthias Damm Status assigned => resolved
2014-02-13 22:33 Matthias Damm Resolution reopened => fixed
2014-02-13 22:33 Matthias Damm Note Added: 0005274
2014-08-26 15:41 Jim Luth Target Version => 1.03
2014-08-27 12:25 Karl Deiretsbacher Category (No Category) => Spec
2014-10-16 14:44 Jim Luth Note Added: 0005567
2014-10-16 14:44 Jim Luth Status resolved => closed
2014-10-16 14:44 Jim Luth Fixed in Version => 1.03