00001 00002 // DO NOT EDIT THIS FILE! 00003 // It is automatically generated from opcfoundation.org schemas. 00004 // 00005 00006 #include "standard_address_space_parts.h" 00007 #include <opc/ua/protocol/string_utils.h> 00008 #include <opc/common/addons_core/addon.h> 00009 #include <opc/ua/protocol/strings.h> 00010 #include <opc/ua/protocol/variable_access_level.h> 00011 #include <opc/ua/services/node_management.h> 00012 00013 #include <algorithm> 00014 #include <iostream> 00015 #include <map> 00016 00017 namespace OpcUa 00018 { 00019 void CreateAddressSpacePart10(OpcUa::NodeManagementServices& registry) 00020 { 00021 00022 { 00023 AddNodesItem node; 00024 node.RequestedNewNodeId = ToNodeId("i=2391"); 00025 node.BrowseName = ToQualifiedName("ProgramStateMachineType"); 00026 node.Class = NodeClass::ObjectType; 00027 node.ParentNodeId = ToNodeId("i=2771"); 00028 node.ReferenceTypeId = ReferenceId::HasSubtype; 00029 ObjectTypeAttributes attrs; 00030 attrs.Description = LocalizedText("A state machine for a program."); 00031 attrs.DisplayName = LocalizedText("ProgramStateMachineType"); 00032 attrs.IsAbstract = false; 00033 node.Attributes = attrs; 00034 registry.AddNodes(std::vector<AddNodesItem>{node}); 00035 std::vector<AddReferencesItem> refs; 00036 { 00037 AddReferencesItem ref; 00038 ref.IsForward = true; 00039 ref.ReferenceTypeId = ReferenceId::HasComponent; 00040 ref.SourceNodeId = ToNodeId("i=2391"); 00041 ref.TargetNodeClass = NodeClass::DataType; 00042 ref.TargetNodeId = ToNodeId("i=3830"); 00043 refs.push_back(ref); 00044 } 00045 { 00046 AddReferencesItem ref; 00047 ref.IsForward = true; 00048 ref.ReferenceTypeId = ReferenceId::HasComponent; 00049 ref.SourceNodeId = ToNodeId("i=2391"); 00050 ref.TargetNodeClass = NodeClass::DataType; 00051 ref.TargetNodeId = ToNodeId("i=3835"); 00052 refs.push_back(ref); 00053 } 00054 { 00055 AddReferencesItem ref; 00056 ref.IsForward = true; 00057 ref.ReferenceTypeId = ReferenceId::HasProperty; 00058 ref.SourceNodeId = ToNodeId("i=2391"); 00059 ref.TargetNodeClass = NodeClass::DataType; 00060 ref.TargetNodeId = ToNodeId("i=2392"); 00061 refs.push_back(ref); 00062 } 00063 { 00064 AddReferencesItem ref; 00065 ref.IsForward = true; 00066 ref.ReferenceTypeId = ReferenceId::HasProperty; 00067 ref.SourceNodeId = ToNodeId("i=2391"); 00068 ref.TargetNodeClass = NodeClass::DataType; 00069 ref.TargetNodeId = ToNodeId("i=2393"); 00070 refs.push_back(ref); 00071 } 00072 { 00073 AddReferencesItem ref; 00074 ref.IsForward = true; 00075 ref.ReferenceTypeId = ReferenceId::HasProperty; 00076 ref.SourceNodeId = ToNodeId("i=2391"); 00077 ref.TargetNodeClass = NodeClass::DataType; 00078 ref.TargetNodeId = ToNodeId("i=2394"); 00079 refs.push_back(ref); 00080 } 00081 { 00082 AddReferencesItem ref; 00083 ref.IsForward = true; 00084 ref.ReferenceTypeId = ReferenceId::HasProperty; 00085 ref.SourceNodeId = ToNodeId("i=2391"); 00086 ref.TargetNodeClass = NodeClass::DataType; 00087 ref.TargetNodeId = ToNodeId("i=2395"); 00088 refs.push_back(ref); 00089 } 00090 { 00091 AddReferencesItem ref; 00092 ref.IsForward = true; 00093 ref.ReferenceTypeId = ReferenceId::HasProperty; 00094 ref.SourceNodeId = ToNodeId("i=2391"); 00095 ref.TargetNodeClass = NodeClass::DataType; 00096 ref.TargetNodeId = ToNodeId("i=2396"); 00097 refs.push_back(ref); 00098 } 00099 { 00100 AddReferencesItem ref; 00101 ref.IsForward = true; 00102 ref.ReferenceTypeId = ReferenceId::HasProperty; 00103 ref.SourceNodeId = ToNodeId("i=2391"); 00104 ref.TargetNodeClass = NodeClass::DataType; 00105 ref.TargetNodeId = ToNodeId("i=2397"); 00106 refs.push_back(ref); 00107 } 00108 { 00109 AddReferencesItem ref; 00110 ref.IsForward = true; 00111 ref.ReferenceTypeId = ReferenceId::HasProperty; 00112 ref.SourceNodeId = ToNodeId("i=2391"); 00113 ref.TargetNodeClass = NodeClass::DataType; 00114 ref.TargetNodeId = ToNodeId("i=2398"); 00115 refs.push_back(ref); 00116 } 00117 { 00118 AddReferencesItem ref; 00119 ref.IsForward = true; 00120 ref.ReferenceTypeId = ReferenceId::HasComponent; 00121 ref.SourceNodeId = ToNodeId("i=2391"); 00122 ref.TargetNodeClass = NodeClass::DataType; 00123 ref.TargetNodeId = ToNodeId("i=2399"); 00124 refs.push_back(ref); 00125 } 00126 { 00127 AddReferencesItem ref; 00128 ref.IsForward = true; 00129 ref.ReferenceTypeId = ReferenceId::HasComponent; 00130 ref.SourceNodeId = ToNodeId("i=2391"); 00131 ref.TargetNodeClass = NodeClass::DataType; 00132 ref.TargetNodeId = ToNodeId("i=3850"); 00133 refs.push_back(ref); 00134 } 00135 { 00136 AddReferencesItem ref; 00137 ref.IsForward = true; 00138 ref.ReferenceTypeId = ReferenceId::HasComponent; 00139 ref.SourceNodeId = ToNodeId("i=2391"); 00140 ref.TargetNodeClass = NodeClass::DataType; 00141 ref.TargetNodeId = ToNodeId("i=2400"); 00142 refs.push_back(ref); 00143 } 00144 { 00145 AddReferencesItem ref; 00146 ref.IsForward = true; 00147 ref.ReferenceTypeId = ReferenceId::HasComponent; 00148 ref.SourceNodeId = ToNodeId("i=2391"); 00149 ref.TargetNodeClass = NodeClass::DataType; 00150 ref.TargetNodeId = ToNodeId("i=2402"); 00151 refs.push_back(ref); 00152 } 00153 { 00154 AddReferencesItem ref; 00155 ref.IsForward = true; 00156 ref.ReferenceTypeId = ReferenceId::HasComponent; 00157 ref.SourceNodeId = ToNodeId("i=2391"); 00158 ref.TargetNodeClass = NodeClass::DataType; 00159 ref.TargetNodeId = ToNodeId("i=2404"); 00160 refs.push_back(ref); 00161 } 00162 { 00163 AddReferencesItem ref; 00164 ref.IsForward = true; 00165 ref.ReferenceTypeId = ReferenceId::HasComponent; 00166 ref.SourceNodeId = ToNodeId("i=2391"); 00167 ref.TargetNodeClass = NodeClass::DataType; 00168 ref.TargetNodeId = ToNodeId("i=2406"); 00169 refs.push_back(ref); 00170 } 00171 { 00172 AddReferencesItem ref; 00173 ref.IsForward = true; 00174 ref.ReferenceTypeId = ReferenceId::HasComponent; 00175 ref.SourceNodeId = ToNodeId("i=2391"); 00176 ref.TargetNodeClass = NodeClass::DataType; 00177 ref.TargetNodeId = ToNodeId("i=2408"); 00178 refs.push_back(ref); 00179 } 00180 { 00181 AddReferencesItem ref; 00182 ref.IsForward = true; 00183 ref.ReferenceTypeId = ReferenceId::HasComponent; 00184 ref.SourceNodeId = ToNodeId("i=2391"); 00185 ref.TargetNodeClass = NodeClass::DataType; 00186 ref.TargetNodeId = ToNodeId("i=2410"); 00187 refs.push_back(ref); 00188 } 00189 { 00190 AddReferencesItem ref; 00191 ref.IsForward = true; 00192 ref.ReferenceTypeId = ReferenceId::HasComponent; 00193 ref.SourceNodeId = ToNodeId("i=2391"); 00194 ref.TargetNodeClass = NodeClass::DataType; 00195 ref.TargetNodeId = ToNodeId("i=2412"); 00196 refs.push_back(ref); 00197 } 00198 { 00199 AddReferencesItem ref; 00200 ref.IsForward = true; 00201 ref.ReferenceTypeId = ReferenceId::HasComponent; 00202 ref.SourceNodeId = ToNodeId("i=2391"); 00203 ref.TargetNodeClass = NodeClass::DataType; 00204 ref.TargetNodeId = ToNodeId("i=2414"); 00205 refs.push_back(ref); 00206 } 00207 { 00208 AddReferencesItem ref; 00209 ref.IsForward = true; 00210 ref.ReferenceTypeId = ReferenceId::HasComponent; 00211 ref.SourceNodeId = ToNodeId("i=2391"); 00212 ref.TargetNodeClass = NodeClass::DataType; 00213 ref.TargetNodeId = ToNodeId("i=2416"); 00214 refs.push_back(ref); 00215 } 00216 { 00217 AddReferencesItem ref; 00218 ref.IsForward = true; 00219 ref.ReferenceTypeId = ReferenceId::HasComponent; 00220 ref.SourceNodeId = ToNodeId("i=2391"); 00221 ref.TargetNodeClass = NodeClass::DataType; 00222 ref.TargetNodeId = ToNodeId("i=2418"); 00223 refs.push_back(ref); 00224 } 00225 { 00226 AddReferencesItem ref; 00227 ref.IsForward = true; 00228 ref.ReferenceTypeId = ReferenceId::HasComponent; 00229 ref.SourceNodeId = ToNodeId("i=2391"); 00230 ref.TargetNodeClass = NodeClass::DataType; 00231 ref.TargetNodeId = ToNodeId("i=2420"); 00232 refs.push_back(ref); 00233 } 00234 { 00235 AddReferencesItem ref; 00236 ref.IsForward = true; 00237 ref.ReferenceTypeId = ReferenceId::HasComponent; 00238 ref.SourceNodeId = ToNodeId("i=2391"); 00239 ref.TargetNodeClass = NodeClass::DataType; 00240 ref.TargetNodeId = ToNodeId("i=2422"); 00241 refs.push_back(ref); 00242 } 00243 { 00244 AddReferencesItem ref; 00245 ref.IsForward = true; 00246 ref.ReferenceTypeId = ReferenceId::HasComponent; 00247 ref.SourceNodeId = ToNodeId("i=2391"); 00248 ref.TargetNodeClass = NodeClass::DataType; 00249 ref.TargetNodeId = ToNodeId("i=2424"); 00250 refs.push_back(ref); 00251 } 00252 { 00253 AddReferencesItem ref; 00254 ref.IsForward = true; 00255 ref.ReferenceTypeId = ReferenceId::HasComponent; 00256 ref.SourceNodeId = ToNodeId("i=2391"); 00257 ref.TargetNodeClass = NodeClass::DataType; 00258 ref.TargetNodeId = ToNodeId("i=2426"); 00259 refs.push_back(ref); 00260 } 00261 { 00262 AddReferencesItem ref; 00263 ref.IsForward = true; 00264 ref.ReferenceTypeId = ReferenceId::HasComponent; 00265 ref.SourceNodeId = ToNodeId("i=2391"); 00266 ref.TargetNodeClass = NodeClass::DataType; 00267 ref.TargetNodeId = ToNodeId("i=2427"); 00268 refs.push_back(ref); 00269 } 00270 { 00271 AddReferencesItem ref; 00272 ref.IsForward = true; 00273 ref.ReferenceTypeId = ReferenceId::HasComponent; 00274 ref.SourceNodeId = ToNodeId("i=2391"); 00275 ref.TargetNodeClass = NodeClass::DataType; 00276 ref.TargetNodeId = ToNodeId("i=2428"); 00277 refs.push_back(ref); 00278 } 00279 { 00280 AddReferencesItem ref; 00281 ref.IsForward = true; 00282 ref.ReferenceTypeId = ReferenceId::HasComponent; 00283 ref.SourceNodeId = ToNodeId("i=2391"); 00284 ref.TargetNodeClass = NodeClass::DataType; 00285 ref.TargetNodeId = ToNodeId("i=2429"); 00286 refs.push_back(ref); 00287 } 00288 { 00289 AddReferencesItem ref; 00290 ref.IsForward = true; 00291 ref.ReferenceTypeId = ReferenceId::HasComponent; 00292 ref.SourceNodeId = ToNodeId("i=2391"); 00293 ref.TargetNodeClass = NodeClass::DataType; 00294 ref.TargetNodeId = ToNodeId("i=2430"); 00295 refs.push_back(ref); 00296 } 00297 registry.AddReferences(refs); 00298 } 00299 00300 { 00301 AddNodesItem node; 00302 node.RequestedNewNodeId = ToNodeId("i=3830"); 00303 node.BrowseName = ToQualifiedName("CurrentState"); 00304 node.Class = NodeClass::Variable; 00305 node.ParentNodeId = ToNodeId("i=2391"); 00306 node.ReferenceTypeId = ReferenceId::HasComponent; 00307 node.TypeDefinition = ToNodeId("i=2760"); 00308 VariableAttributes attrs; 00309 attrs.DisplayName = LocalizedText("CurrentState"); 00310 attrs.Type = ObjectId::LocalizedText; 00311 attrs.Rank = -1; 00312 node.Attributes = attrs; 00313 registry.AddNodes(std::vector<AddNodesItem>{node}); 00314 std::vector<AddReferencesItem> refs; 00315 { 00316 AddReferencesItem ref; 00317 ref.IsForward = true; 00318 ref.ReferenceTypeId = ReferenceId::HasProperty; 00319 ref.SourceNodeId = ToNodeId("i=3830"); 00320 ref.TargetNodeClass = NodeClass::DataType; 00321 ref.TargetNodeId = ToNodeId("i=3831"); 00322 refs.push_back(ref); 00323 } 00324 { 00325 AddReferencesItem ref; 00326 ref.IsForward = true; 00327 ref.ReferenceTypeId = ReferenceId::HasProperty; 00328 ref.SourceNodeId = ToNodeId("i=3830"); 00329 ref.TargetNodeClass = NodeClass::DataType; 00330 ref.TargetNodeId = ToNodeId("i=3833"); 00331 refs.push_back(ref); 00332 } 00333 { 00334 AddReferencesItem ref; 00335 ref.IsForward = true; 00336 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00337 ref.SourceNodeId = ToNodeId("i=3830"); 00338 ref.TargetNodeClass = NodeClass::DataType; 00339 ref.TargetNodeId = ToNodeId("i=78"); 00340 refs.push_back(ref); 00341 } 00342 registry.AddReferences(refs); 00343 } 00344 00345 { 00346 AddNodesItem node; 00347 node.RequestedNewNodeId = ToNodeId("i=3831"); 00348 node.BrowseName = ToQualifiedName("Id"); 00349 node.Class = NodeClass::Variable; 00350 node.ParentNodeId = ToNodeId("i=3830"); 00351 node.ReferenceTypeId = ReferenceId::HasProperty; 00352 node.TypeDefinition = ToNodeId("i=68"); 00353 VariableAttributes attrs; 00354 attrs.DisplayName = LocalizedText("Id"); 00355 attrs.Type = ObjectId::NodeId; 00356 attrs.Rank = -1; 00357 node.Attributes = attrs; 00358 registry.AddNodes(std::vector<AddNodesItem>{node}); 00359 std::vector<AddReferencesItem> refs; 00360 { 00361 AddReferencesItem ref; 00362 ref.IsForward = true; 00363 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00364 ref.SourceNodeId = ToNodeId("i=3831"); 00365 ref.TargetNodeClass = NodeClass::DataType; 00366 ref.TargetNodeId = ToNodeId("i=78"); 00367 refs.push_back(ref); 00368 } 00369 registry.AddReferences(refs); 00370 } 00371 00372 { 00373 AddNodesItem node; 00374 node.RequestedNewNodeId = ToNodeId("i=3833"); 00375 node.BrowseName = ToQualifiedName("Number"); 00376 node.Class = NodeClass::Variable; 00377 node.ParentNodeId = ToNodeId("i=3830"); 00378 node.ReferenceTypeId = ReferenceId::HasProperty; 00379 node.TypeDefinition = ToNodeId("i=68"); 00380 VariableAttributes attrs; 00381 attrs.DisplayName = LocalizedText("Number"); 00382 attrs.Type = ObjectId::UInt32; 00383 attrs.Rank = -1; 00384 node.Attributes = attrs; 00385 registry.AddNodes(std::vector<AddNodesItem>{node}); 00386 std::vector<AddReferencesItem> refs; 00387 { 00388 AddReferencesItem ref; 00389 ref.IsForward = true; 00390 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00391 ref.SourceNodeId = ToNodeId("i=3833"); 00392 ref.TargetNodeClass = NodeClass::DataType; 00393 ref.TargetNodeId = ToNodeId("i=78"); 00394 refs.push_back(ref); 00395 } 00396 registry.AddReferences(refs); 00397 } 00398 00399 { 00400 AddNodesItem node; 00401 node.RequestedNewNodeId = ToNodeId("i=3835"); 00402 node.BrowseName = ToQualifiedName("LastTransition"); 00403 node.Class = NodeClass::Variable; 00404 node.ParentNodeId = ToNodeId("i=2391"); 00405 node.ReferenceTypeId = ReferenceId::HasComponent; 00406 node.TypeDefinition = ToNodeId("i=2767"); 00407 VariableAttributes attrs; 00408 attrs.DisplayName = LocalizedText("LastTransition"); 00409 attrs.Type = ObjectId::LocalizedText; 00410 attrs.Rank = -1; 00411 node.Attributes = attrs; 00412 registry.AddNodes(std::vector<AddNodesItem>{node}); 00413 std::vector<AddReferencesItem> refs; 00414 { 00415 AddReferencesItem ref; 00416 ref.IsForward = true; 00417 ref.ReferenceTypeId = ReferenceId::HasProperty; 00418 ref.SourceNodeId = ToNodeId("i=3835"); 00419 ref.TargetNodeClass = NodeClass::DataType; 00420 ref.TargetNodeId = ToNodeId("i=3836"); 00421 refs.push_back(ref); 00422 } 00423 { 00424 AddReferencesItem ref; 00425 ref.IsForward = true; 00426 ref.ReferenceTypeId = ReferenceId::HasProperty; 00427 ref.SourceNodeId = ToNodeId("i=3835"); 00428 ref.TargetNodeClass = NodeClass::DataType; 00429 ref.TargetNodeId = ToNodeId("i=3838"); 00430 refs.push_back(ref); 00431 } 00432 { 00433 AddReferencesItem ref; 00434 ref.IsForward = true; 00435 ref.ReferenceTypeId = ReferenceId::HasProperty; 00436 ref.SourceNodeId = ToNodeId("i=3835"); 00437 ref.TargetNodeClass = NodeClass::DataType; 00438 ref.TargetNodeId = ToNodeId("i=3839"); 00439 refs.push_back(ref); 00440 } 00441 { 00442 AddReferencesItem ref; 00443 ref.IsForward = true; 00444 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00445 ref.SourceNodeId = ToNodeId("i=3835"); 00446 ref.TargetNodeClass = NodeClass::DataType; 00447 ref.TargetNodeId = ToNodeId("i=78"); 00448 refs.push_back(ref); 00449 } 00450 registry.AddReferences(refs); 00451 } 00452 00453 { 00454 AddNodesItem node; 00455 node.RequestedNewNodeId = ToNodeId("i=3836"); 00456 node.BrowseName = ToQualifiedName("Id"); 00457 node.Class = NodeClass::Variable; 00458 node.ParentNodeId = ToNodeId("i=3835"); 00459 node.ReferenceTypeId = ReferenceId::HasProperty; 00460 node.TypeDefinition = ToNodeId("i=68"); 00461 VariableAttributes attrs; 00462 attrs.DisplayName = LocalizedText("Id"); 00463 attrs.Type = ObjectId::NodeId; 00464 attrs.Rank = -1; 00465 node.Attributes = attrs; 00466 registry.AddNodes(std::vector<AddNodesItem>{node}); 00467 std::vector<AddReferencesItem> refs; 00468 { 00469 AddReferencesItem ref; 00470 ref.IsForward = true; 00471 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00472 ref.SourceNodeId = ToNodeId("i=3836"); 00473 ref.TargetNodeClass = NodeClass::DataType; 00474 ref.TargetNodeId = ToNodeId("i=78"); 00475 refs.push_back(ref); 00476 } 00477 registry.AddReferences(refs); 00478 } 00479 00480 { 00481 AddNodesItem node; 00482 node.RequestedNewNodeId = ToNodeId("i=3838"); 00483 node.BrowseName = ToQualifiedName("Number"); 00484 node.Class = NodeClass::Variable; 00485 node.ParentNodeId = ToNodeId("i=3835"); 00486 node.ReferenceTypeId = ReferenceId::HasProperty; 00487 node.TypeDefinition = ToNodeId("i=68"); 00488 VariableAttributes attrs; 00489 attrs.DisplayName = LocalizedText("Number"); 00490 attrs.Type = ObjectId::UInt32; 00491 attrs.Rank = -1; 00492 node.Attributes = attrs; 00493 registry.AddNodes(std::vector<AddNodesItem>{node}); 00494 std::vector<AddReferencesItem> refs; 00495 { 00496 AddReferencesItem ref; 00497 ref.IsForward = true; 00498 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00499 ref.SourceNodeId = ToNodeId("i=3838"); 00500 ref.TargetNodeClass = NodeClass::DataType; 00501 ref.TargetNodeId = ToNodeId("i=78"); 00502 refs.push_back(ref); 00503 } 00504 registry.AddReferences(refs); 00505 } 00506 00507 { 00508 AddNodesItem node; 00509 node.RequestedNewNodeId = ToNodeId("i=3839"); 00510 node.BrowseName = ToQualifiedName("TransitionTime"); 00511 node.Class = NodeClass::Variable; 00512 node.ParentNodeId = ToNodeId("i=3835"); 00513 node.ReferenceTypeId = ReferenceId::HasProperty; 00514 node.TypeDefinition = ToNodeId("i=68"); 00515 VariableAttributes attrs; 00516 attrs.DisplayName = LocalizedText("TransitionTime"); 00517 attrs.Type = ToNodeId("i=294"); 00518 attrs.Rank = -1; 00519 node.Attributes = attrs; 00520 registry.AddNodes(std::vector<AddNodesItem>{node}); 00521 std::vector<AddReferencesItem> refs; 00522 { 00523 AddReferencesItem ref; 00524 ref.IsForward = true; 00525 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00526 ref.SourceNodeId = ToNodeId("i=3839"); 00527 ref.TargetNodeClass = NodeClass::DataType; 00528 ref.TargetNodeId = ToNodeId("i=78"); 00529 refs.push_back(ref); 00530 } 00531 registry.AddReferences(refs); 00532 } 00533 00534 { 00535 AddNodesItem node; 00536 node.RequestedNewNodeId = ToNodeId("i=2392"); 00537 node.BrowseName = ToQualifiedName("Creatable"); 00538 node.Class = NodeClass::Variable; 00539 node.ParentNodeId = ToNodeId("i=2391"); 00540 node.ReferenceTypeId = ReferenceId::HasProperty; 00541 node.TypeDefinition = ToNodeId("i=68"); 00542 VariableAttributes attrs; 00543 attrs.DisplayName = LocalizedText("Creatable"); 00544 attrs.Type = ObjectId::Boolean; 00545 attrs.Rank = -1; 00546 node.Attributes = attrs; 00547 registry.AddNodes(std::vector<AddNodesItem>{node}); 00548 } 00549 00550 { 00551 AddNodesItem node; 00552 node.RequestedNewNodeId = ToNodeId("i=2393"); 00553 node.BrowseName = ToQualifiedName("Deletable"); 00554 node.Class = NodeClass::Variable; 00555 node.ParentNodeId = ToNodeId("i=2391"); 00556 node.ReferenceTypeId = ReferenceId::HasProperty; 00557 node.TypeDefinition = ToNodeId("i=68"); 00558 VariableAttributes attrs; 00559 attrs.DisplayName = LocalizedText("Deletable"); 00560 attrs.Type = ObjectId::Boolean; 00561 attrs.Rank = -1; 00562 node.Attributes = attrs; 00563 registry.AddNodes(std::vector<AddNodesItem>{node}); 00564 std::vector<AddReferencesItem> refs; 00565 { 00566 AddReferencesItem ref; 00567 ref.IsForward = true; 00568 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00569 ref.SourceNodeId = ToNodeId("i=2393"); 00570 ref.TargetNodeClass = NodeClass::DataType; 00571 ref.TargetNodeId = ToNodeId("i=78"); 00572 refs.push_back(ref); 00573 } 00574 registry.AddReferences(refs); 00575 } 00576 00577 { 00578 AddNodesItem node; 00579 node.RequestedNewNodeId = ToNodeId("i=2394"); 00580 node.BrowseName = ToQualifiedName("AutoDelete"); 00581 node.Class = NodeClass::Variable; 00582 node.ParentNodeId = ToNodeId("i=2391"); 00583 node.ReferenceTypeId = ReferenceId::HasProperty; 00584 node.TypeDefinition = ToNodeId("i=68"); 00585 VariableAttributes attrs; 00586 attrs.DisplayName = LocalizedText("AutoDelete"); 00587 attrs.Type = ObjectId::Boolean; 00588 attrs.Rank = -1; 00589 node.Attributes = attrs; 00590 registry.AddNodes(std::vector<AddNodesItem>{node}); 00591 std::vector<AddReferencesItem> refs; 00592 { 00593 AddReferencesItem ref; 00594 ref.IsForward = true; 00595 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00596 ref.SourceNodeId = ToNodeId("i=2394"); 00597 ref.TargetNodeClass = NodeClass::DataType; 00598 ref.TargetNodeId = ToNodeId("i=79"); 00599 refs.push_back(ref); 00600 } 00601 registry.AddReferences(refs); 00602 } 00603 00604 { 00605 AddNodesItem node; 00606 node.RequestedNewNodeId = ToNodeId("i=2395"); 00607 node.BrowseName = ToQualifiedName("RecycleCount"); 00608 node.Class = NodeClass::Variable; 00609 node.ParentNodeId = ToNodeId("i=2391"); 00610 node.ReferenceTypeId = ReferenceId::HasProperty; 00611 node.TypeDefinition = ToNodeId("i=68"); 00612 VariableAttributes attrs; 00613 attrs.DisplayName = LocalizedText("RecycleCount"); 00614 attrs.Type = ObjectId::Int32; 00615 attrs.Rank = -1; 00616 node.Attributes = attrs; 00617 registry.AddNodes(std::vector<AddNodesItem>{node}); 00618 std::vector<AddReferencesItem> refs; 00619 { 00620 AddReferencesItem ref; 00621 ref.IsForward = true; 00622 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00623 ref.SourceNodeId = ToNodeId("i=2395"); 00624 ref.TargetNodeClass = NodeClass::DataType; 00625 ref.TargetNodeId = ToNodeId("i=78"); 00626 refs.push_back(ref); 00627 } 00628 registry.AddReferences(refs); 00629 } 00630 00631 { 00632 AddNodesItem node; 00633 node.RequestedNewNodeId = ToNodeId("i=2396"); 00634 node.BrowseName = ToQualifiedName("InstanceCount"); 00635 node.Class = NodeClass::Variable; 00636 node.ParentNodeId = ToNodeId("i=2391"); 00637 node.ReferenceTypeId = ReferenceId::HasProperty; 00638 node.TypeDefinition = ToNodeId("i=68"); 00639 VariableAttributes attrs; 00640 attrs.DisplayName = LocalizedText("InstanceCount"); 00641 attrs.Type = ObjectId::UInt32; 00642 attrs.Rank = -1; 00643 node.Attributes = attrs; 00644 registry.AddNodes(std::vector<AddNodesItem>{node}); 00645 } 00646 00647 { 00648 AddNodesItem node; 00649 node.RequestedNewNodeId = ToNodeId("i=2397"); 00650 node.BrowseName = ToQualifiedName("MaxInstanceCount"); 00651 node.Class = NodeClass::Variable; 00652 node.ParentNodeId = ToNodeId("i=2391"); 00653 node.ReferenceTypeId = ReferenceId::HasProperty; 00654 node.TypeDefinition = ToNodeId("i=68"); 00655 VariableAttributes attrs; 00656 attrs.DisplayName = LocalizedText("MaxInstanceCount"); 00657 attrs.Type = ObjectId::UInt32; 00658 attrs.Rank = -1; 00659 node.Attributes = attrs; 00660 registry.AddNodes(std::vector<AddNodesItem>{node}); 00661 } 00662 00663 { 00664 AddNodesItem node; 00665 node.RequestedNewNodeId = ToNodeId("i=2398"); 00666 node.BrowseName = ToQualifiedName("MaxRecycleCount"); 00667 node.Class = NodeClass::Variable; 00668 node.ParentNodeId = ToNodeId("i=2391"); 00669 node.ReferenceTypeId = ReferenceId::HasProperty; 00670 node.TypeDefinition = ToNodeId("i=68"); 00671 VariableAttributes attrs; 00672 attrs.DisplayName = LocalizedText("MaxRecycleCount"); 00673 attrs.Type = ObjectId::UInt32; 00674 attrs.Rank = -1; 00675 node.Attributes = attrs; 00676 registry.AddNodes(std::vector<AddNodesItem>{node}); 00677 } 00678 00679 { 00680 AddNodesItem node; 00681 node.RequestedNewNodeId = ToNodeId("i=2399"); 00682 node.BrowseName = ToQualifiedName("ProgramDiagnostics"); 00683 node.Class = NodeClass::Variable; 00684 node.ParentNodeId = ToNodeId("i=2391"); 00685 node.ReferenceTypeId = ReferenceId::HasComponent; 00686 node.TypeDefinition = ToNodeId("i=2380"); 00687 VariableAttributes attrs; 00688 attrs.DisplayName = LocalizedText("ProgramDiagnostics"); 00689 attrs.Type = ToNodeId("i=894"); 00690 attrs.Rank = -1; 00691 node.Attributes = attrs; 00692 registry.AddNodes(std::vector<AddNodesItem>{node}); 00693 std::vector<AddReferencesItem> refs; 00694 { 00695 AddReferencesItem ref; 00696 ref.IsForward = true; 00697 ref.ReferenceTypeId = ReferenceId::HasProperty; 00698 ref.SourceNodeId = ToNodeId("i=2399"); 00699 ref.TargetNodeClass = NodeClass::DataType; 00700 ref.TargetNodeId = ToNodeId("i=3840"); 00701 refs.push_back(ref); 00702 } 00703 { 00704 AddReferencesItem ref; 00705 ref.IsForward = true; 00706 ref.ReferenceTypeId = ReferenceId::HasProperty; 00707 ref.SourceNodeId = ToNodeId("i=2399"); 00708 ref.TargetNodeClass = NodeClass::DataType; 00709 ref.TargetNodeId = ToNodeId("i=3841"); 00710 refs.push_back(ref); 00711 } 00712 { 00713 AddReferencesItem ref; 00714 ref.IsForward = true; 00715 ref.ReferenceTypeId = ReferenceId::HasProperty; 00716 ref.SourceNodeId = ToNodeId("i=2399"); 00717 ref.TargetNodeClass = NodeClass::DataType; 00718 ref.TargetNodeId = ToNodeId("i=3842"); 00719 refs.push_back(ref); 00720 } 00721 { 00722 AddReferencesItem ref; 00723 ref.IsForward = true; 00724 ref.ReferenceTypeId = ReferenceId::HasProperty; 00725 ref.SourceNodeId = ToNodeId("i=2399"); 00726 ref.TargetNodeClass = NodeClass::DataType; 00727 ref.TargetNodeId = ToNodeId("i=3843"); 00728 refs.push_back(ref); 00729 } 00730 { 00731 AddReferencesItem ref; 00732 ref.IsForward = true; 00733 ref.ReferenceTypeId = ReferenceId::HasProperty; 00734 ref.SourceNodeId = ToNodeId("i=2399"); 00735 ref.TargetNodeClass = NodeClass::DataType; 00736 ref.TargetNodeId = ToNodeId("i=3844"); 00737 refs.push_back(ref); 00738 } 00739 { 00740 AddReferencesItem ref; 00741 ref.IsForward = true; 00742 ref.ReferenceTypeId = ReferenceId::HasProperty; 00743 ref.SourceNodeId = ToNodeId("i=2399"); 00744 ref.TargetNodeClass = NodeClass::DataType; 00745 ref.TargetNodeId = ToNodeId("i=3845"); 00746 refs.push_back(ref); 00747 } 00748 { 00749 AddReferencesItem ref; 00750 ref.IsForward = true; 00751 ref.ReferenceTypeId = ReferenceId::HasProperty; 00752 ref.SourceNodeId = ToNodeId("i=2399"); 00753 ref.TargetNodeClass = NodeClass::DataType; 00754 ref.TargetNodeId = ToNodeId("i=3846"); 00755 refs.push_back(ref); 00756 } 00757 { 00758 AddReferencesItem ref; 00759 ref.IsForward = true; 00760 ref.ReferenceTypeId = ReferenceId::HasProperty; 00761 ref.SourceNodeId = ToNodeId("i=2399"); 00762 ref.TargetNodeClass = NodeClass::DataType; 00763 ref.TargetNodeId = ToNodeId("i=3847"); 00764 refs.push_back(ref); 00765 } 00766 { 00767 AddReferencesItem ref; 00768 ref.IsForward = true; 00769 ref.ReferenceTypeId = ReferenceId::HasProperty; 00770 ref.SourceNodeId = ToNodeId("i=2399"); 00771 ref.TargetNodeClass = NodeClass::DataType; 00772 ref.TargetNodeId = ToNodeId("i=3848"); 00773 refs.push_back(ref); 00774 } 00775 { 00776 AddReferencesItem ref; 00777 ref.IsForward = true; 00778 ref.ReferenceTypeId = ReferenceId::HasProperty; 00779 ref.SourceNodeId = ToNodeId("i=2399"); 00780 ref.TargetNodeClass = NodeClass::DataType; 00781 ref.TargetNodeId = ToNodeId("i=3849"); 00782 refs.push_back(ref); 00783 } 00784 { 00785 AddReferencesItem ref; 00786 ref.IsForward = true; 00787 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00788 ref.SourceNodeId = ToNodeId("i=2399"); 00789 ref.TargetNodeClass = NodeClass::DataType; 00790 ref.TargetNodeId = ToNodeId("i=80"); 00791 refs.push_back(ref); 00792 } 00793 registry.AddReferences(refs); 00794 } 00795 00796 { 00797 AddNodesItem node; 00798 node.RequestedNewNodeId = ToNodeId("i=3840"); 00799 node.BrowseName = ToQualifiedName("CreateSessionId"); 00800 node.Class = NodeClass::Variable; 00801 node.ParentNodeId = ToNodeId("i=2399"); 00802 node.ReferenceTypeId = ReferenceId::HasProperty; 00803 node.TypeDefinition = ToNodeId("i=68"); 00804 VariableAttributes attrs; 00805 attrs.DisplayName = LocalizedText("CreateSessionId"); 00806 attrs.Type = ObjectId::NodeId; 00807 attrs.Rank = -1; 00808 node.Attributes = attrs; 00809 registry.AddNodes(std::vector<AddNodesItem>{node}); 00810 std::vector<AddReferencesItem> refs; 00811 { 00812 AddReferencesItem ref; 00813 ref.IsForward = true; 00814 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00815 ref.SourceNodeId = ToNodeId("i=3840"); 00816 ref.TargetNodeClass = NodeClass::DataType; 00817 ref.TargetNodeId = ToNodeId("i=78"); 00818 refs.push_back(ref); 00819 } 00820 registry.AddReferences(refs); 00821 } 00822 00823 { 00824 AddNodesItem node; 00825 node.RequestedNewNodeId = ToNodeId("i=3841"); 00826 node.BrowseName = ToQualifiedName("CreateClientName"); 00827 node.Class = NodeClass::Variable; 00828 node.ParentNodeId = ToNodeId("i=2399"); 00829 node.ReferenceTypeId = ReferenceId::HasProperty; 00830 node.TypeDefinition = ToNodeId("i=68"); 00831 VariableAttributes attrs; 00832 attrs.DisplayName = LocalizedText("CreateClientName"); 00833 attrs.Type = ObjectId::String; 00834 attrs.Rank = -1; 00835 node.Attributes = attrs; 00836 registry.AddNodes(std::vector<AddNodesItem>{node}); 00837 std::vector<AddReferencesItem> refs; 00838 { 00839 AddReferencesItem ref; 00840 ref.IsForward = true; 00841 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00842 ref.SourceNodeId = ToNodeId("i=3841"); 00843 ref.TargetNodeClass = NodeClass::DataType; 00844 ref.TargetNodeId = ToNodeId("i=78"); 00845 refs.push_back(ref); 00846 } 00847 registry.AddReferences(refs); 00848 } 00849 00850 { 00851 AddNodesItem node; 00852 node.RequestedNewNodeId = ToNodeId("i=3842"); 00853 node.BrowseName = ToQualifiedName("InvocationCreationTime"); 00854 node.Class = NodeClass::Variable; 00855 node.ParentNodeId = ToNodeId("i=2399"); 00856 node.ReferenceTypeId = ReferenceId::HasProperty; 00857 node.TypeDefinition = ToNodeId("i=68"); 00858 VariableAttributes attrs; 00859 attrs.DisplayName = LocalizedText("InvocationCreationTime"); 00860 attrs.Type = ToNodeId("i=294"); 00861 attrs.Rank = -1; 00862 node.Attributes = attrs; 00863 registry.AddNodes(std::vector<AddNodesItem>{node}); 00864 std::vector<AddReferencesItem> refs; 00865 { 00866 AddReferencesItem ref; 00867 ref.IsForward = true; 00868 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00869 ref.SourceNodeId = ToNodeId("i=3842"); 00870 ref.TargetNodeClass = NodeClass::DataType; 00871 ref.TargetNodeId = ToNodeId("i=78"); 00872 refs.push_back(ref); 00873 } 00874 registry.AddReferences(refs); 00875 } 00876 00877 { 00878 AddNodesItem node; 00879 node.RequestedNewNodeId = ToNodeId("i=3843"); 00880 node.BrowseName = ToQualifiedName("LastTransitionTime"); 00881 node.Class = NodeClass::Variable; 00882 node.ParentNodeId = ToNodeId("i=2399"); 00883 node.ReferenceTypeId = ReferenceId::HasProperty; 00884 node.TypeDefinition = ToNodeId("i=68"); 00885 VariableAttributes attrs; 00886 attrs.DisplayName = LocalizedText("LastTransitionTime"); 00887 attrs.Type = ToNodeId("i=294"); 00888 attrs.Rank = -1; 00889 node.Attributes = attrs; 00890 registry.AddNodes(std::vector<AddNodesItem>{node}); 00891 std::vector<AddReferencesItem> refs; 00892 { 00893 AddReferencesItem ref; 00894 ref.IsForward = true; 00895 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00896 ref.SourceNodeId = ToNodeId("i=3843"); 00897 ref.TargetNodeClass = NodeClass::DataType; 00898 ref.TargetNodeId = ToNodeId("i=78"); 00899 refs.push_back(ref); 00900 } 00901 registry.AddReferences(refs); 00902 } 00903 00904 { 00905 AddNodesItem node; 00906 node.RequestedNewNodeId = ToNodeId("i=3844"); 00907 node.BrowseName = ToQualifiedName("LastMethodCall"); 00908 node.Class = NodeClass::Variable; 00909 node.ParentNodeId = ToNodeId("i=2399"); 00910 node.ReferenceTypeId = ReferenceId::HasProperty; 00911 node.TypeDefinition = ToNodeId("i=68"); 00912 VariableAttributes attrs; 00913 attrs.DisplayName = LocalizedText("LastMethodCall"); 00914 attrs.Type = ObjectId::String; 00915 attrs.Rank = -1; 00916 node.Attributes = attrs; 00917 registry.AddNodes(std::vector<AddNodesItem>{node}); 00918 std::vector<AddReferencesItem> refs; 00919 { 00920 AddReferencesItem ref; 00921 ref.IsForward = true; 00922 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00923 ref.SourceNodeId = ToNodeId("i=3844"); 00924 ref.TargetNodeClass = NodeClass::DataType; 00925 ref.TargetNodeId = ToNodeId("i=78"); 00926 refs.push_back(ref); 00927 } 00928 registry.AddReferences(refs); 00929 } 00930 00931 { 00932 AddNodesItem node; 00933 node.RequestedNewNodeId = ToNodeId("i=3845"); 00934 node.BrowseName = ToQualifiedName("LastMethodSessionId"); 00935 node.Class = NodeClass::Variable; 00936 node.ParentNodeId = ToNodeId("i=2399"); 00937 node.ReferenceTypeId = ReferenceId::HasProperty; 00938 node.TypeDefinition = ToNodeId("i=68"); 00939 VariableAttributes attrs; 00940 attrs.DisplayName = LocalizedText("LastMethodSessionId"); 00941 attrs.Type = ObjectId::NodeId; 00942 attrs.Rank = -1; 00943 node.Attributes = attrs; 00944 registry.AddNodes(std::vector<AddNodesItem>{node}); 00945 std::vector<AddReferencesItem> refs; 00946 { 00947 AddReferencesItem ref; 00948 ref.IsForward = true; 00949 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00950 ref.SourceNodeId = ToNodeId("i=3845"); 00951 ref.TargetNodeClass = NodeClass::DataType; 00952 ref.TargetNodeId = ToNodeId("i=78"); 00953 refs.push_back(ref); 00954 } 00955 registry.AddReferences(refs); 00956 } 00957 00958 { 00959 AddNodesItem node; 00960 node.RequestedNewNodeId = ToNodeId("i=3846"); 00961 node.BrowseName = ToQualifiedName("LastMethodInputArguments"); 00962 node.Class = NodeClass::Variable; 00963 node.ParentNodeId = ToNodeId("i=2399"); 00964 node.ReferenceTypeId = ReferenceId::HasProperty; 00965 node.TypeDefinition = ToNodeId("i=68"); 00966 VariableAttributes attrs; 00967 attrs.DisplayName = LocalizedText("LastMethodInputArguments"); 00968 attrs.Type = ToNodeId("i=296"); 00969 attrs.Rank = 1; 00970 node.Attributes = attrs; 00971 registry.AddNodes(std::vector<AddNodesItem>{node}); 00972 std::vector<AddReferencesItem> refs; 00973 { 00974 AddReferencesItem ref; 00975 ref.IsForward = true; 00976 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 00977 ref.SourceNodeId = ToNodeId("i=3846"); 00978 ref.TargetNodeClass = NodeClass::DataType; 00979 ref.TargetNodeId = ToNodeId("i=78"); 00980 refs.push_back(ref); 00981 } 00982 registry.AddReferences(refs); 00983 } 00984 00985 { 00986 AddNodesItem node; 00987 node.RequestedNewNodeId = ToNodeId("i=3847"); 00988 node.BrowseName = ToQualifiedName("LastMethodOutputArguments"); 00989 node.Class = NodeClass::Variable; 00990 node.ParentNodeId = ToNodeId("i=2399"); 00991 node.ReferenceTypeId = ReferenceId::HasProperty; 00992 node.TypeDefinition = ToNodeId("i=68"); 00993 VariableAttributes attrs; 00994 attrs.DisplayName = LocalizedText("LastMethodOutputArguments"); 00995 attrs.Type = ToNodeId("i=296"); 00996 attrs.Rank = 1; 00997 node.Attributes = attrs; 00998 registry.AddNodes(std::vector<AddNodesItem>{node}); 00999 std::vector<AddReferencesItem> refs; 01000 { 01001 AddReferencesItem ref; 01002 ref.IsForward = true; 01003 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01004 ref.SourceNodeId = ToNodeId("i=3847"); 01005 ref.TargetNodeClass = NodeClass::DataType; 01006 ref.TargetNodeId = ToNodeId("i=78"); 01007 refs.push_back(ref); 01008 } 01009 registry.AddReferences(refs); 01010 } 01011 01012 { 01013 AddNodesItem node; 01014 node.RequestedNewNodeId = ToNodeId("i=3848"); 01015 node.BrowseName = ToQualifiedName("LastMethodCallTime"); 01016 node.Class = NodeClass::Variable; 01017 node.ParentNodeId = ToNodeId("i=2399"); 01018 node.ReferenceTypeId = ReferenceId::HasProperty; 01019 node.TypeDefinition = ToNodeId("i=68"); 01020 VariableAttributes attrs; 01021 attrs.DisplayName = LocalizedText("LastMethodCallTime"); 01022 attrs.Type = ToNodeId("i=294"); 01023 attrs.Rank = -1; 01024 node.Attributes = attrs; 01025 registry.AddNodes(std::vector<AddNodesItem>{node}); 01026 std::vector<AddReferencesItem> refs; 01027 { 01028 AddReferencesItem ref; 01029 ref.IsForward = true; 01030 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01031 ref.SourceNodeId = ToNodeId("i=3848"); 01032 ref.TargetNodeClass = NodeClass::DataType; 01033 ref.TargetNodeId = ToNodeId("i=78"); 01034 refs.push_back(ref); 01035 } 01036 registry.AddReferences(refs); 01037 } 01038 01039 { 01040 AddNodesItem node; 01041 node.RequestedNewNodeId = ToNodeId("i=3849"); 01042 node.BrowseName = ToQualifiedName("LastMethodReturnStatus"); 01043 node.Class = NodeClass::Variable; 01044 node.ParentNodeId = ToNodeId("i=2399"); 01045 node.ReferenceTypeId = ReferenceId::HasProperty; 01046 node.TypeDefinition = ToNodeId("i=68"); 01047 VariableAttributes attrs; 01048 attrs.DisplayName = LocalizedText("LastMethodReturnStatus"); 01049 attrs.Type = ToNodeId("i=299"); 01050 attrs.Rank = -1; 01051 node.Attributes = attrs; 01052 registry.AddNodes(std::vector<AddNodesItem>{node}); 01053 std::vector<AddReferencesItem> refs; 01054 { 01055 AddReferencesItem ref; 01056 ref.IsForward = true; 01057 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01058 ref.SourceNodeId = ToNodeId("i=3849"); 01059 ref.TargetNodeClass = NodeClass::DataType; 01060 ref.TargetNodeId = ToNodeId("i=78"); 01061 refs.push_back(ref); 01062 } 01063 registry.AddReferences(refs); 01064 } 01065 01066 { 01067 AddNodesItem node; 01068 node.RequestedNewNodeId = ToNodeId("i=3850"); 01069 node.BrowseName = ToQualifiedName("FinalResultData"); 01070 node.Class = NodeClass::Object; 01071 node.ParentNodeId = ToNodeId("i=2391"); 01072 node.ReferenceTypeId = ReferenceId::HasComponent; 01073 node.TypeDefinition = ToNodeId("i=58"); 01074 ObjectAttributes attrs; 01075 attrs.DisplayName = LocalizedText("FinalResultData"); 01076 attrs.EventNotifier = 0; 01077 node.Attributes = attrs; 01078 registry.AddNodes(std::vector<AddNodesItem>{node}); 01079 std::vector<AddReferencesItem> refs; 01080 { 01081 AddReferencesItem ref; 01082 ref.IsForward = true; 01083 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01084 ref.SourceNodeId = ToNodeId("i=3850"); 01085 ref.TargetNodeClass = NodeClass::DataType; 01086 ref.TargetNodeId = ToNodeId("i=80"); 01087 refs.push_back(ref); 01088 } 01089 registry.AddReferences(refs); 01090 } 01091 01092 { 01093 AddNodesItem node; 01094 node.RequestedNewNodeId = ToNodeId("i=2400"); 01095 node.BrowseName = ToQualifiedName("Ready"); 01096 node.Class = NodeClass::Object; 01097 node.ParentNodeId = ToNodeId("i=2391"); 01098 node.ReferenceTypeId = ReferenceId::HasComponent; 01099 node.TypeDefinition = ToNodeId("i=2307"); 01100 ObjectAttributes attrs; 01101 attrs.Description = LocalizedText("The Program is properly initialized and may be started."); 01102 attrs.DisplayName = LocalizedText("Ready"); 01103 attrs.EventNotifier = 0; 01104 node.Attributes = attrs; 01105 registry.AddNodes(std::vector<AddNodesItem>{node}); 01106 std::vector<AddReferencesItem> refs; 01107 { 01108 AddReferencesItem ref; 01109 ref.IsForward = true; 01110 ref.ReferenceTypeId = ReferenceId::HasProperty; 01111 ref.SourceNodeId = ToNodeId("i=2400"); 01112 ref.TargetNodeClass = NodeClass::DataType; 01113 ref.TargetNodeId = ToNodeId("i=2401"); 01114 refs.push_back(ref); 01115 } 01116 registry.AddReferences(refs); 01117 } 01118 01119 { 01120 AddNodesItem node; 01121 node.RequestedNewNodeId = ToNodeId("i=2401"); 01122 node.BrowseName = ToQualifiedName("StateNumber"); 01123 node.Class = NodeClass::Variable; 01124 node.ParentNodeId = ToNodeId("i=2400"); 01125 node.ReferenceTypeId = ReferenceId::HasProperty; 01126 node.TypeDefinition = ToNodeId("i=68"); 01127 VariableAttributes attrs; 01128 attrs.DisplayName = LocalizedText("StateNumber"); 01129 attrs.Type = ObjectId::UInt32; 01130 attrs.Value = (uint32_t) 1; 01131 attrs.Rank = -1; 01132 node.Attributes = attrs; 01133 registry.AddNodes(std::vector<AddNodesItem>{node}); 01134 std::vector<AddReferencesItem> refs; 01135 { 01136 AddReferencesItem ref; 01137 ref.IsForward = true; 01138 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01139 ref.SourceNodeId = ToNodeId("i=2401"); 01140 ref.TargetNodeClass = NodeClass::DataType; 01141 ref.TargetNodeId = ToNodeId("i=78"); 01142 refs.push_back(ref); 01143 } 01144 registry.AddReferences(refs); 01145 } 01146 01147 { 01148 AddNodesItem node; 01149 node.RequestedNewNodeId = ToNodeId("i=2402"); 01150 node.BrowseName = ToQualifiedName("Running"); 01151 node.Class = NodeClass::Object; 01152 node.ParentNodeId = ToNodeId("i=2391"); 01153 node.ReferenceTypeId = ReferenceId::HasComponent; 01154 node.TypeDefinition = ToNodeId("i=2307"); 01155 ObjectAttributes attrs; 01156 attrs.Description = LocalizedText("The Program is executing making progress towards completion."); 01157 attrs.DisplayName = LocalizedText("Running"); 01158 attrs.EventNotifier = 0; 01159 node.Attributes = attrs; 01160 registry.AddNodes(std::vector<AddNodesItem>{node}); 01161 std::vector<AddReferencesItem> refs; 01162 { 01163 AddReferencesItem ref; 01164 ref.IsForward = true; 01165 ref.ReferenceTypeId = ReferenceId::HasProperty; 01166 ref.SourceNodeId = ToNodeId("i=2402"); 01167 ref.TargetNodeClass = NodeClass::DataType; 01168 ref.TargetNodeId = ToNodeId("i=2403"); 01169 refs.push_back(ref); 01170 } 01171 registry.AddReferences(refs); 01172 } 01173 01174 { 01175 AddNodesItem node; 01176 node.RequestedNewNodeId = ToNodeId("i=2403"); 01177 node.BrowseName = ToQualifiedName("StateNumber"); 01178 node.Class = NodeClass::Variable; 01179 node.ParentNodeId = ToNodeId("i=2402"); 01180 node.ReferenceTypeId = ReferenceId::HasProperty; 01181 node.TypeDefinition = ToNodeId("i=68"); 01182 VariableAttributes attrs; 01183 attrs.DisplayName = LocalizedText("StateNumber"); 01184 attrs.Type = ObjectId::UInt32; 01185 attrs.Value = (uint32_t) 2; 01186 attrs.Rank = -1; 01187 node.Attributes = attrs; 01188 registry.AddNodes(std::vector<AddNodesItem>{node}); 01189 std::vector<AddReferencesItem> refs; 01190 { 01191 AddReferencesItem ref; 01192 ref.IsForward = true; 01193 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01194 ref.SourceNodeId = ToNodeId("i=2403"); 01195 ref.TargetNodeClass = NodeClass::DataType; 01196 ref.TargetNodeId = ToNodeId("i=78"); 01197 refs.push_back(ref); 01198 } 01199 registry.AddReferences(refs); 01200 } 01201 01202 { 01203 AddNodesItem node; 01204 node.RequestedNewNodeId = ToNodeId("i=2404"); 01205 node.BrowseName = ToQualifiedName("Suspended"); 01206 node.Class = NodeClass::Object; 01207 node.ParentNodeId = ToNodeId("i=2391"); 01208 node.ReferenceTypeId = ReferenceId::HasComponent; 01209 node.TypeDefinition = ToNodeId("i=2307"); 01210 ObjectAttributes attrs; 01211 attrs.Description = LocalizedText("The Program has been stopped prior to reaching a terminal state but may be resumed."); 01212 attrs.DisplayName = LocalizedText("Suspended"); 01213 attrs.EventNotifier = 0; 01214 node.Attributes = attrs; 01215 registry.AddNodes(std::vector<AddNodesItem>{node}); 01216 std::vector<AddReferencesItem> refs; 01217 { 01218 AddReferencesItem ref; 01219 ref.IsForward = true; 01220 ref.ReferenceTypeId = ReferenceId::HasProperty; 01221 ref.SourceNodeId = ToNodeId("i=2404"); 01222 ref.TargetNodeClass = NodeClass::DataType; 01223 ref.TargetNodeId = ToNodeId("i=2405"); 01224 refs.push_back(ref); 01225 } 01226 registry.AddReferences(refs); 01227 } 01228 01229 { 01230 AddNodesItem node; 01231 node.RequestedNewNodeId = ToNodeId("i=2405"); 01232 node.BrowseName = ToQualifiedName("StateNumber"); 01233 node.Class = NodeClass::Variable; 01234 node.ParentNodeId = ToNodeId("i=2404"); 01235 node.ReferenceTypeId = ReferenceId::HasProperty; 01236 node.TypeDefinition = ToNodeId("i=68"); 01237 VariableAttributes attrs; 01238 attrs.DisplayName = LocalizedText("StateNumber"); 01239 attrs.Type = ObjectId::UInt32; 01240 attrs.Value = (uint32_t) 3; 01241 attrs.Rank = -1; 01242 node.Attributes = attrs; 01243 registry.AddNodes(std::vector<AddNodesItem>{node}); 01244 std::vector<AddReferencesItem> refs; 01245 { 01246 AddReferencesItem ref; 01247 ref.IsForward = true; 01248 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01249 ref.SourceNodeId = ToNodeId("i=2405"); 01250 ref.TargetNodeClass = NodeClass::DataType; 01251 ref.TargetNodeId = ToNodeId("i=78"); 01252 refs.push_back(ref); 01253 } 01254 registry.AddReferences(refs); 01255 } 01256 01257 { 01258 AddNodesItem node; 01259 node.RequestedNewNodeId = ToNodeId("i=2406"); 01260 node.BrowseName = ToQualifiedName("Halted"); 01261 node.Class = NodeClass::Object; 01262 node.ParentNodeId = ToNodeId("i=2391"); 01263 node.ReferenceTypeId = ReferenceId::HasComponent; 01264 node.TypeDefinition = ToNodeId("i=2307"); 01265 ObjectAttributes attrs; 01266 attrs.Description = LocalizedText("The Program is in a terminal or failed state, and it cannot be started or resumed without being reset."); 01267 attrs.DisplayName = LocalizedText("Halted"); 01268 attrs.EventNotifier = 0; 01269 node.Attributes = attrs; 01270 registry.AddNodes(std::vector<AddNodesItem>{node}); 01271 std::vector<AddReferencesItem> refs; 01272 { 01273 AddReferencesItem ref; 01274 ref.IsForward = true; 01275 ref.ReferenceTypeId = ReferenceId::HasProperty; 01276 ref.SourceNodeId = ToNodeId("i=2406"); 01277 ref.TargetNodeClass = NodeClass::DataType; 01278 ref.TargetNodeId = ToNodeId("i=2407"); 01279 refs.push_back(ref); 01280 } 01281 registry.AddReferences(refs); 01282 } 01283 01284 { 01285 AddNodesItem node; 01286 node.RequestedNewNodeId = ToNodeId("i=2407"); 01287 node.BrowseName = ToQualifiedName("StateNumber"); 01288 node.Class = NodeClass::Variable; 01289 node.ParentNodeId = ToNodeId("i=2406"); 01290 node.ReferenceTypeId = ReferenceId::HasProperty; 01291 node.TypeDefinition = ToNodeId("i=68"); 01292 VariableAttributes attrs; 01293 attrs.DisplayName = LocalizedText("StateNumber"); 01294 attrs.Type = ObjectId::UInt32; 01295 attrs.Value = (uint32_t) 4; 01296 attrs.Rank = -1; 01297 node.Attributes = attrs; 01298 registry.AddNodes(std::vector<AddNodesItem>{node}); 01299 std::vector<AddReferencesItem> refs; 01300 { 01301 AddReferencesItem ref; 01302 ref.IsForward = true; 01303 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01304 ref.SourceNodeId = ToNodeId("i=2407"); 01305 ref.TargetNodeClass = NodeClass::DataType; 01306 ref.TargetNodeId = ToNodeId("i=78"); 01307 refs.push_back(ref); 01308 } 01309 registry.AddReferences(refs); 01310 } 01311 01312 { 01313 AddNodesItem node; 01314 node.RequestedNewNodeId = ToNodeId("i=2408"); 01315 node.BrowseName = ToQualifiedName("HaltedToReady"); 01316 node.Class = NodeClass::Object; 01317 node.ParentNodeId = ToNodeId("i=2391"); 01318 node.ReferenceTypeId = ReferenceId::HasComponent; 01319 node.TypeDefinition = ToNodeId("i=2310"); 01320 ObjectAttributes attrs; 01321 attrs.DisplayName = LocalizedText("HaltedToReady"); 01322 attrs.EventNotifier = 0; 01323 node.Attributes = attrs; 01324 registry.AddNodes(std::vector<AddNodesItem>{node}); 01325 std::vector<AddReferencesItem> refs; 01326 { 01327 AddReferencesItem ref; 01328 ref.IsForward = true; 01329 ref.ReferenceTypeId = ReferenceId::HasProperty; 01330 ref.SourceNodeId = ToNodeId("i=2408"); 01331 ref.TargetNodeClass = NodeClass::DataType; 01332 ref.TargetNodeId = ToNodeId("i=2409"); 01333 refs.push_back(ref); 01334 } 01335 { 01336 AddReferencesItem ref; 01337 ref.IsForward = true; 01338 ref.ReferenceTypeId = ToNodeId("i=51"); 01339 ref.SourceNodeId = ToNodeId("i=2408"); 01340 ref.TargetNodeClass = NodeClass::DataType; 01341 ref.TargetNodeId = ToNodeId("i=2406"); 01342 refs.push_back(ref); 01343 } 01344 { 01345 AddReferencesItem ref; 01346 ref.IsForward = true; 01347 ref.ReferenceTypeId = ToNodeId("i=52"); 01348 ref.SourceNodeId = ToNodeId("i=2408"); 01349 ref.TargetNodeClass = NodeClass::DataType; 01350 ref.TargetNodeId = ToNodeId("i=2400"); 01351 refs.push_back(ref); 01352 } 01353 { 01354 AddReferencesItem ref; 01355 ref.IsForward = true; 01356 ref.ReferenceTypeId = ToNodeId("i=53"); 01357 ref.SourceNodeId = ToNodeId("i=2408"); 01358 ref.TargetNodeClass = NodeClass::DataType; 01359 ref.TargetNodeId = ToNodeId("i=2430"); 01360 refs.push_back(ref); 01361 } 01362 { 01363 AddReferencesItem ref; 01364 ref.IsForward = true; 01365 ref.ReferenceTypeId = ToNodeId("i=54"); 01366 ref.SourceNodeId = ToNodeId("i=2408"); 01367 ref.TargetNodeClass = NodeClass::DataType; 01368 ref.TargetNodeId = ToNodeId("i=2378"); 01369 refs.push_back(ref); 01370 } 01371 registry.AddReferences(refs); 01372 } 01373 01374 { 01375 AddNodesItem node; 01376 node.RequestedNewNodeId = ToNodeId("i=2409"); 01377 node.BrowseName = ToQualifiedName("TransitionNumber"); 01378 node.Class = NodeClass::Variable; 01379 node.ParentNodeId = ToNodeId("i=2408"); 01380 node.ReferenceTypeId = ReferenceId::HasProperty; 01381 node.TypeDefinition = ToNodeId("i=68"); 01382 VariableAttributes attrs; 01383 attrs.DisplayName = LocalizedText("TransitionNumber"); 01384 attrs.Type = ObjectId::UInt32; 01385 attrs.Value = (uint32_t) 1; 01386 attrs.Rank = -1; 01387 node.Attributes = attrs; 01388 registry.AddNodes(std::vector<AddNodesItem>{node}); 01389 std::vector<AddReferencesItem> refs; 01390 { 01391 AddReferencesItem ref; 01392 ref.IsForward = true; 01393 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01394 ref.SourceNodeId = ToNodeId("i=2409"); 01395 ref.TargetNodeClass = NodeClass::DataType; 01396 ref.TargetNodeId = ToNodeId("i=78"); 01397 refs.push_back(ref); 01398 } 01399 registry.AddReferences(refs); 01400 } 01401 01402 { 01403 AddNodesItem node; 01404 node.RequestedNewNodeId = ToNodeId("i=2410"); 01405 node.BrowseName = ToQualifiedName("ReadyToRunning"); 01406 node.Class = NodeClass::Object; 01407 node.ParentNodeId = ToNodeId("i=2391"); 01408 node.ReferenceTypeId = ReferenceId::HasComponent; 01409 node.TypeDefinition = ToNodeId("i=2310"); 01410 ObjectAttributes attrs; 01411 attrs.DisplayName = LocalizedText("ReadyToRunning"); 01412 attrs.EventNotifier = 0; 01413 node.Attributes = attrs; 01414 registry.AddNodes(std::vector<AddNodesItem>{node}); 01415 std::vector<AddReferencesItem> refs; 01416 { 01417 AddReferencesItem ref; 01418 ref.IsForward = true; 01419 ref.ReferenceTypeId = ReferenceId::HasProperty; 01420 ref.SourceNodeId = ToNodeId("i=2410"); 01421 ref.TargetNodeClass = NodeClass::DataType; 01422 ref.TargetNodeId = ToNodeId("i=2411"); 01423 refs.push_back(ref); 01424 } 01425 { 01426 AddReferencesItem ref; 01427 ref.IsForward = true; 01428 ref.ReferenceTypeId = ToNodeId("i=51"); 01429 ref.SourceNodeId = ToNodeId("i=2410"); 01430 ref.TargetNodeClass = NodeClass::DataType; 01431 ref.TargetNodeId = ToNodeId("i=2400"); 01432 refs.push_back(ref); 01433 } 01434 { 01435 AddReferencesItem ref; 01436 ref.IsForward = true; 01437 ref.ReferenceTypeId = ToNodeId("i=52"); 01438 ref.SourceNodeId = ToNodeId("i=2410"); 01439 ref.TargetNodeClass = NodeClass::DataType; 01440 ref.TargetNodeId = ToNodeId("i=2402"); 01441 refs.push_back(ref); 01442 } 01443 { 01444 AddReferencesItem ref; 01445 ref.IsForward = true; 01446 ref.ReferenceTypeId = ToNodeId("i=53"); 01447 ref.SourceNodeId = ToNodeId("i=2410"); 01448 ref.TargetNodeClass = NodeClass::DataType; 01449 ref.TargetNodeId = ToNodeId("i=2426"); 01450 refs.push_back(ref); 01451 } 01452 { 01453 AddReferencesItem ref; 01454 ref.IsForward = true; 01455 ref.ReferenceTypeId = ToNodeId("i=54"); 01456 ref.SourceNodeId = ToNodeId("i=2410"); 01457 ref.TargetNodeClass = NodeClass::DataType; 01458 ref.TargetNodeId = ToNodeId("i=2378"); 01459 refs.push_back(ref); 01460 } 01461 registry.AddReferences(refs); 01462 } 01463 01464 { 01465 AddNodesItem node; 01466 node.RequestedNewNodeId = ToNodeId("i=2411"); 01467 node.BrowseName = ToQualifiedName("TransitionNumber"); 01468 node.Class = NodeClass::Variable; 01469 node.ParentNodeId = ToNodeId("i=2410"); 01470 node.ReferenceTypeId = ReferenceId::HasProperty; 01471 node.TypeDefinition = ToNodeId("i=68"); 01472 VariableAttributes attrs; 01473 attrs.DisplayName = LocalizedText("TransitionNumber"); 01474 attrs.Type = ObjectId::UInt32; 01475 attrs.Value = (uint32_t) 2; 01476 attrs.Rank = -1; 01477 node.Attributes = attrs; 01478 registry.AddNodes(std::vector<AddNodesItem>{node}); 01479 std::vector<AddReferencesItem> refs; 01480 { 01481 AddReferencesItem ref; 01482 ref.IsForward = true; 01483 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01484 ref.SourceNodeId = ToNodeId("i=2411"); 01485 ref.TargetNodeClass = NodeClass::DataType; 01486 ref.TargetNodeId = ToNodeId("i=78"); 01487 refs.push_back(ref); 01488 } 01489 registry.AddReferences(refs); 01490 } 01491 01492 { 01493 AddNodesItem node; 01494 node.RequestedNewNodeId = ToNodeId("i=2412"); 01495 node.BrowseName = ToQualifiedName("RunningToHalted"); 01496 node.Class = NodeClass::Object; 01497 node.ParentNodeId = ToNodeId("i=2391"); 01498 node.ReferenceTypeId = ReferenceId::HasComponent; 01499 node.TypeDefinition = ToNodeId("i=2310"); 01500 ObjectAttributes attrs; 01501 attrs.DisplayName = LocalizedText("RunningToHalted"); 01502 attrs.EventNotifier = 0; 01503 node.Attributes = attrs; 01504 registry.AddNodes(std::vector<AddNodesItem>{node}); 01505 std::vector<AddReferencesItem> refs; 01506 { 01507 AddReferencesItem ref; 01508 ref.IsForward = true; 01509 ref.ReferenceTypeId = ReferenceId::HasProperty; 01510 ref.SourceNodeId = ToNodeId("i=2412"); 01511 ref.TargetNodeClass = NodeClass::DataType; 01512 ref.TargetNodeId = ToNodeId("i=2413"); 01513 refs.push_back(ref); 01514 } 01515 { 01516 AddReferencesItem ref; 01517 ref.IsForward = true; 01518 ref.ReferenceTypeId = ToNodeId("i=51"); 01519 ref.SourceNodeId = ToNodeId("i=2412"); 01520 ref.TargetNodeClass = NodeClass::DataType; 01521 ref.TargetNodeId = ToNodeId("i=2402"); 01522 refs.push_back(ref); 01523 } 01524 { 01525 AddReferencesItem ref; 01526 ref.IsForward = true; 01527 ref.ReferenceTypeId = ToNodeId("i=52"); 01528 ref.SourceNodeId = ToNodeId("i=2412"); 01529 ref.TargetNodeClass = NodeClass::DataType; 01530 ref.TargetNodeId = ToNodeId("i=2406"); 01531 refs.push_back(ref); 01532 } 01533 { 01534 AddReferencesItem ref; 01535 ref.IsForward = true; 01536 ref.ReferenceTypeId = ToNodeId("i=53"); 01537 ref.SourceNodeId = ToNodeId("i=2412"); 01538 ref.TargetNodeClass = NodeClass::DataType; 01539 ref.TargetNodeId = ToNodeId("i=2429"); 01540 refs.push_back(ref); 01541 } 01542 { 01543 AddReferencesItem ref; 01544 ref.IsForward = true; 01545 ref.ReferenceTypeId = ToNodeId("i=54"); 01546 ref.SourceNodeId = ToNodeId("i=2412"); 01547 ref.TargetNodeClass = NodeClass::DataType; 01548 ref.TargetNodeId = ToNodeId("i=2378"); 01549 refs.push_back(ref); 01550 } 01551 registry.AddReferences(refs); 01552 } 01553 01554 { 01555 AddNodesItem node; 01556 node.RequestedNewNodeId = ToNodeId("i=2413"); 01557 node.BrowseName = ToQualifiedName("TransitionNumber"); 01558 node.Class = NodeClass::Variable; 01559 node.ParentNodeId = ToNodeId("i=2412"); 01560 node.ReferenceTypeId = ReferenceId::HasProperty; 01561 node.TypeDefinition = ToNodeId("i=68"); 01562 VariableAttributes attrs; 01563 attrs.DisplayName = LocalizedText("TransitionNumber"); 01564 attrs.Type = ObjectId::UInt32; 01565 attrs.Value = (uint32_t) 3; 01566 attrs.Rank = -1; 01567 node.Attributes = attrs; 01568 registry.AddNodes(std::vector<AddNodesItem>{node}); 01569 std::vector<AddReferencesItem> refs; 01570 { 01571 AddReferencesItem ref; 01572 ref.IsForward = true; 01573 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01574 ref.SourceNodeId = ToNodeId("i=2413"); 01575 ref.TargetNodeClass = NodeClass::DataType; 01576 ref.TargetNodeId = ToNodeId("i=78"); 01577 refs.push_back(ref); 01578 } 01579 registry.AddReferences(refs); 01580 } 01581 01582 { 01583 AddNodesItem node; 01584 node.RequestedNewNodeId = ToNodeId("i=2414"); 01585 node.BrowseName = ToQualifiedName("RunningToReady"); 01586 node.Class = NodeClass::Object; 01587 node.ParentNodeId = ToNodeId("i=2391"); 01588 node.ReferenceTypeId = ReferenceId::HasComponent; 01589 node.TypeDefinition = ToNodeId("i=2310"); 01590 ObjectAttributes attrs; 01591 attrs.DisplayName = LocalizedText("RunningToReady"); 01592 attrs.EventNotifier = 0; 01593 node.Attributes = attrs; 01594 registry.AddNodes(std::vector<AddNodesItem>{node}); 01595 std::vector<AddReferencesItem> refs; 01596 { 01597 AddReferencesItem ref; 01598 ref.IsForward = true; 01599 ref.ReferenceTypeId = ReferenceId::HasProperty; 01600 ref.SourceNodeId = ToNodeId("i=2414"); 01601 ref.TargetNodeClass = NodeClass::DataType; 01602 ref.TargetNodeId = ToNodeId("i=2415"); 01603 refs.push_back(ref); 01604 } 01605 { 01606 AddReferencesItem ref; 01607 ref.IsForward = true; 01608 ref.ReferenceTypeId = ToNodeId("i=51"); 01609 ref.SourceNodeId = ToNodeId("i=2414"); 01610 ref.TargetNodeClass = NodeClass::DataType; 01611 ref.TargetNodeId = ToNodeId("i=2402"); 01612 refs.push_back(ref); 01613 } 01614 { 01615 AddReferencesItem ref; 01616 ref.IsForward = true; 01617 ref.ReferenceTypeId = ToNodeId("i=52"); 01618 ref.SourceNodeId = ToNodeId("i=2414"); 01619 ref.TargetNodeClass = NodeClass::DataType; 01620 ref.TargetNodeId = ToNodeId("i=2400"); 01621 refs.push_back(ref); 01622 } 01623 { 01624 AddReferencesItem ref; 01625 ref.IsForward = true; 01626 ref.ReferenceTypeId = ToNodeId("i=54"); 01627 ref.SourceNodeId = ToNodeId("i=2414"); 01628 ref.TargetNodeClass = NodeClass::DataType; 01629 ref.TargetNodeId = ToNodeId("i=2378"); 01630 refs.push_back(ref); 01631 } 01632 registry.AddReferences(refs); 01633 } 01634 01635 { 01636 AddNodesItem node; 01637 node.RequestedNewNodeId = ToNodeId("i=2415"); 01638 node.BrowseName = ToQualifiedName("TransitionNumber"); 01639 node.Class = NodeClass::Variable; 01640 node.ParentNodeId = ToNodeId("i=2414"); 01641 node.ReferenceTypeId = ReferenceId::HasProperty; 01642 node.TypeDefinition = ToNodeId("i=68"); 01643 VariableAttributes attrs; 01644 attrs.DisplayName = LocalizedText("TransitionNumber"); 01645 attrs.Type = ObjectId::UInt32; 01646 attrs.Value = (uint32_t) 4; 01647 attrs.Rank = -1; 01648 node.Attributes = attrs; 01649 registry.AddNodes(std::vector<AddNodesItem>{node}); 01650 std::vector<AddReferencesItem> refs; 01651 { 01652 AddReferencesItem ref; 01653 ref.IsForward = true; 01654 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01655 ref.SourceNodeId = ToNodeId("i=2415"); 01656 ref.TargetNodeClass = NodeClass::DataType; 01657 ref.TargetNodeId = ToNodeId("i=78"); 01658 refs.push_back(ref); 01659 } 01660 registry.AddReferences(refs); 01661 } 01662 01663 { 01664 AddNodesItem node; 01665 node.RequestedNewNodeId = ToNodeId("i=2416"); 01666 node.BrowseName = ToQualifiedName("RunningToSuspended"); 01667 node.Class = NodeClass::Object; 01668 node.ParentNodeId = ToNodeId("i=2391"); 01669 node.ReferenceTypeId = ReferenceId::HasComponent; 01670 node.TypeDefinition = ToNodeId("i=2310"); 01671 ObjectAttributes attrs; 01672 attrs.DisplayName = LocalizedText("RunningToSuspended"); 01673 attrs.EventNotifier = 0; 01674 node.Attributes = attrs; 01675 registry.AddNodes(std::vector<AddNodesItem>{node}); 01676 std::vector<AddReferencesItem> refs; 01677 { 01678 AddReferencesItem ref; 01679 ref.IsForward = true; 01680 ref.ReferenceTypeId = ReferenceId::HasProperty; 01681 ref.SourceNodeId = ToNodeId("i=2416"); 01682 ref.TargetNodeClass = NodeClass::DataType; 01683 ref.TargetNodeId = ToNodeId("i=2417"); 01684 refs.push_back(ref); 01685 } 01686 { 01687 AddReferencesItem ref; 01688 ref.IsForward = true; 01689 ref.ReferenceTypeId = ToNodeId("i=51"); 01690 ref.SourceNodeId = ToNodeId("i=2416"); 01691 ref.TargetNodeClass = NodeClass::DataType; 01692 ref.TargetNodeId = ToNodeId("i=2402"); 01693 refs.push_back(ref); 01694 } 01695 { 01696 AddReferencesItem ref; 01697 ref.IsForward = true; 01698 ref.ReferenceTypeId = ToNodeId("i=52"); 01699 ref.SourceNodeId = ToNodeId("i=2416"); 01700 ref.TargetNodeClass = NodeClass::DataType; 01701 ref.TargetNodeId = ToNodeId("i=2404"); 01702 refs.push_back(ref); 01703 } 01704 { 01705 AddReferencesItem ref; 01706 ref.IsForward = true; 01707 ref.ReferenceTypeId = ToNodeId("i=53"); 01708 ref.SourceNodeId = ToNodeId("i=2416"); 01709 ref.TargetNodeClass = NodeClass::DataType; 01710 ref.TargetNodeId = ToNodeId("i=2427"); 01711 refs.push_back(ref); 01712 } 01713 { 01714 AddReferencesItem ref; 01715 ref.IsForward = true; 01716 ref.ReferenceTypeId = ToNodeId("i=54"); 01717 ref.SourceNodeId = ToNodeId("i=2416"); 01718 ref.TargetNodeClass = NodeClass::DataType; 01719 ref.TargetNodeId = ToNodeId("i=2378"); 01720 refs.push_back(ref); 01721 } 01722 registry.AddReferences(refs); 01723 } 01724 01725 { 01726 AddNodesItem node; 01727 node.RequestedNewNodeId = ToNodeId("i=2417"); 01728 node.BrowseName = ToQualifiedName("TransitionNumber"); 01729 node.Class = NodeClass::Variable; 01730 node.ParentNodeId = ToNodeId("i=2416"); 01731 node.ReferenceTypeId = ReferenceId::HasProperty; 01732 node.TypeDefinition = ToNodeId("i=68"); 01733 VariableAttributes attrs; 01734 attrs.DisplayName = LocalizedText("TransitionNumber"); 01735 attrs.Type = ObjectId::UInt32; 01736 attrs.Value = (uint32_t) 5; 01737 attrs.Rank = -1; 01738 node.Attributes = attrs; 01739 registry.AddNodes(std::vector<AddNodesItem>{node}); 01740 std::vector<AddReferencesItem> refs; 01741 { 01742 AddReferencesItem ref; 01743 ref.IsForward = true; 01744 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01745 ref.SourceNodeId = ToNodeId("i=2417"); 01746 ref.TargetNodeClass = NodeClass::DataType; 01747 ref.TargetNodeId = ToNodeId("i=78"); 01748 refs.push_back(ref); 01749 } 01750 registry.AddReferences(refs); 01751 } 01752 01753 { 01754 AddNodesItem node; 01755 node.RequestedNewNodeId = ToNodeId("i=2418"); 01756 node.BrowseName = ToQualifiedName("SuspendedToRunning"); 01757 node.Class = NodeClass::Object; 01758 node.ParentNodeId = ToNodeId("i=2391"); 01759 node.ReferenceTypeId = ReferenceId::HasComponent; 01760 node.TypeDefinition = ToNodeId("i=2310"); 01761 ObjectAttributes attrs; 01762 attrs.DisplayName = LocalizedText("SuspendedToRunning"); 01763 attrs.EventNotifier = 0; 01764 node.Attributes = attrs; 01765 registry.AddNodes(std::vector<AddNodesItem>{node}); 01766 std::vector<AddReferencesItem> refs; 01767 { 01768 AddReferencesItem ref; 01769 ref.IsForward = true; 01770 ref.ReferenceTypeId = ReferenceId::HasProperty; 01771 ref.SourceNodeId = ToNodeId("i=2418"); 01772 ref.TargetNodeClass = NodeClass::DataType; 01773 ref.TargetNodeId = ToNodeId("i=2419"); 01774 refs.push_back(ref); 01775 } 01776 { 01777 AddReferencesItem ref; 01778 ref.IsForward = true; 01779 ref.ReferenceTypeId = ToNodeId("i=51"); 01780 ref.SourceNodeId = ToNodeId("i=2418"); 01781 ref.TargetNodeClass = NodeClass::DataType; 01782 ref.TargetNodeId = ToNodeId("i=2404"); 01783 refs.push_back(ref); 01784 } 01785 { 01786 AddReferencesItem ref; 01787 ref.IsForward = true; 01788 ref.ReferenceTypeId = ToNodeId("i=52"); 01789 ref.SourceNodeId = ToNodeId("i=2418"); 01790 ref.TargetNodeClass = NodeClass::DataType; 01791 ref.TargetNodeId = ToNodeId("i=2402"); 01792 refs.push_back(ref); 01793 } 01794 { 01795 AddReferencesItem ref; 01796 ref.IsForward = true; 01797 ref.ReferenceTypeId = ToNodeId("i=53"); 01798 ref.SourceNodeId = ToNodeId("i=2418"); 01799 ref.TargetNodeClass = NodeClass::DataType; 01800 ref.TargetNodeId = ToNodeId("i=2428"); 01801 refs.push_back(ref); 01802 } 01803 { 01804 AddReferencesItem ref; 01805 ref.IsForward = true; 01806 ref.ReferenceTypeId = ToNodeId("i=54"); 01807 ref.SourceNodeId = ToNodeId("i=2418"); 01808 ref.TargetNodeClass = NodeClass::DataType; 01809 ref.TargetNodeId = ToNodeId("i=2378"); 01810 refs.push_back(ref); 01811 } 01812 registry.AddReferences(refs); 01813 } 01814 01815 { 01816 AddNodesItem node; 01817 node.RequestedNewNodeId = ToNodeId("i=2419"); 01818 node.BrowseName = ToQualifiedName("TransitionNumber"); 01819 node.Class = NodeClass::Variable; 01820 node.ParentNodeId = ToNodeId("i=2418"); 01821 node.ReferenceTypeId = ReferenceId::HasProperty; 01822 node.TypeDefinition = ToNodeId("i=68"); 01823 VariableAttributes attrs; 01824 attrs.DisplayName = LocalizedText("TransitionNumber"); 01825 attrs.Type = ObjectId::UInt32; 01826 attrs.Value = (uint32_t) 6; 01827 attrs.Rank = -1; 01828 node.Attributes = attrs; 01829 registry.AddNodes(std::vector<AddNodesItem>{node}); 01830 std::vector<AddReferencesItem> refs; 01831 { 01832 AddReferencesItem ref; 01833 ref.IsForward = true; 01834 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01835 ref.SourceNodeId = ToNodeId("i=2419"); 01836 ref.TargetNodeClass = NodeClass::DataType; 01837 ref.TargetNodeId = ToNodeId("i=78"); 01838 refs.push_back(ref); 01839 } 01840 registry.AddReferences(refs); 01841 } 01842 01843 { 01844 AddNodesItem node; 01845 node.RequestedNewNodeId = ToNodeId("i=2420"); 01846 node.BrowseName = ToQualifiedName("SuspendedToHalted"); 01847 node.Class = NodeClass::Object; 01848 node.ParentNodeId = ToNodeId("i=2391"); 01849 node.ReferenceTypeId = ReferenceId::HasComponent; 01850 node.TypeDefinition = ToNodeId("i=2310"); 01851 ObjectAttributes attrs; 01852 attrs.DisplayName = LocalizedText("SuspendedToHalted"); 01853 attrs.EventNotifier = 0; 01854 node.Attributes = attrs; 01855 registry.AddNodes(std::vector<AddNodesItem>{node}); 01856 std::vector<AddReferencesItem> refs; 01857 { 01858 AddReferencesItem ref; 01859 ref.IsForward = true; 01860 ref.ReferenceTypeId = ReferenceId::HasProperty; 01861 ref.SourceNodeId = ToNodeId("i=2420"); 01862 ref.TargetNodeClass = NodeClass::DataType; 01863 ref.TargetNodeId = ToNodeId("i=2421"); 01864 refs.push_back(ref); 01865 } 01866 { 01867 AddReferencesItem ref; 01868 ref.IsForward = true; 01869 ref.ReferenceTypeId = ToNodeId("i=51"); 01870 ref.SourceNodeId = ToNodeId("i=2420"); 01871 ref.TargetNodeClass = NodeClass::DataType; 01872 ref.TargetNodeId = ToNodeId("i=2404"); 01873 refs.push_back(ref); 01874 } 01875 { 01876 AddReferencesItem ref; 01877 ref.IsForward = true; 01878 ref.ReferenceTypeId = ToNodeId("i=52"); 01879 ref.SourceNodeId = ToNodeId("i=2420"); 01880 ref.TargetNodeClass = NodeClass::DataType; 01881 ref.TargetNodeId = ToNodeId("i=2406"); 01882 refs.push_back(ref); 01883 } 01884 { 01885 AddReferencesItem ref; 01886 ref.IsForward = true; 01887 ref.ReferenceTypeId = ToNodeId("i=53"); 01888 ref.SourceNodeId = ToNodeId("i=2420"); 01889 ref.TargetNodeClass = NodeClass::DataType; 01890 ref.TargetNodeId = ToNodeId("i=2429"); 01891 refs.push_back(ref); 01892 } 01893 { 01894 AddReferencesItem ref; 01895 ref.IsForward = true; 01896 ref.ReferenceTypeId = ToNodeId("i=54"); 01897 ref.SourceNodeId = ToNodeId("i=2420"); 01898 ref.TargetNodeClass = NodeClass::DataType; 01899 ref.TargetNodeId = ToNodeId("i=2378"); 01900 refs.push_back(ref); 01901 } 01902 registry.AddReferences(refs); 01903 } 01904 01905 { 01906 AddNodesItem node; 01907 node.RequestedNewNodeId = ToNodeId("i=2421"); 01908 node.BrowseName = ToQualifiedName("TransitionNumber"); 01909 node.Class = NodeClass::Variable; 01910 node.ParentNodeId = ToNodeId("i=2420"); 01911 node.ReferenceTypeId = ReferenceId::HasProperty; 01912 node.TypeDefinition = ToNodeId("i=68"); 01913 VariableAttributes attrs; 01914 attrs.DisplayName = LocalizedText("TransitionNumber"); 01915 attrs.Type = ObjectId::UInt32; 01916 attrs.Value = (uint32_t) 7; 01917 attrs.Rank = -1; 01918 node.Attributes = attrs; 01919 registry.AddNodes(std::vector<AddNodesItem>{node}); 01920 std::vector<AddReferencesItem> refs; 01921 { 01922 AddReferencesItem ref; 01923 ref.IsForward = true; 01924 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 01925 ref.SourceNodeId = ToNodeId("i=2421"); 01926 ref.TargetNodeClass = NodeClass::DataType; 01927 ref.TargetNodeId = ToNodeId("i=78"); 01928 refs.push_back(ref); 01929 } 01930 registry.AddReferences(refs); 01931 } 01932 01933 { 01934 AddNodesItem node; 01935 node.RequestedNewNodeId = ToNodeId("i=2422"); 01936 node.BrowseName = ToQualifiedName("SuspendedToReady"); 01937 node.Class = NodeClass::Object; 01938 node.ParentNodeId = ToNodeId("i=2391"); 01939 node.ReferenceTypeId = ReferenceId::HasComponent; 01940 node.TypeDefinition = ToNodeId("i=2310"); 01941 ObjectAttributes attrs; 01942 attrs.DisplayName = LocalizedText("SuspendedToReady"); 01943 attrs.EventNotifier = 0; 01944 node.Attributes = attrs; 01945 registry.AddNodes(std::vector<AddNodesItem>{node}); 01946 std::vector<AddReferencesItem> refs; 01947 { 01948 AddReferencesItem ref; 01949 ref.IsForward = true; 01950 ref.ReferenceTypeId = ReferenceId::HasProperty; 01951 ref.SourceNodeId = ToNodeId("i=2422"); 01952 ref.TargetNodeClass = NodeClass::DataType; 01953 ref.TargetNodeId = ToNodeId("i=2423"); 01954 refs.push_back(ref); 01955 } 01956 { 01957 AddReferencesItem ref; 01958 ref.IsForward = true; 01959 ref.ReferenceTypeId = ToNodeId("i=51"); 01960 ref.SourceNodeId = ToNodeId("i=2422"); 01961 ref.TargetNodeClass = NodeClass::DataType; 01962 ref.TargetNodeId = ToNodeId("i=2404"); 01963 refs.push_back(ref); 01964 } 01965 { 01966 AddReferencesItem ref; 01967 ref.IsForward = true; 01968 ref.ReferenceTypeId = ToNodeId("i=52"); 01969 ref.SourceNodeId = ToNodeId("i=2422"); 01970 ref.TargetNodeClass = NodeClass::DataType; 01971 ref.TargetNodeId = ToNodeId("i=2400"); 01972 refs.push_back(ref); 01973 } 01974 { 01975 AddReferencesItem ref; 01976 ref.IsForward = true; 01977 ref.ReferenceTypeId = ToNodeId("i=54"); 01978 ref.SourceNodeId = ToNodeId("i=2422"); 01979 ref.TargetNodeClass = NodeClass::DataType; 01980 ref.TargetNodeId = ToNodeId("i=2378"); 01981 refs.push_back(ref); 01982 } 01983 registry.AddReferences(refs); 01984 } 01985 01986 { 01987 AddNodesItem node; 01988 node.RequestedNewNodeId = ToNodeId("i=2423"); 01989 node.BrowseName = ToQualifiedName("TransitionNumber"); 01990 node.Class = NodeClass::Variable; 01991 node.ParentNodeId = ToNodeId("i=2422"); 01992 node.ReferenceTypeId = ReferenceId::HasProperty; 01993 node.TypeDefinition = ToNodeId("i=68"); 01994 VariableAttributes attrs; 01995 attrs.DisplayName = LocalizedText("TransitionNumber"); 01996 attrs.Type = ObjectId::UInt32; 01997 attrs.Value = (uint32_t) 8; 01998 attrs.Rank = -1; 01999 node.Attributes = attrs; 02000 registry.AddNodes(std::vector<AddNodesItem>{node}); 02001 std::vector<AddReferencesItem> refs; 02002 { 02003 AddReferencesItem ref; 02004 ref.IsForward = true; 02005 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02006 ref.SourceNodeId = ToNodeId("i=2423"); 02007 ref.TargetNodeClass = NodeClass::DataType; 02008 ref.TargetNodeId = ToNodeId("i=78"); 02009 refs.push_back(ref); 02010 } 02011 registry.AddReferences(refs); 02012 } 02013 02014 { 02015 AddNodesItem node; 02016 node.RequestedNewNodeId = ToNodeId("i=2424"); 02017 node.BrowseName = ToQualifiedName("ReadyToHalted"); 02018 node.Class = NodeClass::Object; 02019 node.ParentNodeId = ToNodeId("i=2391"); 02020 node.ReferenceTypeId = ReferenceId::HasComponent; 02021 node.TypeDefinition = ToNodeId("i=2310"); 02022 ObjectAttributes attrs; 02023 attrs.DisplayName = LocalizedText("ReadyToHalted"); 02024 attrs.EventNotifier = 0; 02025 node.Attributes = attrs; 02026 registry.AddNodes(std::vector<AddNodesItem>{node}); 02027 std::vector<AddReferencesItem> refs; 02028 { 02029 AddReferencesItem ref; 02030 ref.IsForward = true; 02031 ref.ReferenceTypeId = ReferenceId::HasProperty; 02032 ref.SourceNodeId = ToNodeId("i=2424"); 02033 ref.TargetNodeClass = NodeClass::DataType; 02034 ref.TargetNodeId = ToNodeId("i=2425"); 02035 refs.push_back(ref); 02036 } 02037 { 02038 AddReferencesItem ref; 02039 ref.IsForward = true; 02040 ref.ReferenceTypeId = ToNodeId("i=51"); 02041 ref.SourceNodeId = ToNodeId("i=2424"); 02042 ref.TargetNodeClass = NodeClass::DataType; 02043 ref.TargetNodeId = ToNodeId("i=2400"); 02044 refs.push_back(ref); 02045 } 02046 { 02047 AddReferencesItem ref; 02048 ref.IsForward = true; 02049 ref.ReferenceTypeId = ToNodeId("i=52"); 02050 ref.SourceNodeId = ToNodeId("i=2424"); 02051 ref.TargetNodeClass = NodeClass::DataType; 02052 ref.TargetNodeId = ToNodeId("i=2406"); 02053 refs.push_back(ref); 02054 } 02055 { 02056 AddReferencesItem ref; 02057 ref.IsForward = true; 02058 ref.ReferenceTypeId = ToNodeId("i=53"); 02059 ref.SourceNodeId = ToNodeId("i=2424"); 02060 ref.TargetNodeClass = NodeClass::DataType; 02061 ref.TargetNodeId = ToNodeId("i=2429"); 02062 refs.push_back(ref); 02063 } 02064 { 02065 AddReferencesItem ref; 02066 ref.IsForward = true; 02067 ref.ReferenceTypeId = ToNodeId("i=54"); 02068 ref.SourceNodeId = ToNodeId("i=2424"); 02069 ref.TargetNodeClass = NodeClass::DataType; 02070 ref.TargetNodeId = ToNodeId("i=2378"); 02071 refs.push_back(ref); 02072 } 02073 registry.AddReferences(refs); 02074 } 02075 02076 { 02077 AddNodesItem node; 02078 node.RequestedNewNodeId = ToNodeId("i=2425"); 02079 node.BrowseName = ToQualifiedName("TransitionNumber"); 02080 node.Class = NodeClass::Variable; 02081 node.ParentNodeId = ToNodeId("i=2424"); 02082 node.ReferenceTypeId = ReferenceId::HasProperty; 02083 node.TypeDefinition = ToNodeId("i=68"); 02084 VariableAttributes attrs; 02085 attrs.DisplayName = LocalizedText("TransitionNumber"); 02086 attrs.Type = ObjectId::UInt32; 02087 attrs.Value = (uint32_t) 9; 02088 attrs.Rank = -1; 02089 node.Attributes = attrs; 02090 registry.AddNodes(std::vector<AddNodesItem>{node}); 02091 std::vector<AddReferencesItem> refs; 02092 { 02093 AddReferencesItem ref; 02094 ref.IsForward = true; 02095 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02096 ref.SourceNodeId = ToNodeId("i=2425"); 02097 ref.TargetNodeClass = NodeClass::DataType; 02098 ref.TargetNodeId = ToNodeId("i=78"); 02099 refs.push_back(ref); 02100 } 02101 registry.AddReferences(refs); 02102 } 02103 02104 { 02105 AddNodesItem node; 02106 node.RequestedNewNodeId = ToNodeId("i=2378"); 02107 node.BrowseName = ToQualifiedName("ProgramTransitionEventType"); 02108 node.Class = NodeClass::ObjectType; 02109 node.ParentNodeId = ToNodeId("i=2311"); 02110 node.ReferenceTypeId = ReferenceId::HasSubtype; 02111 ObjectTypeAttributes attrs; 02112 attrs.DisplayName = LocalizedText("ProgramTransitionEventType"); 02113 attrs.IsAbstract = false; 02114 node.Attributes = attrs; 02115 registry.AddNodes(std::vector<AddNodesItem>{node}); 02116 std::vector<AddReferencesItem> refs; 02117 { 02118 AddReferencesItem ref; 02119 ref.IsForward = true; 02120 ref.ReferenceTypeId = ReferenceId::HasProperty; 02121 ref.SourceNodeId = ToNodeId("i=2378"); 02122 ref.TargetNodeClass = NodeClass::DataType; 02123 ref.TargetNodeId = ToNodeId("i=2379"); 02124 refs.push_back(ref); 02125 } 02126 registry.AddReferences(refs); 02127 } 02128 02129 { 02130 AddNodesItem node; 02131 node.RequestedNewNodeId = ToNodeId("i=2379"); 02132 node.BrowseName = ToQualifiedName("IntermediateResult"); 02133 node.Class = NodeClass::Variable; 02134 node.ParentNodeId = ToNodeId("i=2378"); 02135 node.ReferenceTypeId = ReferenceId::HasProperty; 02136 node.TypeDefinition = ToNodeId("i=68"); 02137 VariableAttributes attrs; 02138 attrs.DisplayName = LocalizedText("IntermediateResult"); 02139 attrs.Type = ObjectId::String; 02140 attrs.Rank = -1; 02141 node.Attributes = attrs; 02142 registry.AddNodes(std::vector<AddNodesItem>{node}); 02143 std::vector<AddReferencesItem> refs; 02144 { 02145 AddReferencesItem ref; 02146 ref.IsForward = true; 02147 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02148 ref.SourceNodeId = ToNodeId("i=2379"); 02149 ref.TargetNodeClass = NodeClass::DataType; 02150 ref.TargetNodeId = ToNodeId("i=78"); 02151 refs.push_back(ref); 02152 } 02153 registry.AddReferences(refs); 02154 } 02155 02156 { 02157 AddNodesItem node; 02158 node.RequestedNewNodeId = ToNodeId("i=11856"); 02159 node.BrowseName = ToQualifiedName("AuditProgramTransitionEventType"); 02160 node.Class = NodeClass::ObjectType; 02161 node.ParentNodeId = ToNodeId("i=2315"); 02162 node.ReferenceTypeId = ReferenceId::HasSubtype; 02163 ObjectTypeAttributes attrs; 02164 attrs.DisplayName = LocalizedText("AuditProgramTransitionEventType"); 02165 attrs.IsAbstract = false; 02166 node.Attributes = attrs; 02167 registry.AddNodes(std::vector<AddNodesItem>{node}); 02168 std::vector<AddReferencesItem> refs; 02169 { 02170 AddReferencesItem ref; 02171 ref.IsForward = true; 02172 ref.ReferenceTypeId = ReferenceId::HasProperty; 02173 ref.SourceNodeId = ToNodeId("i=11856"); 02174 ref.TargetNodeClass = NodeClass::DataType; 02175 ref.TargetNodeId = ToNodeId("i=11875"); 02176 refs.push_back(ref); 02177 } 02178 registry.AddReferences(refs); 02179 } 02180 02181 { 02182 AddNodesItem node; 02183 node.RequestedNewNodeId = ToNodeId("i=11875"); 02184 node.BrowseName = ToQualifiedName("TransitionNumber"); 02185 node.Class = NodeClass::Variable; 02186 node.ParentNodeId = ToNodeId("i=11856"); 02187 node.ReferenceTypeId = ReferenceId::HasProperty; 02188 node.TypeDefinition = ToNodeId("i=68"); 02189 VariableAttributes attrs; 02190 attrs.DisplayName = LocalizedText("TransitionNumber"); 02191 attrs.Type = ObjectId::UInt32; 02192 attrs.Rank = -1; 02193 node.Attributes = attrs; 02194 registry.AddNodes(std::vector<AddNodesItem>{node}); 02195 std::vector<AddReferencesItem> refs; 02196 { 02197 AddReferencesItem ref; 02198 ref.IsForward = true; 02199 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02200 ref.SourceNodeId = ToNodeId("i=11875"); 02201 ref.TargetNodeClass = NodeClass::DataType; 02202 ref.TargetNodeId = ToNodeId("i=78"); 02203 refs.push_back(ref); 02204 } 02205 registry.AddReferences(refs); 02206 } 02207 02208 { 02209 AddNodesItem node; 02210 node.RequestedNewNodeId = ToNodeId("i=3806"); 02211 node.BrowseName = ToQualifiedName("ProgramTransitionAuditEventType"); 02212 node.Class = NodeClass::ObjectType; 02213 node.ParentNodeId = ToNodeId("i=2315"); 02214 node.ReferenceTypeId = ReferenceId::HasSubtype; 02215 ObjectTypeAttributes attrs; 02216 attrs.DisplayName = LocalizedText("ProgramTransitionAuditEventType"); 02217 attrs.IsAbstract = false; 02218 node.Attributes = attrs; 02219 registry.AddNodes(std::vector<AddNodesItem>{node}); 02220 std::vector<AddReferencesItem> refs; 02221 { 02222 AddReferencesItem ref; 02223 ref.IsForward = true; 02224 ref.ReferenceTypeId = ReferenceId::HasComponent; 02225 ref.SourceNodeId = ToNodeId("i=3806"); 02226 ref.TargetNodeClass = NodeClass::DataType; 02227 ref.TargetNodeId = ToNodeId("i=3825"); 02228 refs.push_back(ref); 02229 } 02230 registry.AddReferences(refs); 02231 } 02232 02233 { 02234 AddNodesItem node; 02235 node.RequestedNewNodeId = ToNodeId("i=3825"); 02236 node.BrowseName = ToQualifiedName("Transition"); 02237 node.Class = NodeClass::Variable; 02238 node.ParentNodeId = ToNodeId("i=3806"); 02239 node.ReferenceTypeId = ReferenceId::HasComponent; 02240 node.TypeDefinition = ToNodeId("i=2767"); 02241 VariableAttributes attrs; 02242 attrs.DisplayName = LocalizedText("Transition"); 02243 attrs.Type = ObjectId::LocalizedText; 02244 attrs.Rank = -1; 02245 node.Attributes = attrs; 02246 registry.AddNodes(std::vector<AddNodesItem>{node}); 02247 std::vector<AddReferencesItem> refs; 02248 { 02249 AddReferencesItem ref; 02250 ref.IsForward = true; 02251 ref.ReferenceTypeId = ReferenceId::HasProperty; 02252 ref.SourceNodeId = ToNodeId("i=3825"); 02253 ref.TargetNodeClass = NodeClass::DataType; 02254 ref.TargetNodeId = ToNodeId("i=3826"); 02255 refs.push_back(ref); 02256 } 02257 { 02258 AddReferencesItem ref; 02259 ref.IsForward = true; 02260 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02261 ref.SourceNodeId = ToNodeId("i=3825"); 02262 ref.TargetNodeClass = NodeClass::DataType; 02263 ref.TargetNodeId = ToNodeId("i=78"); 02264 refs.push_back(ref); 02265 } 02266 registry.AddReferences(refs); 02267 } 02268 02269 { 02270 AddNodesItem node; 02271 node.RequestedNewNodeId = ToNodeId("i=3826"); 02272 node.BrowseName = ToQualifiedName("Id"); 02273 node.Class = NodeClass::Variable; 02274 node.ParentNodeId = ToNodeId("i=3825"); 02275 node.ReferenceTypeId = ReferenceId::HasProperty; 02276 node.TypeDefinition = ToNodeId("i=68"); 02277 VariableAttributes attrs; 02278 attrs.DisplayName = LocalizedText("Id"); 02279 attrs.Type = ObjectId::NodeId; 02280 attrs.Rank = -1; 02281 node.Attributes = attrs; 02282 registry.AddNodes(std::vector<AddNodesItem>{node}); 02283 std::vector<AddReferencesItem> refs; 02284 { 02285 AddReferencesItem ref; 02286 ref.IsForward = true; 02287 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02288 ref.SourceNodeId = ToNodeId("i=3826"); 02289 ref.TargetNodeClass = NodeClass::DataType; 02290 ref.TargetNodeId = ToNodeId("i=78"); 02291 refs.push_back(ref); 02292 } 02293 registry.AddReferences(refs); 02294 } 02295 02296 { 02297 AddNodesItem node; 02298 node.RequestedNewNodeId = ToNodeId("i=2380"); 02299 node.BrowseName = ToQualifiedName("ProgramDiagnosticType"); 02300 node.Class = NodeClass::VariableType; 02301 node.ParentNodeId = ToNodeId("i=63"); 02302 node.ReferenceTypeId = ReferenceId::HasSubtype; 02303 VariableTypeAttributes attrs; 02304 attrs.DisplayName = LocalizedText("ProgramDiagnosticType"); 02305 attrs.Type = ToNodeId("i=894"); 02306 attrs.Rank = -1; 02307 attrs.IsAbstract = false; 02308 node.Attributes = attrs; 02309 registry.AddNodes(std::vector<AddNodesItem>{node}); 02310 std::vector<AddReferencesItem> refs; 02311 { 02312 AddReferencesItem ref; 02313 ref.IsForward = true; 02314 ref.ReferenceTypeId = ReferenceId::HasProperty; 02315 ref.SourceNodeId = ToNodeId("i=2380"); 02316 ref.TargetNodeClass = NodeClass::DataType; 02317 ref.TargetNodeId = ToNodeId("i=2381"); 02318 refs.push_back(ref); 02319 } 02320 { 02321 AddReferencesItem ref; 02322 ref.IsForward = true; 02323 ref.ReferenceTypeId = ReferenceId::HasProperty; 02324 ref.SourceNodeId = ToNodeId("i=2380"); 02325 ref.TargetNodeClass = NodeClass::DataType; 02326 ref.TargetNodeId = ToNodeId("i=2382"); 02327 refs.push_back(ref); 02328 } 02329 { 02330 AddReferencesItem ref; 02331 ref.IsForward = true; 02332 ref.ReferenceTypeId = ReferenceId::HasProperty; 02333 ref.SourceNodeId = ToNodeId("i=2380"); 02334 ref.TargetNodeClass = NodeClass::DataType; 02335 ref.TargetNodeId = ToNodeId("i=2383"); 02336 refs.push_back(ref); 02337 } 02338 { 02339 AddReferencesItem ref; 02340 ref.IsForward = true; 02341 ref.ReferenceTypeId = ReferenceId::HasProperty; 02342 ref.SourceNodeId = ToNodeId("i=2380"); 02343 ref.TargetNodeClass = NodeClass::DataType; 02344 ref.TargetNodeId = ToNodeId("i=2384"); 02345 refs.push_back(ref); 02346 } 02347 { 02348 AddReferencesItem ref; 02349 ref.IsForward = true; 02350 ref.ReferenceTypeId = ReferenceId::HasProperty; 02351 ref.SourceNodeId = ToNodeId("i=2380"); 02352 ref.TargetNodeClass = NodeClass::DataType; 02353 ref.TargetNodeId = ToNodeId("i=2385"); 02354 refs.push_back(ref); 02355 } 02356 { 02357 AddReferencesItem ref; 02358 ref.IsForward = true; 02359 ref.ReferenceTypeId = ReferenceId::HasProperty; 02360 ref.SourceNodeId = ToNodeId("i=2380"); 02361 ref.TargetNodeClass = NodeClass::DataType; 02362 ref.TargetNodeId = ToNodeId("i=2386"); 02363 refs.push_back(ref); 02364 } 02365 { 02366 AddReferencesItem ref; 02367 ref.IsForward = true; 02368 ref.ReferenceTypeId = ReferenceId::HasProperty; 02369 ref.SourceNodeId = ToNodeId("i=2380"); 02370 ref.TargetNodeClass = NodeClass::DataType; 02371 ref.TargetNodeId = ToNodeId("i=2387"); 02372 refs.push_back(ref); 02373 } 02374 { 02375 AddReferencesItem ref; 02376 ref.IsForward = true; 02377 ref.ReferenceTypeId = ReferenceId::HasProperty; 02378 ref.SourceNodeId = ToNodeId("i=2380"); 02379 ref.TargetNodeClass = NodeClass::DataType; 02380 ref.TargetNodeId = ToNodeId("i=2388"); 02381 refs.push_back(ref); 02382 } 02383 { 02384 AddReferencesItem ref; 02385 ref.IsForward = true; 02386 ref.ReferenceTypeId = ReferenceId::HasProperty; 02387 ref.SourceNodeId = ToNodeId("i=2380"); 02388 ref.TargetNodeClass = NodeClass::DataType; 02389 ref.TargetNodeId = ToNodeId("i=2389"); 02390 refs.push_back(ref); 02391 } 02392 { 02393 AddReferencesItem ref; 02394 ref.IsForward = true; 02395 ref.ReferenceTypeId = ReferenceId::HasProperty; 02396 ref.SourceNodeId = ToNodeId("i=2380"); 02397 ref.TargetNodeClass = NodeClass::DataType; 02398 ref.TargetNodeId = ToNodeId("i=2390"); 02399 refs.push_back(ref); 02400 } 02401 registry.AddReferences(refs); 02402 } 02403 02404 { 02405 AddNodesItem node; 02406 node.RequestedNewNodeId = ToNodeId("i=2381"); 02407 node.BrowseName = ToQualifiedName("CreateSessionId"); 02408 node.Class = NodeClass::Variable; 02409 node.ParentNodeId = ToNodeId("i=2380"); 02410 node.ReferenceTypeId = ReferenceId::HasProperty; 02411 node.TypeDefinition = ToNodeId("i=68"); 02412 VariableAttributes attrs; 02413 attrs.DisplayName = LocalizedText("CreateSessionId"); 02414 attrs.Type = ObjectId::NodeId; 02415 attrs.Rank = -1; 02416 node.Attributes = attrs; 02417 registry.AddNodes(std::vector<AddNodesItem>{node}); 02418 std::vector<AddReferencesItem> refs; 02419 { 02420 AddReferencesItem ref; 02421 ref.IsForward = true; 02422 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02423 ref.SourceNodeId = ToNodeId("i=2381"); 02424 ref.TargetNodeClass = NodeClass::DataType; 02425 ref.TargetNodeId = ToNodeId("i=78"); 02426 refs.push_back(ref); 02427 } 02428 registry.AddReferences(refs); 02429 } 02430 02431 { 02432 AddNodesItem node; 02433 node.RequestedNewNodeId = ToNodeId("i=2382"); 02434 node.BrowseName = ToQualifiedName("CreateClientName"); 02435 node.Class = NodeClass::Variable; 02436 node.ParentNodeId = ToNodeId("i=2380"); 02437 node.ReferenceTypeId = ReferenceId::HasProperty; 02438 node.TypeDefinition = ToNodeId("i=68"); 02439 VariableAttributes attrs; 02440 attrs.DisplayName = LocalizedText("CreateClientName"); 02441 attrs.Type = ObjectId::String; 02442 attrs.Rank = -1; 02443 node.Attributes = attrs; 02444 registry.AddNodes(std::vector<AddNodesItem>{node}); 02445 std::vector<AddReferencesItem> refs; 02446 { 02447 AddReferencesItem ref; 02448 ref.IsForward = true; 02449 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02450 ref.SourceNodeId = ToNodeId("i=2382"); 02451 ref.TargetNodeClass = NodeClass::DataType; 02452 ref.TargetNodeId = ToNodeId("i=78"); 02453 refs.push_back(ref); 02454 } 02455 registry.AddReferences(refs); 02456 } 02457 02458 { 02459 AddNodesItem node; 02460 node.RequestedNewNodeId = ToNodeId("i=2383"); 02461 node.BrowseName = ToQualifiedName("InvocationCreationTime"); 02462 node.Class = NodeClass::Variable; 02463 node.ParentNodeId = ToNodeId("i=2380"); 02464 node.ReferenceTypeId = ReferenceId::HasProperty; 02465 node.TypeDefinition = ToNodeId("i=68"); 02466 VariableAttributes attrs; 02467 attrs.DisplayName = LocalizedText("InvocationCreationTime"); 02468 attrs.Type = ToNodeId("i=294"); 02469 attrs.Rank = -1; 02470 node.Attributes = attrs; 02471 registry.AddNodes(std::vector<AddNodesItem>{node}); 02472 std::vector<AddReferencesItem> refs; 02473 { 02474 AddReferencesItem ref; 02475 ref.IsForward = true; 02476 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02477 ref.SourceNodeId = ToNodeId("i=2383"); 02478 ref.TargetNodeClass = NodeClass::DataType; 02479 ref.TargetNodeId = ToNodeId("i=78"); 02480 refs.push_back(ref); 02481 } 02482 registry.AddReferences(refs); 02483 } 02484 02485 { 02486 AddNodesItem node; 02487 node.RequestedNewNodeId = ToNodeId("i=2384"); 02488 node.BrowseName = ToQualifiedName("LastTransitionTime"); 02489 node.Class = NodeClass::Variable; 02490 node.ParentNodeId = ToNodeId("i=2380"); 02491 node.ReferenceTypeId = ReferenceId::HasProperty; 02492 node.TypeDefinition = ToNodeId("i=68"); 02493 VariableAttributes attrs; 02494 attrs.DisplayName = LocalizedText("LastTransitionTime"); 02495 attrs.Type = ToNodeId("i=294"); 02496 attrs.Rank = -1; 02497 node.Attributes = attrs; 02498 registry.AddNodes(std::vector<AddNodesItem>{node}); 02499 std::vector<AddReferencesItem> refs; 02500 { 02501 AddReferencesItem ref; 02502 ref.IsForward = true; 02503 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02504 ref.SourceNodeId = ToNodeId("i=2384"); 02505 ref.TargetNodeClass = NodeClass::DataType; 02506 ref.TargetNodeId = ToNodeId("i=78"); 02507 refs.push_back(ref); 02508 } 02509 registry.AddReferences(refs); 02510 } 02511 02512 { 02513 AddNodesItem node; 02514 node.RequestedNewNodeId = ToNodeId("i=2385"); 02515 node.BrowseName = ToQualifiedName("LastMethodCall"); 02516 node.Class = NodeClass::Variable; 02517 node.ParentNodeId = ToNodeId("i=2380"); 02518 node.ReferenceTypeId = ReferenceId::HasProperty; 02519 node.TypeDefinition = ToNodeId("i=68"); 02520 VariableAttributes attrs; 02521 attrs.DisplayName = LocalizedText("LastMethodCall"); 02522 attrs.Type = ObjectId::String; 02523 attrs.Rank = -1; 02524 node.Attributes = attrs; 02525 registry.AddNodes(std::vector<AddNodesItem>{node}); 02526 std::vector<AddReferencesItem> refs; 02527 { 02528 AddReferencesItem ref; 02529 ref.IsForward = true; 02530 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02531 ref.SourceNodeId = ToNodeId("i=2385"); 02532 ref.TargetNodeClass = NodeClass::DataType; 02533 ref.TargetNodeId = ToNodeId("i=78"); 02534 refs.push_back(ref); 02535 } 02536 registry.AddReferences(refs); 02537 } 02538 02539 { 02540 AddNodesItem node; 02541 node.RequestedNewNodeId = ToNodeId("i=2386"); 02542 node.BrowseName = ToQualifiedName("LastMethodSessionId"); 02543 node.Class = NodeClass::Variable; 02544 node.ParentNodeId = ToNodeId("i=2380"); 02545 node.ReferenceTypeId = ReferenceId::HasProperty; 02546 node.TypeDefinition = ToNodeId("i=68"); 02547 VariableAttributes attrs; 02548 attrs.DisplayName = LocalizedText("LastMethodSessionId"); 02549 attrs.Type = ObjectId::NodeId; 02550 attrs.Rank = -1; 02551 node.Attributes = attrs; 02552 registry.AddNodes(std::vector<AddNodesItem>{node}); 02553 std::vector<AddReferencesItem> refs; 02554 { 02555 AddReferencesItem ref; 02556 ref.IsForward = true; 02557 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02558 ref.SourceNodeId = ToNodeId("i=2386"); 02559 ref.TargetNodeClass = NodeClass::DataType; 02560 ref.TargetNodeId = ToNodeId("i=78"); 02561 refs.push_back(ref); 02562 } 02563 registry.AddReferences(refs); 02564 } 02565 02566 { 02567 AddNodesItem node; 02568 node.RequestedNewNodeId = ToNodeId("i=2387"); 02569 node.BrowseName = ToQualifiedName("LastMethodInputArguments"); 02570 node.Class = NodeClass::Variable; 02571 node.ParentNodeId = ToNodeId("i=2380"); 02572 node.ReferenceTypeId = ReferenceId::HasProperty; 02573 node.TypeDefinition = ToNodeId("i=68"); 02574 VariableAttributes attrs; 02575 attrs.DisplayName = LocalizedText("LastMethodInputArguments"); 02576 attrs.Type = ToNodeId("i=296"); 02577 attrs.Rank = 1; 02578 node.Attributes = attrs; 02579 registry.AddNodes(std::vector<AddNodesItem>{node}); 02580 std::vector<AddReferencesItem> refs; 02581 { 02582 AddReferencesItem ref; 02583 ref.IsForward = true; 02584 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02585 ref.SourceNodeId = ToNodeId("i=2387"); 02586 ref.TargetNodeClass = NodeClass::DataType; 02587 ref.TargetNodeId = ToNodeId("i=78"); 02588 refs.push_back(ref); 02589 } 02590 registry.AddReferences(refs); 02591 } 02592 02593 { 02594 AddNodesItem node; 02595 node.RequestedNewNodeId = ToNodeId("i=2388"); 02596 node.BrowseName = ToQualifiedName("LastMethodOutputArguments"); 02597 node.Class = NodeClass::Variable; 02598 node.ParentNodeId = ToNodeId("i=2380"); 02599 node.ReferenceTypeId = ReferenceId::HasProperty; 02600 node.TypeDefinition = ToNodeId("i=68"); 02601 VariableAttributes attrs; 02602 attrs.DisplayName = LocalizedText("LastMethodOutputArguments"); 02603 attrs.Type = ToNodeId("i=296"); 02604 attrs.Rank = 1; 02605 node.Attributes = attrs; 02606 registry.AddNodes(std::vector<AddNodesItem>{node}); 02607 std::vector<AddReferencesItem> refs; 02608 { 02609 AddReferencesItem ref; 02610 ref.IsForward = true; 02611 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02612 ref.SourceNodeId = ToNodeId("i=2388"); 02613 ref.TargetNodeClass = NodeClass::DataType; 02614 ref.TargetNodeId = ToNodeId("i=78"); 02615 refs.push_back(ref); 02616 } 02617 registry.AddReferences(refs); 02618 } 02619 02620 { 02621 AddNodesItem node; 02622 node.RequestedNewNodeId = ToNodeId("i=2389"); 02623 node.BrowseName = ToQualifiedName("LastMethodCallTime"); 02624 node.Class = NodeClass::Variable; 02625 node.ParentNodeId = ToNodeId("i=2380"); 02626 node.ReferenceTypeId = ReferenceId::HasProperty; 02627 node.TypeDefinition = ToNodeId("i=68"); 02628 VariableAttributes attrs; 02629 attrs.DisplayName = LocalizedText("LastMethodCallTime"); 02630 attrs.Type = ToNodeId("i=294"); 02631 attrs.Rank = -1; 02632 node.Attributes = attrs; 02633 registry.AddNodes(std::vector<AddNodesItem>{node}); 02634 std::vector<AddReferencesItem> refs; 02635 { 02636 AddReferencesItem ref; 02637 ref.IsForward = true; 02638 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02639 ref.SourceNodeId = ToNodeId("i=2389"); 02640 ref.TargetNodeClass = NodeClass::DataType; 02641 ref.TargetNodeId = ToNodeId("i=78"); 02642 refs.push_back(ref); 02643 } 02644 registry.AddReferences(refs); 02645 } 02646 02647 { 02648 AddNodesItem node; 02649 node.RequestedNewNodeId = ToNodeId("i=2390"); 02650 node.BrowseName = ToQualifiedName("LastMethodReturnStatus"); 02651 node.Class = NodeClass::Variable; 02652 node.ParentNodeId = ToNodeId("i=2380"); 02653 node.ReferenceTypeId = ReferenceId::HasProperty; 02654 node.TypeDefinition = ToNodeId("i=68"); 02655 VariableAttributes attrs; 02656 attrs.DisplayName = LocalizedText("LastMethodReturnStatus"); 02657 attrs.Type = ToNodeId("i=299"); 02658 attrs.Rank = -1; 02659 node.Attributes = attrs; 02660 registry.AddNodes(std::vector<AddNodesItem>{node}); 02661 std::vector<AddReferencesItem> refs; 02662 { 02663 AddReferencesItem ref; 02664 ref.IsForward = true; 02665 ref.ReferenceTypeId = ReferenceId::HasModellingRule; 02666 ref.SourceNodeId = ToNodeId("i=2390"); 02667 ref.TargetNodeClass = NodeClass::DataType; 02668 ref.TargetNodeId = ToNodeId("i=78"); 02669 refs.push_back(ref); 02670 } 02671 registry.AddReferences(refs); 02672 } 02673 02674 { 02675 AddNodesItem node; 02676 node.RequestedNewNodeId = ToNodeId("i=894"); 02677 node.BrowseName = ToQualifiedName("ProgramDiagnosticDataType"); 02678 node.Class = NodeClass::DataType; 02679 node.ParentNodeId = ToNodeId("i=22"); 02680 node.ReferenceTypeId = ReferenceId::HasSubtype; 02681 DataTypeAttributes attrs; 02682 attrs.DisplayName = LocalizedText("ProgramDiagnosticDataType"); 02683 attrs.IsAbstract = false; 02684 node.Attributes = attrs; 02685 registry.AddNodes(std::vector<AddNodesItem>{node}); 02686 } 02687 02688 { 02689 AddNodesItem node; 02690 node.RequestedNewNodeId = ToNodeId("i=895"); 02691 node.BrowseName = ToQualifiedName("Default XML"); 02692 node.Class = NodeClass::Object; 02693 node.ParentNodeId = ToNodeId("i=894"); 02694 node.ReferenceTypeId = ReferenceId::HasEncoding; 02695 node.TypeDefinition = ToNodeId("i=76"); 02696 ObjectAttributes attrs; 02697 attrs.DisplayName = LocalizedText("Default XML"); 02698 attrs.EventNotifier = 0; 02699 node.Attributes = attrs; 02700 registry.AddNodes(std::vector<AddNodesItem>{node}); 02701 std::vector<AddReferencesItem> refs; 02702 { 02703 AddReferencesItem ref; 02704 ref.IsForward = true; 02705 ref.ReferenceTypeId = ReferenceId::HasDescription; 02706 ref.SourceNodeId = ToNodeId("i=895"); 02707 ref.TargetNodeClass = NodeClass::DataType; 02708 ref.TargetNodeId = ToNodeId("i=8882"); 02709 refs.push_back(ref); 02710 } 02711 registry.AddReferences(refs); 02712 } 02713 02714 { 02715 AddNodesItem node; 02716 node.RequestedNewNodeId = ToNodeId("i=896"); 02717 node.BrowseName = ToQualifiedName("Default Binary"); 02718 node.Class = NodeClass::Object; 02719 node.ParentNodeId = ToNodeId("i=894"); 02720 node.ReferenceTypeId = ReferenceId::HasEncoding; 02721 node.TypeDefinition = ToNodeId("i=76"); 02722 ObjectAttributes attrs; 02723 attrs.DisplayName = LocalizedText("Default Binary"); 02724 attrs.EventNotifier = 0; 02725 node.Attributes = attrs; 02726 registry.AddNodes(std::vector<AddNodesItem>{node}); 02727 std::vector<AddReferencesItem> refs; 02728 { 02729 AddReferencesItem ref; 02730 ref.IsForward = true; 02731 ref.ReferenceTypeId = ReferenceId::HasDescription; 02732 ref.SourceNodeId = ToNodeId("i=896"); 02733 ref.TargetNodeClass = NodeClass::DataType; 02734 ref.TargetNodeId = ToNodeId("i=8247"); 02735 refs.push_back(ref); 02736 } 02737 registry.AddReferences(refs); 02738 } 02739 02740 } 02741 02742 } // namespace 02743