Ema_Model_Attr_Add()

Abstract

Adds a user-defined attribute to the specified model.

Syntax

Ema_Model_Attr_Add (model_id, attr_name, attr_properties)
Argument Type Description
model_id EmaT_Model_Id numeric model ID of the model-of-interest [This value is a numeric identifier that references a model. Use Ema_Model_Create(), Ema_Model_Copy(), or Ema_Model_Read() to obtain a model ID.]
attr_name char* name of the new attribute
attr_properties EmaT_Object_Id numeric object ID of the properties object for the attribute

Return Type

void

No return value.

ema.h

Details

This function implements the attr_add operator for models. A user-defined attribute is an attribute defined by the user for model-specific purposes.

EMA permits user-defined attributes to be added to any model type. However, only five model types support model attributes: base and derived node models, base and derived link models, and process models. Only these model types will retain model attributes when written out by EMA. Attempts to add an attribute with a name that is identical to an existing attribute will fail, causing an error.

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