模型、对象与属性

本节说明通过 Ema 包支持的 Riverbed 分析软件模型、对象与属性。模型、对象和属性各有一个唯一的符号常量(或字符串),用于在本节之前所述 EMA 函数的调用中标识它们。符号常量与字符串的集合以表格形式列于本节之中。对于属性,还列出其核心类型和类型修饰符。

注:由可选功能添加的模型、对象和属性在该功能的文档中说明。例如,移动节点和子网对象在 Wireless 文档中说明。

某些对象和属性的名称对 Riverbed 分析软件的用户来说可能比较陌生,因为它们代表的数据由应用程序的图形工具透明地管理。例如,大多数模型都有一个 position 对象,用于指定图标或其他图形项在屏幕上绘制的位置。用户不会显式输入这些数据,因为它们通过鼠标位置隐式捕获。但在基于 EMA 的应用中,必须显式引用并赋值这些数据。

此外,某些对象类型具有冗余属性。这些属性用于在不同软件版本之间提供兼容性。冗余属性有两种:

  • 出现在多种对象类型上的属性。
  • 出现在同一对象类型上且指定相同信息的多个属性。

冗余属性使得在某个版本下开发的 EMA 应用可以在另一版本中使用,只要在调用 Ema_Init() 时传入 EMAC_MODE_REL_<nn> 标志,如Ema_Init()所述。例如,subnet 对象有一些冗余属性(如 grid style),它们在当前版本中属于 subnet view 对象并与其一起说明,但在较早的版本中属于 subnet 对象。

生成 EMA 代码时,冗余属性可能变得可见,并可通过Ema_Object_Print()和Ema_Model_Attr_Get()等函数访问。但是,只有与 EMAC_MODE_REL_<nn> 标志所指定版本对应的属性才具有随模型运行而更新的实际值。

符号常量(Symbolic Constants)

下表列出作为特殊值出现在本节其余属性表中的符号常量。

表 10:特殊属性值

含义 符号常量
禁用的 toggle EMAC_DISABLED
启用的 toggle EMAC_ENABLED
"无穷大"双精度值 EMAC_DBL_INFINITY
未分配的对象 ID EMAC_NULL_OBJ_ID

EMA 模型类型(EMA Model Types)

下表列出标识 EMA 支持的每种模型类型的符号常量。

表 11:Riverbed 模型

模型类型 符号常量
project 模型 MOD_PROJECT
网络模型 MOD_NETWORK
节点模型 MOD_NODE
进程模型 MOD_PROCESS
外部系统定义 MOD_ESD
链路模型 MOD_LINK
路径模型 MOD_PATH
需求模型 MOD_DEMAND
流量模型 MOD_TRAFFIC
PDF MOD_PDF
数据包格式 MOD_PK_FORMAT
ICI 格式 MOD_ICI_FORMAT
探测列表 MOD_PROBES
Web 报告探测列表 MOD_REPORT_PROBES
SLA 报告探测列表 MOD_SLA_PROBES
仿真序列 MOD_SIM_SEQ
输出向量 MOD_OUTVECTORS
输出标量 MOD_OUTSCALARS
地图数据集 MOD_CARTO
公共属性描述模型 MOD_PUB_AD
派生节点模型 MOD_DER_NODE
派生链路模型 MOD_DER_LINK
派生路径模型 MOD_DER_PATH
派生需求模型 MOD_DER_DEMAND

Project 模型(Project Model)

表 12:Project 对象

对象类型 符号常量
scenario OBJ_PJ_SCENARIO
scenario import state OBJ_PJ_SCENARIO_IMPORT_STATE
traffic growth data OBJ_PJ_SCENARIO_LONG_TERM_STUDY

表 13:Project 模型属性

名称 类型 默认值
scenario object ID¹
current scenario integer 0

注 1:scenario 对象的对象 ID 数组

表 14:Scenario 对象属性

名称 类型 默认值
name string "unnamed"
import state object ID¹
long term study object ID²

注 1:scenario import state 对象的 ID。 注 2:traffic growth 对象的 ID

表 15:Scenario Import State 对象属性

名称 类型 默认值
server name string "localhost"
subnet name string
aggregation integer 0
repair flag toggle EMAC_ENABLED
icons flag toggle EMAC_DISABLED
max per hub flag toggle EMAC_DISABLED
max per switch flag toggle EMAC_DISABLED
max per hub integer 0
max per switch integer 0

表 16:Traffic Growth 对象属性

名称 类型 默认值
number of simulations integer 1
time units integer¹ OPC_PJ_TIME_UNITS_SECONDS
time between simulations double 1.0
start time string
start date string
result storage method integer² OPC_PJ_RESULT_STORE_EACH_SIMULATION
import options integer³ OPC_PJ_IMPORT_NOTHING
growth method integer⁴ OPC_PJ_GROWTH_REGULAR_SIMPLE
growth rate double 10.0
growth table double vector

注 1:该属性的符号常量值见表 162 Project Traffic Growth Result Storage Method Symbolic Constants。 注 2:该属性的符号常量值见表 162 Project Traffic Growth Result Storage Method Symbolic Constants。 注 3:该属性的符号常量值见表 163 Project Traffic Growth Import Options Symbolic Constants。 注 4:该属性的符号常量值见表 164 Project Traffic Growth Method Symbolic Constants。

网络模型(Network Model)

表 17:网络对象

对象类型 符号常量
注释视图矩形(annotation view rectangle) OBJ_NT_ANNOT_VIEW_RECT
注释,线(annotation, line) OBJ_NT_ANNOT_LINE
注释,形状(annotation, shape) OBJ_NT_ANNOT_SHAPE
注释,文本(annotation, text) OBJ_NT_ANNOT_TEXT
属性赋值(attribute assignment) OBJ_NT_ATTR_ASSGN
总线链路(bus link) OBJ_NT_BU_LINK
总线抽头(bus tap) OBJ_NT_TAP
需求(demand) OBJ_NT_DEMAND
接口描述(interface description) OBJ_NT_INTF_DESC
固定节点(node, fixed) OBJ_NT_NODE_FIXED
路径(path) OBJ_NT_PATH
点对点链路,双工(point-to-point link, duplex) OBJ_NT_PTDUP_LINK
点对点链路,单工(point-to-point link, simplex) OBJ_NT_PTSIMP_LINK
位置(position) OBJ_NT_POS
子网(subnet) OBJ_NT_SUBNET
子网视图(subnet view) OBJ_NT_SUBNET_VIEW
固定子网(subnet, fixed) OBJ_NT_SUBNET_FIX
视图路径(view path) OBJ_NT_VIEW_PATH
视图位置(view position) OBJ_NT_VIEW_POS

表 18:网络模型属性

名称 类型 默认值
ext fileset textlist¹
keywords list textlist
view subnet object ID²
tmm propagation models array of object IDs³
iso elev map color levels array of object IDs⁴
iso elev map label color integer 1

注 1:外部对象文件的名称。 注 2:表示当前视图中的子网的对象的对象 ID。 注 3:类型 Nt_Tmm_Propagation_Model_Config 的对象 ID。 注 4:类型 Nt_Iso_Elev_Map_Color_Settings 的对象 ID。

表 19:Position 对象属性

名称 类型 默认值
x set-required double
y set-required double

表 20:Interface Description 对象属性

名称 类型 默认值
promotion name set-required string¹
merged names set-required textlist²
flags integer³ 0
properties object ID⁴
suppressed symbols textlist⁵ (空)
type integer⁶ -1

