Class MNodeUtils


  • public class MNodeUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MNodeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IEntityMNode setToEntity​(IMNode node)
      When a measurement, represented by template or MeasurementMNode, is going to be added to a node, the node should be set to entity.
      static IMNode setToInternal​(IEntityMNode entityMNode)
      When there's no measurement, represented by template or MeasurementMNode, is under this entityMNode, it should not act as entity anymore.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MNodeUtils

        public MNodeUtils()
    • Method Detail

      • setToEntity

        public static IEntityMNode setToEntity​(IMNode node)
        When a measurement, represented by template or MeasurementMNode, is going to be added to a node, the node should be set to entity. Before invoking this method, lock the related MTree part first.
        Parameters:
        node - node to be transformed
        Returns:
        generated entityMNode
      • setToInternal

        public static IMNode setToInternal​(IEntityMNode entityMNode)
        When there's no measurement, represented by template or MeasurementMNode, is under this entityMNode, it should not act as entity anymore. Before invoking this method, lock related MTree structure first.
        Parameters:
        entityMNode - node to be transformed
        Returns:
        generated NoEntity node