逻辑节点映射
本帖最后由 ychhu 于 2009-8-13 15:32 编辑一直没有真正明白8-1里面这个方程的含义:
For each functional constraint ( c ) found in Figure 3
For each DATA ( d ) in the LN
If the FCD generated from d,c is not empty, then add a component of ComponentName ( d ) of the ComponentType determined by the FCD to structure ( s ).
End For
If the structure ( s ) is not empty then add a component of ComponentName ( c ) of the ComponentType ( s ) to the TypeDescription being generated.
End For
Figure 3的内容是MX、ST、CO、CF、DC、SP、SG、RP、LG、BR、GO、GS、SV、SE、MS、SC (SCL)、US、EX
不太明白一个LN在被映射到有名变量后,有名变量是什么样子的。
是否是只映射FCD或FCDA,而其他的DATA或DATAAttribute则不进行映射?
是否一个LN的所有内容都映射在同一个有复杂TypeSpecification的有名变量中?
另外,在MMS的读写服务中,itemId的值一般都是LNName$FC$DOName这种格式,这是一个有名变量的名称,还是一个有名变量内的一个具体组成部分呢?不太理解,从MMS的定义来看,不太像是一个有名变量内的一个具体组成部分,因为要访问一个有名变量内的一个具体组成部分应该使用替代访问alternateAccess来实现。望高手指点!! 是LN的实例进行映射,只是对LNName$FC$DOName的理解有分歧,一种是这就是一个MMS有名变量的名称;另一种理解是一个复杂TypeSpecification的有名变量,名称为LNName,FC为第一层组件,DOName为FC的第一层组件。不知应该是哪种? 怎么还是没有人来讨论呢,难道大家对此问题都不屑一顾?还是都还在潜心钻研 具体在映射的时候是以逻辑节点为单位进行映射的,一个逻辑节点映射为一个mms变量,而这个mms变量又是一个复杂的结构,例如LLN0的映射为
LLN01
1.022806 MMS_LOG_ALWAYS (sclproc.c 1597)
RUNTIME_TYPE definition for LNodeType id='LLN01':
1.023501 MMS_LOG_ALWAYS (mms_tdef.c 2309)
Runtime Type : 51 elements,Offset past last : 1432
Struct start : size 00, 49 rt
Named comp : ST
Struct start : size 00, 15 rt
Named comp : Mod
Struct start : size 00, 03 rt
Named comp : stVal
Integer : size 04, precision 04
Named comp : q
Bitstring : size 04, precision -13
Named comp : t
UTC Time : size 12, precision 08
Struct end : size 00
Named comp : Beh
Struct start : size 00, 03 rt
Named comp : stVal //第9个,索引为8
Integer : size 04, precision 04
Named comp : q
Bitstring : size 04, precision -13
Named comp : t
UTC Time : size 12, precision 08
Struct end : size 00
Named comp : Health
Struct start : size 00, 03 rt
Named comp : stVal
Integer : size 04, precision 04
Named comp : q
Bitstring : size 04, precision -13
Named comp : t
UTC Time : size 12, precision 08
Struct end : size 00
Struct end : size 00
Named comp : CO
Struct start : size 00, 12 rt
Named comp : Mod
Struct start : size 00, 10 rt
Named comp : Cancel
Struct start: size 00, 08 rt
Named comp: ctlVal
Integer : size 02, precision 01
Named comp: origin
Struct start: size 00, 02 rt
Named comp: orCat
Integer : size 02, precision 01
Named comp: orIdent
Octet Str: size 66, precision -64
Struct end : size 00
Named comp : ctlNum
Unsigned : size 02, precision 01
Named comp : T
UTC Time : size 12, precision 08
Named comp : Test
Boolean : size 04, precision 01
Struct end : size 00
Struct end : size 00
Struct end : size 00
Named comp : CF
Struct start : size 00, 03 rt
Named comp : Mod
Struct start : size 00, 01 rt
Named comp : ctlModel
Integer : size 01, precision 01
Struct end : size 00
Struct end : size 00
Named comp : DC
Struct start : size 00, 06 rt
Named comp : NamPlt
Struct start : size 00, 04 rt
Named comp : vendor
Visible Str : size 256, precision -255
Named comp : swRev
Visible Str : size 256, precision -255
Named comp : d
Visible Str : size 256, precision -255
Named comp : configRev
Visible Str : size 256, precision -255
Struct end : size 00
Struct end : size 00
Named comp : EX
Struct start : size 00, 03 rt
Named comp : NamPlt
Struct start : size 00, 01 rt
Named comp : ldNs
Visible Str : size 256, precision -255
Struct end : size 00
Struct end : size 03
Struct end : size 00 在对该变量进行读写的时候,可以取最底层的名字直接读写例如LNName$FC$DOName,也可以读写LNName$FC。
页:
[1]