注 1:当表示重命名/合并时为该属性的新名称;否则为原始属性名称。 注 2:当表示重命名/合并时为重命名前的属性名称列表;否则为原始属性名称。 注 3:以下若干常量的组合:OPC_ID_INHRT_LIMS、OPC_ID_INHRT_VAL_RESTRICT、OPC_ID_INHRT_COMMENTS、OPC_ID_INHRT_DEFVAL 和 OPC_ID_INHRT_UNITS。 注 4:properties 对象的对象 ID。 注 5:包含被抑制符号名称的 textlist。 注 6:有效类型为 EMAC_INTEGER、EMAC_DOUBLE、EMAC_STRING、EMAC_TOGGLE、EMAC_TOGGLE_DOUBLE、EMAC_COMPOUND 或 EMAC_DATAFILE。

表 21:Attribute Assignment 对象属性

名称 类型 默认值
name string
operation integer¹
value poly²
type integer³ -1

注 1:赋值操作常量(OPC_AA_IGNORE、OPC_AA_SET 或 OPC_AA_SUPPRESS 之一)。 注 2:value 的类型在运行时确定,并且必须与 type 属性指定的类型一致。 注 3:有效类型为 EMAC_INTEGER、EMAC_DOUBLE、EMAC_STRING、EMAC_TOGGLE、EMAC_TOGGLE_DOUBLE、EMAC_COMPOUND 或 EMAC_DATAFILE。

表 22:Fixed Subnet 对象属性

名称 别名 类型 默认值
attribute promotion toggle Enabled
name set-required string
priority integer 0
user id integer 0
x position longitude double 0.0(子网网格单位)
y position latitude double 0.0(子网网格单位)
threshold double 0.0(像素/s.g.u.)
map string "NONE"
icon name icon string¹ "fixed subnet"
outline color integer² OPC_GFX_COLOR_RGB003
grid unit integer³ OPC_GRID_UNIT_NONE
subnet object ID⁴
view stack object ID⁵
doc file string "nt_subnet_fix"
iso-elev-map list textlist
iso-elev-map line threshold double 0.0

注 1:图标数据库中的图标名称。 注 2:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 3:该属性的符号常量值见表 141 Grid Unit Symbolic Constants。 注 4:外围子网对象的对象 ID;若没有外围子网则设为 EMAC_NULL_OBJ_ID(即该对象是顶层子网,其 name 属性设为 "top")。 注 5:subnet view 对象的对象 ID。

表 23:Fixed Node 对象属性

名称 别名 类型 默认值
name set-required string
model set-required string¹
user id integer 0
x position double 0.0(子网网格单位)
y position double 0.0(子网网格单位)
altitude double 0.0(子网网格单位)
priority integer 0
condition toggle EMAC_ENABLED
threshold double 0.0(像素/s.g.u.)
icon name icon string "fixed_comm"
subnet set-required object ID²
doc file string "nt_node"
alias array of strings
tooltip string ""

注 1:节点模型的名称,不带后缀。 注 2:外围子网对象的对象 ID。

表 24:Simplex Point-to-Point Link 对象属性

名称 别名 类型 默认值
name string
model string¹ "pt_base"
channel count integer 1
transmitter source tx string²
receiver dest rx string²
data rate double 1024.0
packet formats textlist³ OPC_NT_LINK_ALLPKS
delay double 0.0(秒)
ber double 0.0(err/bit)
condition toggle EMAC_ENABLED
user id integer 0
cost double 0.0
txdel model string⁴ "dpt_txdel"
propdel model string⁴ "dpt_propdel"
error model string⁴ "dpt_error"
ecc model string⁴ "dpt_ecc"
source site source node set-required object ID⁵
dest site dest node set-required object ID⁵
path array of object IDs⁶
color gfx color integer⁷ OPC_GFX_COLOR_RGB233
subnet object ID⁸
doc file string "nt_link"
tooltip string ""

注 1:节点模型的名称,不带后缀。 注 2:所连接的点对点收发器的层次化名称;格式为:[<subnet_ name(s)>.]<node_name>.<module_name>只有当链路直接连接到包含该收发器的子网时,层次化名称中才出现以点分隔的子网名称;否则层次化名称仅由节点名和模块名组成。 注 3:包含该链路可传输的数据包格式名称的 textlist。 注 4:Transceiver Pipeline Stage 对象代码文件的名称,不带后缀。 注 5:直接连接的子网或固定节点对象的对象 ID。 注 6:定义链路路径的 position 对象的对象 ID。 注 7:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 8:外围子网对象的对象 ID。

表 25:Duplex Point-to-Point Link 对象属性

名称 别名 类型 默认值
name string
model string¹ "pt_base"
channel count integer 1
transmitter a string²
transmitter b string b
receiver a string
receiver b string
data rate double 1024.0
packet formats textlist³ OPC_NT_LINK_ALLPKS
delay double 0.0(秒)
ber double 0.0(err/bit)
condition toggle EMAC_ENABLED
user id integer 0
cost double 0.0
txdel model string⁴ "dbu_txdel"
propdel model string⁴ "dbu_propdel"
error model string⁴ "dpt_error"
ecc model string⁴ "dpt_ecc"
site a set-required object ID⁵
site b set-required object ID⁵
path array of object IDs⁶
color gfx color integer⁷ OPC_GFX_COLOR_WHITE
subnet object ID⁸
doc file string "nt_link"
tooltip string ""

注 1:节点模型的名称,不带后缀。 注 2:所连接的点对点收发器的层次化名称;格式为: [<subnet_ name(s)>.]<node_name>.<module_name>只有当链路直接连接到包含该收发器的子网时,层次化名称中才出现以点分隔的子网名称;否则层次化名称仅由节点名和模块名组成。 注 3:包含该链路可传输的数据包格式名称的 textlist。 注 4:Transceiver Pipeline Stage 对象代码文件的名称,不带后缀。 注 5:直接连接的子网或固定节点对象的对象 ID。 注 6:定义链路路径的 position 对象的对象 ID。 注 7:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 8:外围子网对象的对象 ID。

表 26:Bus Link 对象属性

名称 类型 默认值
name string
model string¹ "bu_adv"
channel count integer 1
data rate double 1024.0
packet formats textlist² (空)
delay double 0.0(秒/米)
ber double 0.0(err/bit)
condition toggle EMAC_ENABLED
user id integer 0
cost double 0.0
txdel model string³ "dbu_txdel"
closure model string³ "dbu_closure"
propdel model string³ "dbu_propdel"
coll model string³ "dbu_coll"
error model string³ "dbu_error"
ecc model string³ "dbu_ecc"
color integer⁴ OPC_GFX_COLOR_RGB023
subnet set-required object ID⁵
path array of object IDs⁶
doc file string "nt_bus"
tooltip string ""

注 1:节点模型的名称,不带后缀。 注 2:包含该链路可传输的数据包格式名称的 textlist。 注 3:Transceiver Pipeline Stage 阶段模型的名称,不带后缀。 注 4:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 5:外围子网对象的对象 ID。 注 6:定义链路路径的 position 对象的对象 ID。

表 27:Bus Tap 对象属性

名称 别名 类型 默认值
name string
model string¹ "tp_adv"
transmitter source tx string²
receiver dest rx string²
condition toggle EMAC_ENABLED
user id integer 0
cost double 0.0
color gfx color integer³ OPC_GFX_COLOR_GREY
site node set-required object ID⁴
path array of object IDs⁵
bus object ID⁶
subnet object ID⁷
doc file string "nt_bus_tap"
tooltip string ""

注 1:节点模型的名称,不带后缀。 注 2:所连接的总线收发器的层次化名称;格式为: [<subnet_ name(s)>.]<node_name>.<module_name>只有当链路直接连接到包含该收发器的子网时,层次化名称中才出现以点分隔的子网名称;否则层次化名称仅由节点名和模块名组成。 注 3:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 4:直接连接的子网或固定节点对象的对象 ID。 注 5:定义抽头路径的 position 对象的对象 ID。 注 6:直接连接的总线链路对象的对象 ID。 注 7:外围子网对象的对象 ID。

