View Issue Details

IDProjectCategoryView StatusLast Update
000225710030: ISA-95Implementation Bugpublic2021-03-03 08:14
ReporterPaul Hunkar Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionreopened 
Summary0002257: Model compiler issue (for ISA-95 information model)
Description

The model compiler does not allow a variable with a data type of structure to be subtyped with an updated datatype of a specific structure. the specific structure is a more specific defintion of a structured and thus should be allowed.

TagsNo tags attached.

Activities

user319

2012-11-12 17:45

  ~0004224

SMG: please estimate and address the topic accordingly

Randy Armstrong

2013-02-21 00:46

administrator   ~0004483

The datatype of auto-generated class fields with Datatype Structure is ExtensionObject. The data type of auto-generated class fields with a sub-type of structure is the model defined datatype.

Sub-typing a variable means the auto-generated class subtype overrides the field declaration with the specific datatype in the subtype. This works nicely if the supertype declares a model defined datatype. It does not work if the supertype defines a field of type ExtensionObject because ExtensionObject is not a base class of the model defined datatype.

Coding a work around would mean classes would look difference depending on whether the original supertype was 'structure' or a 'user defined' data type.

i.e. if the original is a structure there would be no overridden field with the model defined datatype.

Paul Hunkar

2013-02-25 16:24

manager   ~0004491

The specification clearly says that a structure type can be sub typeded to a specific structure. I understand that it may require additional coding, but not fixable is not an anwser.

user319

2013-06-03 17:08

  ~0004710

issue will be addressed in 335

Issue History

Date Modified Username Field Change
2012-11-07 03:16 Paul Hunkar New Issue
2012-11-12 17:45 user319 Note Added: 0004224
2012-11-12 17:45 user319 Assigned To => Randy Armstrong
2012-11-12 17:45 user319 Status new => acknowledged
2013-02-21 00:46 Randy Armstrong Status acknowledged => resolved
2013-02-21 00:46 Randy Armstrong Resolution open => not fixable
2013-02-21 00:46 Randy Armstrong Note Added: 0004483
2013-02-25 16:24 Paul Hunkar Status resolved => feedback
2013-02-25 16:24 Paul Hunkar Resolution not fixable => reopened
2013-02-25 16:24 Paul Hunkar Note Added: 0004491
2013-06-03 17:08 user319 Note Added: 0004710
2013-06-03 17:08 user319 Status feedback => acknowledged
2015-02-18 14:28 Randy Armstrong Category (No Category) => Implementation Bug
2021-03-03 08:14 Randy Armstrong Project NodeSets, XSDs and Generated Code => 10030: ISA-95