关联

Topo 包提供了若干用于处理对象关联的函数。关联表示两个对象之间的直接关系,表明对象之间存在某种连接,可用于遍历网络的可视化表示。

**注意:**这里的关联不包括仿真或分析过程中形成的动态或隐式逻辑关系。例如,在无线建模中,移动站点和卫星站点并未通过点对点或总线链路显式连接,因此它们只可能存在路径(path)和需求(demand)关联。此外,无线域也不具有关联。

图 12 展示了一个简单网络,表 40 列出了该网络中每个对象的各种关联。以下小节说明关联是如何确定的。

图 12:简单网络

简单网络

表 40:简单网络中的关联

对象 In Out Through In Global Out Global
Subnet_A Link_2, Subnet_B Link_2, Subnet_B none Link_2, Node_3 Link_2, Node_3
Link_1 Node_1 Node_2 none Node_1 Node_2
Subnet_B Link_2, Subnet_A Link_2, Subnet_A Path_1 Link_2, Node_1 Link_2, Node_1
Link_2 Subnet_A, Subnet_B Subnet_A, Subnet_B Path_1 Node_1, Node_3 Node_1, Node_3
Node_1 none Link_1, Node_2 Path_1 Link_2, Node_3 Link_1, Link_2, Node_2, Node_3
Path_1 Node_2, Node_3 Node_2, Node_3 Node_1, Node_2, Node_3, Link_1, Link_2 Node_2, Node_3 Node_2, Node_3
Node_2 Link_1, Node_1, Path_1, Demand_1 none Path_1 Link_1, Node_1, Path_1, Demand_1 none
Demand_1 Node_3 Node_2 none Node_3 Node_2
Node_3 none Path_1, Demand_1 Path_1 Link_2, Node_1 Link_2, Node_1, Path_1, Demand_1