表 28:Subnet View 对象属性

名称 类型 默认值
min x double -180.0
min y double 90.0
sbar x double 0.0
sbar y double 0.0
grid step double 15.0
resolution double 2.5
grid style integer OPC_GRID_STYLE_NONE
grid color integer OPC_GFX_COLOR_RGB111

表 29:Shape Annotation 属性

名称 类型 默认值
name string NULL
shape integer 0
fill toggle EMAC_DISABLED
color color RED
x position double 0.0
y position double 0.0
width double 0.0
height double 0.0
subnet object ID¹

注 1:外围子网对象的对象 ID。

表 30:Line Annotation 属性

名称 类型 默认值
name string NULL
color color BLUE
drawing style integer 0
line style integer 0
head arrow toggle EMAC_DISABLED
tail arrow toggle EMAC_DISABLED
thickness double 1.0
path array of object IDs¹
subnet object ID²

注 1:定义线路径的 position 对象的对象 ID。 注 2:外围子网对象的对象 ID。

表 31:Text Annotation 属性

名称 类型 默认值
name string NULL
text color NULL
color color YELLOW
font integer 1
justification toggle 0
x position double 0.0
y position double 0.0
width double 0.0
height double 0.0
subnet object ID¹

注 1:外围子网对象的对象 ID。

自描述(Self Description)

表 32:Self Description 对象

对象类型 符号常量
必需自描述(required self description) OBJ_SELFDESC_REQ
赋值自描述(assigned self description) OBJ_SELFDESC_ASSGN
核心自描述(core self description) OBJ_SELFDESC_CORE
节点自描述(node self description) OBJ_SELFDESC_PORTGROUP

表 33:Required Self Description 对象属性

名称 类型 默认值
characteristic string ""
comparator integer¹ OPC_SELFDESC_CMP_EQUALS
value string ""

注 1:该属性的符号常量值见表 159 Self Description Comparator Symbolic Constants。

表 34:Assigned Self Description 对象属性

名称 类型 默认值
attribute string ""
type integer¹ OPC_SELFDESC_ASSGN_CONST
value string ""
requirements array of object IDs² ""
assignments array of object IDs³ OPC_SELFDESC_ASSGN_CONST
priority integer 0

注 1:该属性的符号常量值见表 160 Self Description Assignment Type Symbolic Constants。 注 2:必需自描述(required self description)对象的对象 ID。 注 3:赋值自描述(assigned self description)对象的对象 ID。

表 35:Portgroup Self Description 对象属性

名称 类型 默认值
portgroup core object IDs¹
lower range integer 0
upper range integer 0
receiver string ""
transmitter string ""
padding integer 0

注 1:核心自描述(core self description)对象的对象 ID。

节点模型(Node Model)

表 36:节点对象

对象类型 符号常量
位置(position) OBJ_ND_POS
接口描述(interface description) OBJ_ND_INTF_DESC
属性赋值(attribute assignment) OBJ_ND_ATTR_ASSGN
处理器(processor) OBJ_ND_PROCESSOR
队列(queue) OBJ_ND_QUEUE
外部系统模块(external system module) OBJ_ND_ESYS
点对点发送器(point-to-point transmitter) OBJ_ND_PT_TX
点对点接收器(point-to-point receiver) OBJ_ND_PT_RX
总线发送器(bus transmitter) OBJ_ND_BU_TX
总线接收器(bus receiver) OBJ_ND_BU_RX
子队列(subqueue) OBJ_ND_SUBQ
点对点发送信道(pt.-to-pt. trans. channel) OBJ_ND_PT_TXCH
点对点接收信道(pt.-to-pt. rec. channel) OBJ_ND_PT_RXCH
总线发送信道(bus transmitter channel) OBJ_ND_BU_TXCH
总线接收信道(bus receiver channel) OBJ_ND_BU_RXCH
流(stream) OBJ_ND_STRM
统计线(statistics wire) OBJ_ND_STATWIRE
统计接口描述(statistic interface description) OBJ_ND_STAT_INTF
逻辑关联(logical association) OBJ_ND_ASSOC
外部系统(external system) OBJ_ND_ESYS
形状注释(shape annotation) OBJ_ND_ANNOT_SHAPE
线注释(line annotation) OBJ_ND_ANNOT_LINE
文本注释(text annotation) OBJ_ND_ANNOT_TEXT
ETS 处理函数(ETS handler function) OBJ_ND_ETS_HANDLER
注释图标(annotation icon) OBJ_ND_ANNOT_ICON

表 37:节点模型属性

名称 类型 默认值
stat intf descs array of object IDs¹
interface descriptions array of object IDs²
attribute assignments array of object IDs³
model comments textlist⁴ (空)
keywords textlist⁵ (空)
fixed icon string⁶ (空)
mobile icon string⁶ (空)
satellite icon string⁶ (空)
doc file string (空)
tooltip string (空)
grid step double 0.0
grid style integer 0
grid color color OPC_GFX_COLOR_BLACK
axis style integer 0
axis color color OPC_GFX_COLOR_BLUE
target style integer 0
target color color OPC_GFX_COLOR_RED
width integer 100.0
resolution double 20.0
center x double 0.0
center y double 0.0
center z double 0.0

注 1:用于统计的接口描述对象的对象 ID。 注 2:用于该模型的接口描述对象的对象 ID。 注 3:属性赋值对象的对象 ID。 注 4:包含模型说明的 textlist。 注 5:包含调色板(palette)中使用的关键字(每行一个)的 textlist。 注 6:该类型节点所使用的图标名称。

表 38:Position 对象属性

名称 类型 默认值
x set-required double
y set-required double

表 39:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 40:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

表 41:Processor 对象属性

名称 类型 默认值
name set-required string
process model string¹ "sink"
intrpt interval toggle double² (禁用)
begsim intrpt toggle EMAC_DISABLED
endsim intrpt toggle EMAC_DISABLED
failure intrpts string³ "disabled"
recovery intrpts string³ "disabled"
icon name string⁴ "processor"
position object ID⁵
priority integer 0
super priority toggle EMAC_DISABLED
doc file string "nd_module"

注 1:进程模型的名称,不带后缀。 注 2:单位为秒。 注 3:有效值:"disabled"、"local only" 和 "model wide"。 注 4:图标数据库中的图标名称。 注 5:position 对象的对象 ID。

表 42:Queue 对象属性

名称 类型 默认值
name set-required string
subqueue object ID¹
process model string² "pc_fifo"
intrpt interval toggle double³ (禁用)
begsim intrpt toggle EMAC_DISABLED
endsim intrpt toggle EMAC_DISABLED
failure intrpts string⁴ "disabled"
recovery intrpts string⁴ "disabled"
icon name string⁵ "queue"
position object ID⁶
priority integer 0
super priority toggle EMAC_DISABLED
doc file string "nd_module"

注 1:subqueue 复合值对象的对象 ID。subqueue 复合值对象是一个 EMA 基础对象,包含 list 和 count 属性。由 list 指定的子对象是下文所述的 subqueue 复合对象。 注 2:进程模型的名称,不带后缀。 注 3:单位为秒。 注 4:有效值:"disabled"、"local only" 和 "model wide"。 注 5:图标数据库中的图标名称。 注 6:position 对象的对象 ID。

表 43:Subqueue 复合对象属性

名称 类型 默认值
pk capacity double EMAC_DBL_INFINITY(包)
bit capacity double EMAC_DBL_INFINITY(比特)

表 44:External System Module 属性

