<commit_before>---

Copyright 2014 Mentor Graphics Corp.  All Rights Reserved.

---

# dts0101042220 - Referential attribute has wrong value in Variables view
### xtUML Project Implementation Note

1. Abstract
-----------
Referential Attribute value is displayed in Variables views as "Unknown 
Runtime Value" instead of real value. This note describes how to fix it.

2. Document References
----------------------
[1] Issues 182, https://github.com/xtuml/internal/issues/182  
[2] CQ DEI dts0101042220 - Referential attribute has wrong value in Variables view  

3. Background
-------------
None.  

4. Requirements
---------------
4.1 Variables View shall display "not participating" as value for referential 
    attribute if not setup yet, and its value otherwise.

5. Work Required
----------------
5.1 Originally, Referential Attribute value is displayed in Variables views as 
	"Unknown Runtime Value", which is the default value when the code does not 
	a value for the selected variable, this happened because the code
	could not find a Runtime Value instance related with Referential Attribute.
	
	That can be fixed by checking if there is no related RuntimeValue with
	AttributeValue, then query for a Runtime Value instance in AttributeValue
	modelroot with ID which is obtained from AttributeValue::GetRuntimeValue() 
	operation.

6. Implementation Comments
--------------------------
None.

7. Unit Test
------------
7.1 Debug verifier suites must pass.  
7.2 Create new automated test that validate referential attribute value before
    and after setup.

8. Code Changes
---------------
Branch name: 182_dts0101042220_NM

<pre>

< Put the file list here >

</pre>

End
---
<commit_msg>job: #182 Add file change list<commit_after>---

Copyright 2014 Mentor Graphics Corp.  All Rights Reserved.

---

# dts0101042220 - Referential attribute has wrong value in Variables view
### xtUML Project Implementation Note

1. Abstract
-----------
Referential Attribute value is displayed in Variables views as "Unknown 
Runtime Value" instead of the real value. This note describes how to fix it.

2. Document References
----------------------
[1] Issues 182, https://github.com/xtuml/internal/issues/182  
[2] CQ DEI dts0101042220 - Referential attribute has wrong value in Variables view  

3. Background
-------------
None.  

4. Requirements
---------------
4.1 Variables View shall display "not participating" as value for referential 
    attribute if not setup yet, and its value otherwise.

5. Work Required
----------------
5.1 Originally, Referential Attribute value is displayed in Variables views as 
	"Unknown Runtime Value", which is the default value when the code does not 
	a value for the selected variable, this happened because the code
	could not find a Runtime Value instance related with Referential Attribute.
	
	That can be fixed by checking if there is no related RuntimeValue with
	AttributeValue, then query for a Runtime Value instance in AttributeValue
	modelroot with ID which is obtained from AttributeValue::GetRuntimeValue() 
	operation.

6. Implementation Comments
--------------------------
None.

7. Unit Test
------------
7.1 Debug verifier suites must pass.  
7.2 Create new automated test that validate referential attribute value before
    and after setup.

8. Code Changes
---------------
Branch name: 182_dts0101042220_NM

<pre>

com.mentor.nucleus.bp.debug.ui [internal 182_dts0101042220_NM]/src/com/mentor/
    nucleus/bp/debug/ui/model/BPValue.java

com.mentor.nucleus.bp.debug.ui.test [internal 182_dts0101042220_NM]/src/
    VerifierTestSuite2.java
com.mentor.nucleus.bp.debug.ui.test [internal 182_dts0101042220_NM]/src/com/
    mentor/nucleus/bp/debug/test/VariableViewTests.java
com.mentor.nucleus.bp.debug.ui.test [internal 182_dts0101042220_NM]/src/com/
    mentor/nucleus/bp/debug/ui/test/DebugUITestUtilities.java

d



</pre>

End
---

{'fraction_non_alphanumeric': 0.12240184757505773, 'fraction_numerical': 0.04567616114960226, 'mean_word_length': 2.953346855983773, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3313913', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1041, 'n_words': 444}