2015-04-01 56 views
0

我必須鏈接兩個模塊: 例如:我在模塊「A」中有一些信息,模塊「B」中的信息與模塊「A」類似,模塊「C」具有相同的信息。現在鏈接出現在'A'到'B'和'B'到'C'之間。目標是將'C'鏈接到'A'。如何使用DOOR中的DXL從一個模塊鏈接到另一個模塊?

+0

這個問題太廣泛了。你使用哪種編程語言? – Alexander 2015-04-01 12:19:07

+0

您是否試圖將C中的單個對象鏈接到A中的單個對象?或者你是否想要通過模塊C並將所有對象鏈接到A中的對應對象?另外,如果您已經有從A到B,從B到C的鏈接,那麼將C鏈接到A有什麼作用?您可以在不需要額外鏈接的情況下顯示可追溯性。 – 2015-04-01 13:43:59

回答

1

創建鏈接到駐留在一個不同模塊不從創建鏈接到相同模塊的對象不同一個DOORS對象。您只需從模塊中檢索對象句柄。

考慮一下:

Object sourceObj = ... // you already have this object handle 
Object targetObj = null 
const string targetModuleName = "/my/DOORS/module" 

// open the module 
Module mod = edit(targetModuleName, true, false) 
if (null(mod)) ack("Error!") 

// now it depends on how you can identify your target object 
for targetObj in mod do { 
    // example: if the object identifier matches ... 
    if (... == identifier(targetObj)) { 
     sourceObj -> targetObj 
     break 
    } 
} 

此外,看看this question那個史蒂夫解釋這種情況下也是如此。

相關問題