名称 类型 默认值
name set-required string
process model string¹ "sink"
esd model string² "NONE"
icon name string³ "esys_module"
begsim intrpt toggle EMAC_DISABLED
doc file string "nd_module"
endsim intrpt toggle EMAC_DISABLED
failure intrpts string⁴ "disabled"
intrpt interval toggle double⁵ (禁用)
priority integer 0
recovery intrpts string⁴ "disabled"
subqueue object ID⁶
super priority toggle EMAC_DISABLED
position object ID⁷

注 1:进程模型的名称,不带后缀。 注 2:外部系统描述文件的名称,不带后缀。 注 3:图标数据库中的图标名称。 注 4:有效值:"disabled"、"local only" 和 "model wide"。 注 5:单位为秒。 注 6:subqueue 复合值对象的对象 ID。subqueue 复合值对象是一个 EMA 基础对象,包含 list 和 count 属性。 注 7:position 对象的对象 ID。

在下表中,为接收器和发送器对象指定的所有 channel 属性的值都是一个复合值对象的对象 ID。复合值对象是一个 EMA 基础对象,包含 list 和 count 属性。由 list 指定的子对象是本节后面所述的信道(channel)对象。

表 45:Point-to-Point Receiver 对象属性

名称 类型 默认值
name set-required string
channel object ID¹
ecc threshold double 0.0(err/bit)
icon name string² "pt_rx"
position object ID³
doc file string "nd_ptp_receiver"

注 1:点对点接收信道复合值对象的对象 ID。 注 2:图标数据库中的图标名称。 注 3:position 对象的对象 ID。

表 46:Bus Receiver 对象属性

名称 类型 默认值
name set-required string
channel object ID¹
ecc threshold double 0.0(err/bit)
icon name string² "bu_rx"
position object ID³
doc file string "nd_bus_receiver"

注 1:总线接收信道复合值对象的对象 ID。 注 2:图标数据库中的图标名称。 注 3:position 对象的对象 ID。

表 47:Point-to-Point Transmitter 对象属性

名称 类型 默认值
name set-required string
channel object ID¹
icon name string² "pt_tx"
position object ID³
doc file string "nd_ptp_transmitter"

注 1:点对点发送信道复合值对象的对象 ID。 注 2:图标数据库中的图标名称。 注 3:position 对象的对象 ID。

表 48:Bus Transmitter 对象属性

名称 类型 默认值
name set-required string
channel object ID¹
icon name string² "bu_tx"
position object ID³
doc file string "nd_bus_transmitter"

注 1:总线发送信道复合值对象的对象 ID。 注 2:图标数据库中的图标名称。 注 3:position 对象的对象 ID。

表 49:Point-to-Point Receiver Channel 对象属性

名称 类型 默认值
data rate double 1024.0(bps)
packet formats string¹ OPC_NT_LINK_ALLPKS

注 1:数据包格式的名称,以逗号分隔。

表 50:Point-to-Point Transmitter Channel 对象属性

名称 类型 默认值
data rate double 1024.0(bps)
packet formats string¹ OPC_NT_LINK_ALLPKS

注 1:数据包格式的名称,以逗号分隔。

表 51:Bus Receiver Channel 对象属性

名称 类型 默认值
data rate double 1024.0(bps)
packet formats string¹ OPC_NT_LINK_ALLPKS

注 1:数据包格式的名称,以逗号分隔。

表 52:Bus Transmitter Channel 对象属性

名称 类型 默认值
data rate double 1024.0(bps)
packet formats string¹ OPC_NT_LINK_ALLPKS

注 1:数据包格式的名称,以逗号分隔。

表 53:Stream 对象属性

名称 别名 类型 默认值
name string
src stream src strm set-required integer 0
dest stream dest strm set-required integer 0
color gfx color integer¹ OPC_GFX_COLOR_GREEN
intrpt method integer² OPC_INTRPT_METHOD_SCHED
delay double 0.0(秒)
src module set-required object ID³
dest module set-required object ID³
path array of object IDs⁴
doc file string "nd_packet_stream"

注 1:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 2:该属性的符号常量值见表 144 Interrupt Method Symbolic Constants。 注 3:所连接模块对象的对象 ID。 注 4:定义流路径的 position 对象的对象 ID。

表 54:Statistic Wire 对象属性

名称 别名 类型 默认值
name string
delay double 0.0(秒)
color gfx color integer¹ OPC_GFX_COLOR_RGB331
src stat set-required string²
dest stat set-required integer³ 0
intrpt method integer⁴ OPC_INTRPT_METHOD_SCHED
src module set-required object ID⁵
dest module set-required object ID⁶
trigger integer⁷ OPC_TRIG_RISING_EDGE | OPC_TRIG_FALLING_EDGE
path array of object IDs⁸
low thresh double 0.0
high thresh double 0.0
doc file string "nd_statistic_wire"

注 1:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 2:源模块统计量的名称(子模块统计量以方括号中的子模块索引为前缀;例如 "[2].pksize");支持的模块统计量列表见第 2 章"Node Reference"(第 8 页)。 注 3:目标处理器或队列输入统计量的数字索引。 注 4:该属性的符号常量值见表 144 Interrupt Method Symbolic Constants。 注 5:所连接模块对象的对象 ID。 注 6:所连接的处理器或队列对象的对象 ID。 注 7:该属性的符号常量值见表 145 Statistic Wire Trigger Symbolic Constants。 注 8:定义统计线路径的 position 对象的对象 ID。

表 55:Statistic Interface Description 对象属性

名称 类型 默认值
original name string
promoted name string
description toggle textlist¹ (空)
group name string
capture mode string
display mode string
original group name string

注 1:包含统计量说明的 textlist。

表 56:Logical Tx/Rx Association 对象属性

名称 别名 类型 默认值
name string
color gfx color integer¹ OPC_GFX_COLOR_ORANGE
src module set-required object ID²
dest module set-required object ID³
path array of object IDs⁴
doc file string "nd_association"

注 1:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 2:所连接的发送器或接收器模块对象的对象 ID。 注 3:所连接的发送器或接收器模块对象的对象 ID。 注 4:定义关联路径的 position 对象的对象 ID。

进程模型(Process Model)

表 57:进程对象

对象类型 符号常量
位置(position) OBJ_PR_POS
接口描述(interface description) OBJ_PR_INTF_DESC
属性赋值(attribute assignment) OBJ_PR_ATTR_ASSGN
状态(state) OBJ_PR_STATE
转移(transition) OBJ_PR_TRANS
统计量描述(statistic description) OBJ_PR_STAT_DESC
形状注释(shape annotation) OBJ_PR_ANNOT_SHAPE
线注释(line annotation) OBJ_PR_ANNOT_LINE
文本注释(text annotation) OBJ_PR_ANNOT_TEXT
注释图标(annotation icon) OBJ_PR_ANNOT_ICON
中断代码映射(intrpt code map) OBJ_PR_CODE_MAP

表 58:Position 对象属性

名称 类型 默认值
x set-required double
y set-required double

表 59:进程模型属性

名称 类型 默认值
state vars textlist¹ (空)
temp vars textlist¹ (空)
header block textlist¹ (空)
function block textlist¹ (空)
diag block textlist¹ (空)
termination block textlist¹ (空)
child processes textlist² (空)
ext fileset textlist³ (空)
simulation attributes array of object IDs⁴ (空)
global stat descs array of object IDs⁵ (空)
local stat descs array of object IDs⁵ (空)
model comments textlist⁶ (空)
interface descriptions array of object IDs⁷ (空)
attribute assignments array of object IDs⁸ (空)
packet formats textlist⁹ (空)
ODB labels textlist (空)
ODB labels descriptions textlist (空)
code language string "C"
temp vars in diagnostic block toggle EMAC_DISABLED
temp vars in termination block toggle EMAC_DISABLED

