Skip to content

Commit

Permalink
The exported model doesn't contain all nodes #653
Browse files Browse the repository at this point in the history
- added issue anchors
  • Loading branch information
mpostol committed Mar 19, 2022
1 parent cf577b6 commit a6c7b14
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public void UAReferenceTestMethod()
[TestCategory("Correct Model")]
public void UAObjectTypeTestMethod()
{
//TODO NetworkIdentifier is missing in generated Model Design for DI model #629
//TODO The exported model doesn't contain all nodes #653
FileInfo _testDataFileInfo = new FileInfo(@"CorrectModels\ObjectTypeTest\ObjectTypeTest.NodeSet2.xml");
Assert.IsTrue(_testDataFileInfo.Exists);
List<IUANodeContext> _nodes = ValidateAndExportModelUnitTest(_testDataFileInfo, 85, new UriBuilder("http://cas.eu/UA/CommServer/UnitTests/ObjectTypeTest").Uri);
Expand Down
3 changes: 3 additions & 0 deletions SemanticData/UANodeSetValidation/UANodeContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ void IUANodeBase.CalculateNodeReferences(INodeFactory nodeFactory, IValidator va
IReferenceFactory _or = nodeFactory.NewReference();
_or.IsInverse = !_rfx.IsForward;
_or.ReferenceType = _ReferenceType;
//TODO The exported model doesn't contain all nodes #653
//TODO NetworkIdentifier is missing in generated Model Design for DI model #629
_or.TargetId = _rfx.BrowsePath();
switch (_rfx.TargetNode.UANode.NodeClassEnum)
Expand All @@ -188,6 +189,7 @@ void IUANodeBase.CalculateNodeReferences(INodeFactory nodeFactory, IValidator va
break;

//TODO NetworkIdentifier is missing in generated Model Design for DI model #629
//TODO The exported model doesn't contain all nodes #653
case NodeClassEnum.UAObject:
case NodeClassEnum.UAVariable:
validateExportNode2Model(_rfx.TargetNode);
Expand Down Expand Up @@ -307,6 +309,7 @@ public XmlQualifiedName ExportBrowseNameBaseType(Action<NodeId> traceEvent)
/// </summary>
/// <returns>An instance of <see cref="NodesCollection"/> or null if there is nothing to return</returns>
//TODO NetworkIdentifier is missing in generated Model Design for DI model #629
//TODOD The exported model doesn't contain all nodes #653
public NodesCollection GetDerivedInstances()
{
if (m_InGetDerivedInstances)
Expand Down
1 change: 1 addition & 0 deletions SemanticData/UANodeSetValidation/UAReferenceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ internal ReferenceKindEnum ReferenceKind
/// </summary>
/// <value><c>true</c> if it is child reference; otherwise, <c>false</c>.</value>
//TODO NetworkIdentifier is missing in generated Model Design for DI model #629
//TODO The exported model doesn't contain all nodes #653
internal bool ChildConnector => (ReferenceKind == ReferenceKindEnum.HasProperty) || (ReferenceKind == ReferenceKindEnum.HasComponent);

#endregion semantics
Expand Down
3 changes: 2 additions & 1 deletion SemanticData/UANodeSetValidation/Validator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ private void Update(IVariableInstanceFactory nodeDesign, UAVariable nodeSet, IUA
try
{
Update(nodeDesign, nodeSet, parentReference);
//TODO NetworkIdentifier is missing in generated Model Design for DI model #629 parentReference System.NullReferenceException
//TODO The exported model doesn't contain all nodes #653
//if (nodeContext.IsProperty)
// //TODO NetworkIdentifier is missing in generated Model Design for DI model #629 parentReference System.NullReferenceException
// m_buildErrorsHandling.WriteTraceMessage(TraceMessage.BuildErrorTraceMessage(BuildError.WrongReference2Variable, string.Format("Creating Variable - wrong reference type {0}", parentReference.ReferenceKind.ToString())));
}
catch (Exception _ex)
Expand Down

0 comments on commit a6c7b14

Please sign in to comment.