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.
Header
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:
scoreis a numeric value that will be added to a model’s score if the value of the characteristic matches that model’s self-description. Setscoreto EtsC_Nt_Characteristic_Score_Required to require that the characteristic match a model’s self-description.comparatorspecifies 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_createspecifies whether the characteristic will be passed to Device Creator to be included on a new model, if one must be generated.