View Issue Details

IDProjectCategoryView StatusLast Update
000087610000-003: Address Spacepublic2010-03-16 18:10
ReporterMatthias Damm Assigned ToWolfgang Mahnke  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.02 
Summary0000876: Definition of Enumeration DataType does not allow to assign values
Description

Currently the Enumeration Data Type is defined through the EnumString property which contains a list of enumeration strings and the integer value of a variable is the index to the string array.

This does not allow the assignment of different values like it is needed for the NodeClass enumeration in Part 3 defining values of 1, 2, 4, 8, 16, 32, 64 and 128.

This feature is also needed for information model specifications like PLCopen where the standards or systems allow the assignment of enumeration values to enumeration strings.

I discussed this issue with Randy and our proposal is to define the following additional things:
(a) DataType EnumValueDataType defining a structure with Int32/SymbolicName/DisplayName
(b) Property EnumValues containing an array of EnumValueDataType
(c) An EnumerationDataType can have an EnumString property OR an EnumValue property

  • If EnumValues is present the value is used to look up the string in the list.
  • If EnumStrings is present the value is the index of the string in the list

In addition we should add this property to Part 8 MultiStateDescreteType.

We need also to change the data type of the MultiStateDescreteType from UInteger to Integer to be consistent with Part 3 / 6

TagsNo tags attached.
Commit Version
Fix Due Date2010-03-16

Relationships

related to 0000923 closedKarl Deiretsbacher 10000-008: Data Access add EnumValues property to Part 8 MultiStateDescreteType. 
related to 0000877 closedKarl Deiretsbacher 10000-008: Data Access Enumeration data types are inconsistent 
related to 0000951 closedWolfgang Mahnke 10000-003: Address Space Additional enumeration requirements 
related to 0000982 closedWolfgang Mahnke 10000-005: Information Model Data type for EnumValues 

Activities

Claude Lafond

2009-09-17 15:31

reporter   ~0001439

Why do you say EnumValues OR EnumStrings, are you forbidding having both?
The NodeClass case is a good one where depending of the client use you will went have one or the other. Also EnumValues should be int32 array rather than string, if not why?

Karl Deiretsbacher

2010-01-27 19:43

developer   ~0001504

The EnumValueType - in addition to the numeric value and its name - should also allow to include help text information. EDD based enumerations can provide this.

Wolfgang Mahnke

2010-02-01 16:56

developer   ~0001516

Fixed (most parts) in version 1.02

Open issue: What data type should be used? UInt32 works for Part 3 but Part 8 allows Numbers.

user2

2010-03-16 18:06

  ~0001554

Reviewed and made some final edits in today's meeting.

Issue History

Date Modified Username Field Change
2009-09-16 22:08 Matthias Damm New Issue
2009-09-16 22:13 Matthias Damm Relationship added related to 0000877
2009-09-17 15:31 Claude Lafond Note Added: 0001439
2010-01-12 17:26 user2 Relationship added related to 0000923
2010-01-12 17:38 user2 Status new => assigned
2010-01-12 17:38 user2 Assigned To => Wolfgang Mahnke
2010-01-27 19:40 Karl Deiretsbacher Relationship added related to 0000951
2010-01-27 19:43 Karl Deiretsbacher Note Added: 0001504
2010-02-01 16:56 Wolfgang Mahnke Status assigned => resolved
2010-02-01 16:56 Wolfgang Mahnke Resolution open => fixed
2010-02-01 16:56 Wolfgang Mahnke Note Added: 0001516
2010-03-14 05:53 Wolfgang Mahnke Relationship added related to 0000982
2010-03-16 18:06 user2 Status resolved => closed
2010-03-16 18:06 user2 Note Added: 0001554
2010-03-16 18:06 user2 Fixed in Version => 1.02
2010-03-16 18:10 user2 Fix Due Date => 2010-03-16