Class Collector


  • public class Collector
    extends java.lang.Object
    Information collector for OPC UA companion spec files and IVML files.
    Author:
    Jan-Hendrik Cepok, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Map<java.lang.String,​java.lang.Object[]> collection  
      private static int modelCounter  
    • Constructor Summary

      Constructors 
      Constructor Description
      Collector()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void collectInformation​(java.lang.String fileName, org.w3c.dom.NodeList objectTypeList, org.w3c.dom.NodeList objectList, org.w3c.dom.NodeList variableList, org.w3c.dom.NodeList methodList, org.w3c.dom.NodeList dataTypeList, org.w3c.dom.NodeList variableTypeList, java.util.ArrayList<BaseType> hierarchy, int reqModels)
      Collects the information parameters.
      private static org.w3c.dom.Element getNextNodeElement​(org.w3c.dom.NodeList nodes, int iterator)
      Returns the next node.
      static void informationToExcel()
      Transfers collected information to excel.
      • Methods inherited from class java.lang.Object

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

      • collection

        private static java.util.Map<java.lang.String,​java.lang.Object[]> collection
      • modelCounter

        private static int modelCounter
    • Constructor Detail

      • Collector

        public Collector()
    • Method Detail

      • getNextNodeElement

        private static org.w3c.dom.Element getNextNodeElement​(org.w3c.dom.NodeList nodes,
                                                              int iterator)
        Returns the next node.
        Parameters:
        nodes - the nodes to take the node from
        iterator - the position/iterator
        Returns:
        the node, may be null
      • collectInformation

        public static void collectInformation​(java.lang.String fileName,
                                              org.w3c.dom.NodeList objectTypeList,
                                              org.w3c.dom.NodeList objectList,
                                              org.w3c.dom.NodeList variableList,
                                              org.w3c.dom.NodeList methodList,
                                              org.w3c.dom.NodeList dataTypeList,
                                              org.w3c.dom.NodeList variableTypeList,
                                              java.util.ArrayList<BaseType> hierarchy,
                                              int reqModels)
        Collects the information parameters.
        Parameters:
        fileName - the nodeset file name
        objectTypeList - the already parsed object type list
        objectList - the already parsed object list
        variableList - the already parsed variable list
        methodList - the already parsed method list
        dataTypeList - the already parsed data type list
        variableTypeList - the already parsed variable type list
        hierarchy - the base type hierarchy
        reqModels - the number of required models
      • informationToExcel

        public static void informationToExcel()
        Transfers collected information to excel.