Ets_Nt_Import_Object_Characteristic_Score_Add()

Note: Requires OPNET Development Kit

Abstract

Creates a new characteristic for an object and specifies parameters for the model-matching phase.

Syntax

Ets_Nt_Import_Object_Characteristic_Score_Add (imp_obj_ptr, name, value, score, comparator, pass_to_dev_create)
Argument Type Description
imp_obj_ptr EtsT_Nt_Import_Object* Object to which to add the characteristic.
name const char* Name of the characteristic to be added.
value const char* Value of the characteristic to be added.
score double Score for the characteristic.
comparator const char* String specifying how the characteristic should be matched to a model (see Details).
pass_to_dev_create int Whether to pass the characteristic to Device Creator (EtsC_True or EtsC_False).

Return Type

void

No return value.

ets_nt_obj_import.h

Details

This function works like Ets_Nt_Import_Object_Characteristic_Add(), plus it lets you specify parameters to be used during model matching:

  • score is a numeric value that will be added to a model’s score if the value of the characteristic matches that model’s self-description. Set score to EtsC_Nt_Characteristic_Score_Required to require that the characteristic match a model’s self-description.
  • comparator specifies how the characteristic should be matched against each model when looking for a match. The value must be one of the following:
    • Contains
    • Equals
    • Equals One Of
    • EqualsOneOf
    • Contains One Of
    • ContainsOneOf
  • pass_to_dev_create specifies whether the characteristic will be passed to Device Creator to be included on a new model, if one must be generated.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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