Ema_Object_Attr_Add()

Abstract

Adds a user-defined attribute to the specified object.

Syntax

Ema_Object_Attr_Add (model_id, object_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. A model ID can be obtained from several EMA functions.]
object_id EmaT_Object_Id numeric object ID of the object-of-interest [This value is a numeric identifier that references an object. An object ID can be obtained from several EMA functions.]
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 objects. A user-defined attribute is an attribute defined by the user for model-specific purposes.

EMA permits object attributes to be added to any object type. 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