View Issue Details

IDProjectCategoryView StatusLast Update
000457910000-003: Address SpaceSpecpublic2020-08-04 16:25
ReporterMarco Giuseppe Salafia Assigned ToJeff Harding  
PrioritynoneSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
Summary0004579: Feature Request: Setting Default value in Variable InstanceDeclaration
Description

Reading the Part 3, it seems that the only way to force a default value for a Variable (wich is component or a property of an Object) inherited by an ObjectType definition, is that the related InstanceDeclaration of the Variable has a VariableType with the Value Attribute containing the Dafault Value.

Why is it not possible setting a Default Value in the Value Attribute of a Variable InstanceDeclaration directly? In this way is much more fast and logic and i am not constrained to create a VariableType (i don't need) just to define a Default Value.

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Jim Luth

2019-06-25 16:24

administrator   ~0010409

Please reference the section in Part 3 where you believe the wording is not clear.

Marco Giuseppe Salafia

2019-06-25 16:38

reporter   ~0010412

In Part 3 - 4.5.2 it says: "A TypeDefinitionNode references instances instead of other TypeDefinitionNodes to allow unique names for several instances of the same type, to define default values and to add References for those instances that are specific to this complex TypeDefinitionNode and not to the TypeDefinitionNode of the instance."
In Part 3 - 5.6.5 it says: "The VariableType NodeClass also defines a set of Attributes that describe the default or initial value of its instance Variables. The Value Attribute represents the default value."

So, is it possible define default values inside instance declaration or should i create a variableType just for that?

Jeff Harding

2020-03-16 21:13

developer   ~0011749

The description in 4.5.2 answers your question. It states that instances referenced in the TypeDefinitionNodes can be used to define default values.

Jim Luth

2020-08-04 16:25

administrator   ~0012659

Agreed to no-fix in telecon.

Issue History

Date Modified Username Field Change
2019-01-08 10:14 Marco Giuseppe Salafia New Issue
2019-06-25 16:24 Jim Luth Assigned To => Jim Luth
2019-06-25 16:24 Jim Luth Status new => feedback
2019-06-25 16:24 Jim Luth Note Added: 0010409
2019-06-25 16:38 Marco Giuseppe Salafia Note Added: 0010412
2019-06-25 16:38 Marco Giuseppe Salafia Status feedback => assigned
2019-06-25 20:08 Jim Luth Status assigned => feedback
2019-06-25 20:09 Jim Luth Assigned To Jim Luth => Jeff Harding
2019-06-25 20:09 Jim Luth Status feedback => assigned
2020-03-16 21:13 Jeff Harding Status assigned => resolved
2020-03-16 21:13 Jeff Harding Resolution open => no change required
2020-03-16 21:13 Jeff Harding Note Added: 0011749
2020-08-04 16:25 Jim Luth Status resolved => closed
2020-08-04 16:25 Jim Luth Note Added: 0012659