EtsT_View_Model_Filter_Proc

注意: 需要 OPNET Development Kit

摘要

回调:当用户在 View > Set Network/Subnet View 菜单中选择视图名称时调用一次。

语法

<view_model_filter_proc_name> (view_hndl, model_hndl, subnet_hndl)
参数 类型 说明
view_hndl EtsT_View_Handle 要应用的视图。
model_hndl EtsT_Model_Handle 目标模型。
subnet_hndl EtsT_Obj_Handle 目标子网。

返回类型

EtsT_Compcode

过滤操作成功时返回 EtsC_Compcode_Success,否则返回 EtsC_Compcode_Failure。

头文件

ets_api_view.h

详情

模型过滤器由客户端代码实现,应负责遍历网络中的对象并指定哪些对象包含在视图中。如果 subnet_hndl 无效,过滤器应作用于整个网络;否则只作用于该子网。

此回调在视图定义文件中通过以下标记指定:

model filter: <library_name> <function_name>

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com