Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

在其所有的构造函数中,不能简单的只传字符串了,需要指定deviceId是第几层。

(这里可以让 VectorPartialPath 内部的 nodes 始终只表示到 vector 层,即 ("root", "sg", "device", "vector"),然后下面的 subSensors 统一改为用 String 存储,这样 device 直接返回上一层,measurement 根据 subSensor 的 size,1个就返回 vector + subSensor[0], 否则返回 vector。对于需要使用 subSensor 作为 PartialPath 使用的情况,用 nodes + subsensor 返回数组新建 PartialPath 即可 ————————————魏祥威注).


MTree & MManager改动

MTree中需要记录deviceId的信息(需要考虑如何实现,因为我们支持嵌套序列),也就是说一个MNode,可能既充当Measurement,也要充当device

...