Ets_Nt_Import_Object_Create()
Note: Requires OPNET Development Kit
Abstract
Creates an object in the import model.
Syntax
Ets_Nt_Import_Object_Create (name, type, parent_ptr)
| Argument | Type | Description |
|---|---|---|
name |
const char* |
Name of the object to be created. |
type |
EtsT_Nt_Import_Object_Type |
Type of object to be created; one of the values given in Table 24 Import Sub-Package Symbolic Constants. |
parent_ptr |
EtsT_Nt_Import_Object* |
Parent subnet for the object. If two objects share a parent, they will appear in the same subnet. |
Return Type
EtsT_Nt_Import_Object*
The newly created object.
Header
ets_nt_obj_import.h
Details
The object created by this function can represent one of the following network objects:
- Fixed node
- Duplex link
- Path
- Demand
This function generates a recoverable error if name is unspecified (NIL pointer or empty string) or if parent_ptr is NIL or not a subnet.