注 1:包含 Proto-C 语句的 textlist;语法指南见第 5 章"Process Domain"(第 169 页)。 注 2:包含进程模型名称的 textlist,不带后缀。 注 3:包含外部对象文件名称的 textlist,不带后缀。 注 4:属性定义对象的对象 ID。 注 5:统计量描述对象的对象 ID。 注 6:包含模型描述的 textlist。 注 7:该模型的接口描述对象的对象 ID。 注 8:属性赋值对象的对象 ID。 注 9:包含数据包格式名称的 textlist,不带后缀。

表 60:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 61:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

表 62:State 对象属性

名称 别名 类型 默认值
name string
enter execs textlist¹ (空)
exit execs textlist¹ (空)
status forced toggle² EMAC_DISABLED
position object ID³
initial toggle⁴ EMAC_DISABLED

注 1:包含 Proto-C 语句的 textlist;语法指南见第 5 章"Process Domain"(第 169 页)。 注 2:EMAC_DISABLED 表示状态为非强制;EMAC_ENABLED 表示状态为强制。 注 3:位置对象的对象 ID。 注 4:EMAC_ENABLED 表示该状态为初始状态。

表 63:Transition 对象属性

名称 别名 类型 默认值
name string
condition string¹
executive string²
dest state set-required object ID³
src state set-required object ID³
drawing style spline toggle⁴ EMAC_ENABLED
color gfx color integer⁵ OPC_GFX_COLOR_WHITE
path array of object IDs⁶
label pos object ID⁷

注 1:包含 Proto-C 布尔表达式的字符串;语法指南见第 5 章"Process Domain"(第 169 页)。 注 2:包含 Proto-C 语句的字符串。 注 3:进程状态对象的对象 ID。 注 4:EMAC_DISABLED 表示直线绘制样式;EMAC_ENABLED 表示样条绘制样式。 注 5:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 6:定义转移路径的位置对象的对象 ID。 注 7:转移标签的位置对象的对象 ID。

表 64:Statistic Description 对象属性

名称 类型 默认值
name string
count toggle integer EMA_DISABLED
description textlist¹ (空)
group name string
capture mode string
display mode string
low bound toggle double EMAC_DISABLED
high bound toggle double EMAC_DISABLED

注 1:包含该属性描述的 textlist。

外部系统定义(External System Definition)

表 65:外部系统对象

名称 符号常量
接口(Interface) OBJ_ESD_INTERFACE
外部系统定义(External system definition) OBJ_ESD_BASE

表 66:外部系统定义的模型属性

名称 类型 默认值
model comments textlist (EMA only) ""

表 67:Interface 对象属性

名称 类型 默认值
name set required string
comment string ""
type¹ set required integer integer
direction² integer OPC_ESYS_DIR_IN
dimension³ integer 0
offset integer (EMA only) 0

注 1:type 属性指定可以在接口上放置的数据类型。该属性的符号常量值见表 165 External System Interface Type Symbolic Constants。 注 2:direction 属性指示相对于外部系统的数据流向(因此"in"表示从 Riverbed 到联合仿真)。该属性的符号常量值见表 166 External System interface Direction Symbolic Constants。 注 3:接口对象的 dimension 属性针对向量接口。默认值为零表示该接口不是向量接口。有关向量接口的更多信息见第 8 章"External System Domain"(第 331 页)。

表 68:外部系统定义对象属性

名称 类型 默认值
name set required string ""
simulator string "NONE"
source description string ""

表 69:链路对象

对象类型 符号常量
接口描述(interface description) OBJ_LNK_INTF_DESC
属性赋值(attribute assignment) OBJ_LNK_ATTR_ASSGN
自描述(self description) OBJ_SELFDESC_CORE
ETS 处理函数(ETS handler function) OBJ_LNK_ETS_HANDLER
统计量描述(statistic description) OBJ_LNK_STAT_DESC

表 70:链路模型属性

名称 类型 默认值
model comments textlist¹ (空)
keywords textlist²
simplex link icon string (空字符串)
duplex link icon string (空字符串)
bus link icon string (空字符串)
bus tap icon string (空字符串)
selfdescription array of object IDs³
tooltip string (空字符串)
doc file string (空字符串)
ets handlers array of object IDs⁴
local stat descs array of object IDs⁵
interface descriptions array of object IDs⁶
attribute assignments array of object IDs⁷
selfdescription object ID⁸

注 1:包含模型描述的 textlist。 注 2:包含调色板中使用的关键字(每行一个)的 textlist。 注 3:类型 Vc_Selfdesc_Type 的对象 ID 注 4:类型 Vc_ETS_Handler_Type 的对象 ID 注 5:类型 Vc_Stat_Desc_Types 的对象 ID 注 6:该模型的接口描述对象的对象 ID。 注 7:属性赋值对象的对象 ID。 注 8:OBJ_SELFDESC_CORE 的对象 ID。

表 71:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 72:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

路径模型(Path Model)

表 73:路径对象

对象类型 符号常量
接口描述(interface description) OBJ_PATH_INTF_DESC
属性赋值(attribute assignment) OBJ_PATH_ATTR_ASSGN
自描述(self description) OBJ_SELFDESC_CORE
ETS 处理函数(ETS handler function) OBJ_PATH_ETS_HANDLER
统计量描述(statistic description) OBJ_PATH_STAT_DESC

表 74:路径模型属性

名称 类型 默认值
model comments textlist¹ (空)
keywords textlist² (空)
tooltip string (空字符串)
doc file string (空字符串)
icon string (空字符串)
connectivity string (空字符串)
ignore subnets Boolean integer 0
allow cycles Boolean integer 0
two endpoints only Boolean integer 0
packet formats string all formats³
selfdescription object ID⁴
ets handlers object ID⁵
local stat descs array of object IDs⁶
interface description array of object IDs⁷
attribute assignment array of object IDs⁸
self description array of object IDs⁹
ets handler array of object IDs¹⁰
stat desc array of object IDs¹¹

注 1:包含模型描述的 textlist。 注 2:包含调色板中使用的关键字(每行一个)的 textlist。 注 3:指定所有有效数据包格式的字符串(OPC_NT_LINK_ALLPKS) 注 4:Path_Selfdesc_Type 的对象 ID。 注 5:类型 Path_ETS_Handler_Type 的对象 ID 注 6:类型 Path_Stat_Desc_Types 的对象 ID 注 7:该模型的接口描述对象的对象 ID。 注 8:属性赋值对象的对象 ID。 注 9:类型 Vc_Selfdesc_Type 的对象 ID 注 10:ETS 处理描述对象的对象 ID 注 11:统计量描述对象的对象 ID

表 75:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 76:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

需求模型(Demand Model)

表 77:需求对象

对象类型 符号常量
接口描述(interface description) OBJ_DEMAND_INTF_DESC
属性赋值(attribute assignment) OBJ_DEMAND_ATTR_ASSGN
自描述(self description) OBJ_SELFDESC_CORE
ETS 处理函数(ETS handler function) OBJ_DEMAND_ETS_HANDLER
统计量描述(statistic description) OBJ_DEMAND_STAT_DESC

表 78:需求模型属性

名称 类型 默认值
model comments textlist¹ (空)
keywords textlist² (空)
tooltip string (空字符串)
doc file string (空字符串)
icon string (空字符串)
selfdescription object ID³
ets handlers object ID⁴
local stat descs array of object IDs⁵
source required Boolean integer 0
destination required Boolean integer 0
path required Boolean integer 0
demand type string "flow"
acceptable path models string "all"
interface description array of object IDs⁶
attribute assignment array of object IDs⁷
ets handler array of object IDs⁸
stat desc array of object IDs⁹
selfdescription array of object IDs¹⁰

