EtsT_View_Model_Filter_Proc

Note: Requires OPNET Development Kit

Abstract

Callback: Called once when the user selects a view name in the View > Set Network/Subnet View menu.

Syntax

<view_model_filter_proc_name> (view_hndl, model_hndl, subnet_hndl)
Argument Type Description
view_hndl EtsT_View_Handle View to be applied.
model_hndl EtsT_Model_Handle Model of interest.
subnet_hndl EtsT_Obj_Handle Subnet of interest.

Return Type

EtsT_Compcode

EtsC_Compcode_Success if the filter operation is successful; EtsC_Compcode_Failure otherwise.

ets_api_view.h

Details

Model filters are implemented by the client code and should do the work of iterating over the network's objects and specifiying which objects are included in the view. If the subnet_hndl is invalid, the filter should act on the entire network; otherwise, only on the subnet.

This callback is specified in the view definition file using the tag:

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