Ema_Model_Attr_Get()

Abstract

Obtains the value of the specified object attributes.

Syntax

Ema_Model_Attr_Get (model_id, <ACV_List>)
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.]
<ACV_List> list of one or more ACV argument trios [Each ACV consists of three comma-separated arguments:
- a string indicating the attribute name
- a symbolic constant or macro indicating the component
- a pointer to the memory location which will be filled by the value of the attribute
This list must be terminated by the symbolic constant EMAC_EOL.]

Return Type

void

No return value.

ema.h

Details

This function implements the attr_get operator for objects.

A common use of this function is to get the number of objects in a model, as follows:

Ema_Model_Attr_Get (<model_id>,
	ATTR_EMA_NUM_OBJECTS, COMP_OBTYPE(<object_type>), &<num_objs>, EMAC_EOL)

where:

<object_type> is the symbolic constant representing the object type within the model (such as OBJ_ND_PROCESSOR). These are listed in the tables following Models, Objects, and Attributes.

<num_objs> is an integer

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