注 1:包含模型描述的 textlist。 注 2:包含调色板中使用的关键字(每行一个)的 textlist。 注 3:OBJ_SELFDESC_CORE 的对象 ID。 注 4:类型 Vc_ETS_Handler_Type 的对象 ID 注 5:类型 Vc_Stat_Desc_Types 的对象 ID 注 6:该模型的接口描述对象的对象 ID。 注 7:属性赋值对象的对象 ID。 注 8:ETS 处理描述对象的对象 ID 注 9:统计量描述对象的对象 ID 注 10:类型 Vc_Selfdesc_Type 的对象 ID

表 79:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 80:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

概率密度函数(Probability Density Function)

表 81:PDF 对象

对象类型 符号常量
冲激(impulse) OBJ_PDF_IMPULSE

表 82:PDF 模型属性

名称 类型 默认值
outcome min double -10.0
outcome spacing double 0.5
prob density double vector

表 83:Impulse 对象属性

名称 类型 默认值
outcome double
mass double

ICI 格式(ICI Format)

表 84:ICI 格式对象

对象类型 符号常量
属性描述符(attribute descriptor) OBJ_ICF_ATTR_DESC

表 85:ICI 格式模型属性

名称 类型 默认值
model comments textlist

表 86:ICI Attribute Descriptor 对象属性

名称 类型 默认值
type integer¹ OPC_ICA_TYPE_INTEGER
default value string
name string
description textlist

注 1:该属性的符号常量值见表 148 ICI Attribute Type Symbolic Constants。

数据包格式(Packet Format)

表 87:数据包格式对象

对象类型 符号常量
字段(field) OBJ_PF_FIELD
位置(position) OBJ_PF_POS

表 88:数据包模型属性

名称 类型 默认值
comments textlist
conversion method string "none"
supports conversion toggle EMAC_ENABLED
bulk fill pattern string "0x0"

表 89:Packet Field 对象属性

名称 类型 默认值
name set required string
comments textlist
type integer¹ OPC_PKF_TYPE_INTEGER
encoding string² OPC_PKF_ENCODING_SIGNED_BIGE
size integer³ 32
default value string
set at creation toggle INIT_ENABLED
color integer OPC_GFX_COLOR_GREY
conversion method string "NONE"
conversion order integer
position Object ID

注 1:该属性的符号常量值见表 146 Packet Field Type Symbolic Constants。 注 2:该属性的符号常量值见表 147 Packet Encoding Attribute Symbolic Constants。 注 3:以比特为单位。

探测列表(Probe List)

表 90:探测列表对象

对象类型 符号常量
位置(position) OBJ_PB_POS
节点统计量探测(node statistic probe) OBJ_PB_SPROBE
自动动画探测(automatic animation probe) OBJ_PB_AAPROBE
自定义动画探测(custom animation probe) OBJ_PB_CAPROBE
仿真属性探测(simulation attribute probe) OBJ_PB_SAPROBE
全局统计量探测(global statistic probe) OBJ_PB_GSPROBE
统计量动画探测(statistic animation probe) OBJ_PB_STANPROBE
实时统计量探测(live statistic probe) OBJ_PB_RTSPROBE
链路探测(link probe) OBJ_PB_LKPROBE
路径探测(path probe) OBJ_PB_PATHPROBE
需求探测(demand probe) OBJ_PB_DEMANDPROBE

表 91:探测列表模型属性

名称 类型 默认值
network name string¹

注 1:网络模型的名称,不带后缀。

表 92:Position 对象属性

名称 类型 默认值
x set-required double
y set-required double

表 93:Statistic Probe 对象属性

名称 别名 类型 默认值
name string
subnet string¹
node string²
module string³
submodule string⁴
statistic string⁵
ordinate label string
vector data toggle EMAC_ENABLED
vector start start time double 0.0(秒)
vector stop stop time double EMAC_DBL_INFINITY(秒)
capture mode string⁶ "normal"
scalar data toggle EMAC_DISABLED
scalar type end log string⁷
scalar start double 0.0
scalar stop double EMAC_DBL_INFINITY(秒)
pos object ID⁸
doc file string "pb_node_stat_probe"
drawing style string
group string
threshold comparison string "disabled"
threshold value double 0.0
threshold percent double 90.0
tag string OVC_VECTOR_TAG_USER
low bound toggle EMAC_DISABLED
high bound toggle EMAC_DISABLED

注 1:关联网络模型中子网的名称。 注 2:关联网络模型中节点的名称。 注 3:关联网络模型所引用的节点模型中模块的名称。 注 4:子模块的正式名称(例如 "subqueue [0]")。 注 5:所引用模块或子模块支持的统计量的名称;支持的模块统计量列表见第 2 章"Node Reference"(第 8 页)。 注 6:有效值:"normal"、"sample/<n>"、"bucket/<n>/<mode>"、"glitch removal";其中 <n> 为一个数字(double)或一个数字后跟 "sec";<mode> 为 "max value"、"min value"、"sum"、"count"、"sample mean" 或 "time average 之一。 注 7:有效值:"last value"、"sample mean"、"time average"、"variance"、"min value"、"max value"。 注 8:位置对象的对象 ID。

表 94:Automatic Animation Probe 对象属性

名称 类型 默认值
name string
subnet string¹
node string²
module string³
representation string⁴
anim start double 0.0(秒)
anim stop double EMAC_DBL_INFINITY(秒)
window name string
window x integer 10(像素)
window y integer 10(像素)
window width integer 500(像素)
window height integer 300(像素)
pos object ID⁵
doc file string "pb_auto_anim_probe"

注 1:关联网络模型中子网的名称。 注 2:关联网络模型中节点的名称。 注 3:关联网络模型所引用的节点模型中模块的名称。 注 4:所引用对象支持的自动动画表示的名称。 注 5:位置对象的对象 ID。

表 95:Custom Animation Probe 对象属性

名称 类型 默认值
name string
subnet string¹
node string²
module string³
label string
anim start double 0.0(秒)
anim stop double EMAC_DBL_INFINITY(秒)
window name string
window x integer 10(像素)
window y integer 10(像素)
window width integer 500(像素)
window height integer 300(像素)
pos object ID⁴
doc file string "pb_custom_anim_probe"

注 1:关联网络模型中子网的名称。 注 2:关联网络模型中节点的名称。 注 3:关联网络模型所引用的节点模型中模块的名称。 注 4:位置对象的对象 ID。

表 96:Attribute Probe 对象属性

名称 类型 默认值
name string
object string¹
attribute string²
ordinate label string
pos object ID³
doc file string "pb_attribute_probe"

注 1:被探测对象的完整层次名称(对于仿真属性为空)。 注 2:被探测对象的属性的名称(若引用的是仿真属性,则为仿真属性名称)。 注 3:位置对象的对象 ID。

表 97:Global Statistic Probe 对象属性

名称 类型 默认值
name string
global statistic string¹
ordinate label string
vector data toggle EMAC_ENABLED
vector start double 0.0(秒)
vector stop double EMAC_DBL_INFINITY(秒)
capture mode string² "normal"
scalar data toggle EMAC_DISABLED
scalar type string³
scalar start double 0.0
scalar stop double EMAC_DBL_INFINITY(秒)
pos object ID⁴
doc file string "pb_global_stat_probe"
group string "disabled"
threshold comparison double 0.0
threshold value double 90.0
threshold percent string OVC_VECTOR_TAG_USER
tag toggle EMAC_DISABLED
low bound toggle EMAC_DISABLED

注 1:全局统计量的名称。 注 2:有效值:"normal"、"sample/<n>"、"bucket/<n>/<mode>"、"glitch removal";其中 <n> 为一个数字(double)或一个数字后跟 "sec";<mode> 为 "max value"、"min value"、"sum"、"count"、"sample mean" 或 "time average 之一。 注 3:有效值:"last value"、"sample mean"、"time average"、"variance"、"min value"、"max value"。 注 4:位置对象的对象 ID。

