Ets_Nt_Import_Object_Network_Attribute_Add()
Note: Requires OPNET Development Kit
Abstract
Adds an attribute to a network as a whole.
Syntax
Ets_Nt_Import_Object_Network_Attribute_Add (imp_obj_ptr, name, value)
| Argument | Type | Description |
|---|---|---|
imp_obj_ptr |
EtsT_Nt_Import_Object* |
Object of interest. |
name |
const char* |
Name of the attribute to add. |
value |
const char* |
Value of the attribute to add. |
Return Type
void
No return value.
Header
ets_nt_obj_import.h
Details
This function adds a characteristic to the top subnet of the model containing imp_obj_ptr. The characteristic is treated as a network-wide attribute. The characteristic is not added if the top subnet already contains a characteristic with the same name and value.
This function can be used to set attributes such as the span of a network.
This function generates a recoverable error if imp_obj_ptr is NIL, if name is unspecified (NIL pointer or empty string), or if value is NIL.