表 98:Statistic Animation Probe 对象属性

名称 类型 默认值
name string
statistic string¹
window name string²
window x integer 10
window y integer 10
window width integer 500
window height integer 400
panel name string³
panel x integer 10
panel y integer 10
panel width integer 442
panel height integer 440
zone number integer 1
zone height integer 200
zone color integer OPC_GFX_COLOR_STEEL
background color integer OPC_GFX_COLOR_SLATE
scrolling toggle EMAC_DISABLED
initial width double 0.0
trace color integer OPC_GFX_COLOR_WHITE
trace style string "linear"
pos object ID⁴
doc file string "pb_stat_anim_probe"

注 1:统计量探测的名称。 注 2:显示该统计量的窗口的名称;此窗口只能显示统计量动画探测。 注 3:在该名称窗口内显示该统计量的面板的名称。 注 4:位置对象的对象 ID。

表 99:Link Probe 对象属性

名称 类型 默认值
name string
subnet string¹
link string²
channel string³
statistic string⁴
ordinate label string
vector data toggle EMAC_ENABLED
vector start double 0.0(秒)
vector stop double EMAC_DBL_INFINITY(秒)
capture mode string⁵ "normal"
scalar data toggle EMAC_DISABLED
scalar type string⁶
scalar start double 0.0
scalar stop double EMAC_DBL_INFINITY(秒)
pos object ID⁷
doc file string "pb_link_stat_probe"
drawing style string
group string
threshold comparison double 0.0
threshold value double 90.0
threshold percent string OVC_VECTOR_TAG_USER
tag toggle EMAC_DISABLED
low bound toggle EMAC_DISABLED

注 1:关联网络模型中子网的名称。 注 2:链路的名称。 注 3:信道的名称。 注 4:所引用模块或子模块支持的统计量的名称;支持的模块统计量列表见第 2 章"Node Reference"(第 8 页)。 注 5:有效值:"normal"、"sample/<n>"、"bucket/<n>/<mode>"、"glitch removal";其中 <n> 为一个数字(double)或一个数字后跟 "sec";<mode> 为 "max value"、"min value"、"sum"、"count"、"sample mean" 或 "time average 之一。 注 6:有效值:"last value"、"sample mean"、"time average"、"variance"、"min value"、"max value"。 注 7:位置对象的对象 ID。

仿真序列(Simulation Sequence)

表 100:仿真序列对象

对象类型 符号常量
位置(position) OBJ_SEQ_POS
仿真参数(simulation argument) OBJ_SEQ_ARG
仿真运行(simulation run) OBJ_SEQ_RUN

表 101:仿真序列模型属性

-- 该模型类型未定义任何属性 --

表 102:Position 对象属性

名称 类型 默认值
x set-required double
y set-required double

表 103:Simulation Argument 对象属性

名称 类型 默认值
value string¹ "TRUE"
name string²

注 1:表示由 "name" 所命名的属性将取的一个或多个值的字符串。若要列出多个值,用 the'|' 字符分隔(例如字符串 "5.0|6.0|7.0" 表示某属性将取的三个值)。 注 2:提供其一个或多个值的属性的名称。

表 104:Simulation Run 对象属性

名称 别名 类型 默认值
name string
aim program string¹ "op_runsim"
network string²
probe file string³
vector file output file string⁴
seed integer⁵ 0.0
duration double⁶ 1000.0
update interval double⁶ 500000
noprompt toggle EMAC_DISABLED
environment files textlist⁷ (空)
anim attempts integer 5
anim hist string⁸
anim host string "localhost"
anim post integer 0
anim timeout double 3.0
anim view toggle EMAC_DISABLED
anim hist enabled toggle EMAC_DISABLED
multi vector files toggle EMAC_DISABLED
argument list array of object IDs⁹
pos object ID¹⁰
collect count integer 100
tim file string
enable logging toggle EMAC_DISABLED
doc file string
SLA probe files textlist¹¹ (空)
Report probe files textlist¹² (空)
Start date string
Start time string
Date recording string "not set"
Generate web report toggle EMAC_DISABLED

注 1:仿真程序的名称。 注 2:网络模型文件的名称,不含后缀。 注 3:探测列表文件的名称,不含后缀。 注 4:输出向量文件的名称,不含后缀。 注 5:赋予随机数生成器的种子数。 注 6:单位为秒。 注 7:包含环境文件列表的 textlist。 注 8:动画历史文件的名称。 注 9:子 Simulation Argument 对象的对象 ID。 注 10:Position 对象的对象 ID。 注 11:包含 SLA 探测文件列表的 textlist 注 12:包含 Web 报告探测文件列表的 textlist

输出向量(Output Vector)

表 105:输出向量对象

对象类型 符号常量
向量(vector) OBJ_OV_VECTOR
元素(element) OBJ_OV_ELEMENT
标量(scalar) OBJ_OV_SCALAR

表 106:输出向量模型属性

名称 类型 默认值
root element object ID¹
start date string
start time string
trend time units integer² OPC_OV_TIME_UNITS_SECONDS
trend time delta toggle double EMAC_DISABLED
scalars array of object IDs³

注 1:这是根节点对象的对象 ID。值 EMAC_NULL_OBJ_ID 表示该模型具有扁平结构。 注 2:该属性的符号常量值见表 158 Output Vector Time Unit Symbolic Constants。 注 3:输出标量统计量对象的对象 ID。

表 107:输出向量对象属性

名称 类型 默认值
abscissa name string
ordinate name string
type integer¹ OPC_OV_TYPE_VECTOR_DOUBLE
enum dictionary string ""
time delta² double 0
time start double 0
drawing style integer³ OPC_OV_DRAW_STYLE_LINEAR
abscissa vec double vector
ordinate vec double vector
time units integer⁴ OPC_OV_TIME_UNITS_SECONDS
threshold mode integer⁵ OPC_OV_THRESHOLD_MODE_NONE
threshold value double 0.0
threshold percent double 0.0
low bound toggle double EMAC_DISABLED
high bound toggle double EMAC_DISABLED
minimum vec double vector
maximum vec double vector
std dev vec double vector
threshold total vec double vector
threshold violations vec double vector

注 1:该属性的符号常量值见表 155 Output Vector Subelement Type Symbolic Constants。 注 2:如果 "time delta" 的值不为 0(秒),则 "abscissa vec" 的各个值必须是 "time delta" 的整数倍。例如,若 "time delta" 为 60 且 abscissa vec [0] = 0,则 abscissa vec [1] 应为 60,abscissa vec [2] 应为 120,依此类推。 注 3:该属性的符号常量值见表 156 Output Vector Drawing Style Symbolic Constants。 注 4:该属性的符号常量值见表 158 Output Vector Time Unit Symbolic Constants。 注 5:该属性的符号常量值见表 157 Output Vector Threshold Mode Symbolic Constants。

表 108:输出向量 Element 对象属性

名称 类型 默认值
type integer¹ OPC_OV_TYPE_OBJECT
name string
subelement array of object IDs²

注 1:该属性的符号常量值见表 155 Output Vector Subelement Type Symbolic Constants。 注 2:向量对象或节点对象的对象 ID。

表 109:输出向量 Scalar 对象属性

名称 类型 默认值
name string
samples vec double vector 0

输出标量(Output Scalar)

表 110:输出标量对象

对象类型 符号常量
仿真运行(simulation run) OBJ_OS_RUN
统计量(statistic) OBJ_OS_STAT

表 111:输出标量模型属性

-- 该模型类型未定义任何属性 --

表 112:输出标量 Run 对象属性

名称 类型 默认值
model name set-required string¹
seed set-required integer 0
stat array array of object IDs²

注 1:仿真可执行文件的名称,不含后缀。 注 2:输出标量运行统计量对象的对象 ID。

表 113:输出标量 Run Statistic 对象属性

名称 类型 默认值
name set-required string
value set-required double 0.0

地图数据集(Cartographic Data Set)

表 114:地图数据集对象

对象类型 符号常量
线(line) OBJ_CDS_LINE
对象(object,如城市、标签等) OBJ_CDS_OBJECT

表 115:地图数据集属性

名称 类型 默认值
grid division double 15.0
grid color integer¹ OPC_GFX_COLOR_RGB222
grid style integer² OPC_GRID_STYLE_NONE

注 1:该属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 2:该属性的符号常量值见表 142 Grid Style Symbolic Constants。

表 116:Line 对象属性

名称 别名 类型 默认值
status toggle EMAC_ENABLED
condition toggle EMAC_ENABLED
color integer¹ OPC_GFX_COLOR_RGB221
rank integer 0
type integer² OPC_CDS_LINE_TYPE_COAST
threshold double 0.0(像素/度)
latitude double vector³
longitude double vector³

注 1:这些属性的符号常量值见表 143 Graphics Color Symbolic Constants。 注 2:该属性的符号常量值见表 149 Cartographic Line Type Symbolic Constants。 注 3:向量值的单位为度。

表 117:Cartographic 对象属性

名称 别名 类型 默认值
longitude x position double 0.0
latitude y position double 0.0
name
icon name icon string¹ "city_marker"
threshold double 0.0(像素/度)
draw icon toggle EMAC_ENABLED
text size integer² OPC_TEXT_SIZE_SMALL
text color integer³ OPC_GFX_COLOR_RGB333

注 1:图标数据库中图标的名称。 注 2:该属性的符号常量见表 150 Text Size Symbolic Constants。 注 3:该属性的符号常量见表 143 Graphics Color Symbolic Constants。

公共属性描述模型(Public Attribute Description Model)

表 118:公共属性描述模型对象

-- 该模型类型未定义任何对象 --

表 119:公共属性描述模型属性

名称 类型 默认值
properties set-required object ID¹

注 1:properties 对象的对象 ID。

流量模型(Traffic Model)

表 120:流量对象

对象类型 符号常量
会话对(conversation pair) OBJ_TIM_CONVERSATION
流量配置(traffic profile) OBJ_TIM_PROFILE

表 121:流量模型的模型属性

名称 类型 默认值
base year integer (EMA only) ""
base month integer (EMA only) ""
base day integer (EMA only) ""
base seconds integer (EMA only) ""

表 122:Conversation Pair 对象属性

名称 类型 默认值
source string (EMA only) ""
destination string (EMA only) ""
profile object ID¹ (EMA only)

注 1:profile 对象的对象 ID

表 123:Traffic Profile 对象属性

名称 类型 默认值
homogeneous toggle (EMA only) EMAC_ENABLED
start time double vector (EMA only) ""
end time double vector (EMA only) ""
bits double vector (EMA only) ""
packets double vector (EMA only) ""

派生节点模型(Derived Node Model)

表 124:派生节点模型对象

对象类型 符号常量
接口描述(interface description) OBJ_NDDER_INTF_DESC
属性赋值(attribute assignment) OBJ_NDDER_ATTR_ASSGN

表 125:派生节点模型属性

名称 类型 默认值
fixed icon string¹
parent model string
model comments textlist² (空)
keywords textlist³ (空)
interface descriptions array of object IDs⁴
attribute assignments array of object IDs⁵
selfdescription object ID⁶
inherit selfdescription toggle EMAC_ENABLED
tooltip string
doc file string

注 1:该类型节点所用图标的名称。 注 2:包含模型描述的 textlist。 注 3:包含调色板中使用的关键字(每行一个)的 textlist。 注 4:该模型的接口描述对象的对象 ID。 注 5:属性赋值对象的对象 ID。 注 6:OBJ_SELFDESC_PORTGROUP 的对象 ID。

表 126:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 127:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

表 128:派生链路模型对象

对象类型 符号常量
接口描述(interface description) OBJ_LNKDER_INTF_DESC
属性赋值(attribute assignment) OBJ_LNKDER_ATTR_ASSGN

表 129:派生链路模型属性

名称 类型 默认值
duplex link icon string¹
simplex link icon string¹
bus link icon string¹
bus tap icon string¹
parent model string
model comments textlist² (空)
keywords textlist³ (空)
interface descriptions array of object IDs⁴
attribute assignments array of object IDs⁵
selfdescription object ID⁶
inherit selfdescription toggle EMAC_ENABLED
tooltip string
doc file string

注 1:该类型链路所用图标的名称。 注 2:包含模型描述的 textlist。 注 3:包含调色板中使用的关键字(每行一个)的 textlist。 注 4:该模型的接口描述对象的对象 ID。 注 5:属性赋值对象的对象 ID。 注 6:OBJ_SELFDESC_CORE 的对象 ID。

表 130:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 131:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

派生路径模型(Derived Path Model)

表 132:派生路径模型对象

对象类型 符号常量
接口描述(interface description) OBJ_PATHDER_INTF_DESC
属性赋值(attribute assignment) OBJ_PATHDER_ATTR_ASSGN

表 133:派生链路模型属性

名称 类型 默认值
parent model string
model comments textlist¹ (空)
keywords textlist² (空)
interface descriptions array of object IDs³
attribute assignments array of object IDs⁴
selfdescription object ID⁵
inherit selfdescription toggle EMAC_ENABLED
tooltip string
doc file string
icon string (空字符串)
connectivity string (空字符串)
ignore subnets Boolean integer 0
allow cycles Boolean integer 0
two endpoints only Boolean integer 0
packet formats string all formats⁶

注 1:包含模型描述的 textlist。 注 2:包含调色板中使用的关键字(每行一个)的 textlist。 注 3:该模型的接口描述对象的对象 ID。 注 4:属性赋值对象的对象 ID。 注 5:OBJ_SELFDESC_CORE 的对象 ID。 注 6:指定所有有效数据包格式的字符串

表 134:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 135:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

派生需求模型(Derived Demand Model)

表 136:派生需求模型对象

对象类型 符号常量
接口描述(interface description) OBJ_DEMANDDER_INTF_DESC
属性赋值(attribute assignment) OBJ_DEMANDDER_ATTR_ASSGN

表 137:派生链路模型属性

名称 类型 默认值
parent model string
model comments textlist¹ (空)
keywords textlist² (空)
interface descriptions array of object IDs³
attribute assignments array of object IDs⁴
selfdescription object ID⁵
inherit selfdescription toggle EMAC_ENABLED
tooltip string
doc file string
source required Boolean integer 0
destination required Boolean integer 0
path required Boolean integer 0
demand type string "flow"
acceptable path models string "all"

注 1:包含模型描述的 textlist。 注 2:包含调色板中使用的关键字(每行一个)的 textlist。 注 3:该模型的接口描述对象的对象 ID。 注 4:属性赋值对象的对象 ID。 注 5:OBJ_SELFDESC_CORE 的对象 ID。

表 138:Interface Description 对象属性

名称 类型¹ 默认值
promotion name set-required string
merged names set-required textlist
flags integer 0
properties object ID
suppressed symbols textlist (空)
type integer -1

注 1:有关各属性含义的更完整说明,参见表 20 Interface Description Object Attributes的注释。

表 139:Attribute Assignment 对象属性

名称 类型¹ 默认值
name string
operation integer
value poly
type integer -1

注 1:有关各属性含义的更完整说明,参见表 21 Attribute Assignment Object Attributes的注释。

符号映射对象(Symbol Map Object)

表 140:符号映射对象

对象类型 符号常量
符号映射(symbol map) OBJ_ATTR_SYMMAP

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