Class SurveillanceTable

    • Constructor Detail

      • SurveillanceTable

        public SurveillanceTable()

        Constructor for SurveillanceTable.

      • SurveillanceTable

        public SurveillanceTable​(int rows,
                                 int columns)

        Constructor for SurveillanceTable.

        Parameters:
        rows - a int.
        columns - a int.
    • Method Detail

      • setStatus

        public void setStatus​(int row,
                              int col,
                              AggregateStatus status)

        setStatus

        Parameters:
        row - a int.
        col - a int.
        status - a AggregateStatus object.
      • getStatus

        public AggregateStatus getStatus​(int row,
                                         int col)

        getStatus

        Parameters:
        row - a int.
        col - a int.
        Returns:
        a AggregateStatus object.
      • getRowCount

        public int getRowCount()

        getRowCount

        Returns:
        a int.
      • getColumnCount

        public int getColumnCount()

        getColumnCount

        Returns:
        a int.
      • getStatusRow

        public AggregateStatus[] getStatusRow​(int row)

        getStatusRow

        Parameters:
        row - a int.
        Returns:
        an array of AggregateStatus objects.
      • getOrderedRows

        public List<List<AggregateStatus>> getOrderedRows()
        This method returns an ordered list of Aggregate Status rows and columns the internal table. Usefull when needing to work with collections and not arrays.
        Returns:
        List
      • getColumnOrderedRowsWithHeaders

        public Map<String,​List<AggregateStatus>> getColumnOrderedRowsWithHeaders()
        Handy method for return a map with the key being the row header and the value being an ordered collection of aggregate stati.
        Returns:
        Map> map
      • getColumnOrderedRow

        public List<AggregateStatus> getColumnOrderedRow​(AggregateStatus[] row)
        This method returns on ordered list of Aggregate Status columns based on the array argument.
        Parameters:
        row - an array of AggregateStatus objects.
        Returns:
        List orderedRow
      • getColumnOrderedRow

        public List<AggregateStatus> getColumnOrderedRow​(int row)
        This method returns on ordered list of Aggregate Status columns based on the row specified from the status internal table.
        Parameters:
        row - a int.
        Returns:
        List orderedRow
      • getRowHeader

        public String getRowHeader​(int row)

        getRowHeader

        Parameters:
        row - a int.
        Returns:
        a String object.
      • setRowHeader

        public void setRowHeader​(int row,
                                 String header)

        setRowHeader

        Parameters:
        row - a int.
        header - a String object.
      • getRowHeaders

        public String[] getRowHeaders()

        getRowHeaders

        Returns:
        an array of String objects.
      • getRowHeaderList

        public List<String> getRowHeaderList()

        getRowHeaderList

        Returns:
        a List object.
      • setColumnHeader

        public void setColumnHeader​(int col,
                                    String header)

        setColumnHeader

        Parameters:
        col - a int.
        header - a String object.
      • getColumnHeaders

        public String[] getColumnHeaders()

        getColumnHeaders

        Returns:
        an array of String objects.
      • getColumnHeaderList

        public List<String> getColumnHeaderList()

        getColumnHeaderList

        Returns:
        a List object.
      • getLabel

        public String getLabel()

        getLabel

        Returns:
        a String object.
      • setLabel

        public void setLabel​(String label)

        setLabel

        Parameters:
        label - a String object.
      • getRowNodes

        public Set<OnmsNode>[] getRowNodes()

        getRowNodes

        Returns:
        an array of Set objects.
      • setRowNodes

        public void setRowNodes​(Set<OnmsNode>[] rowNodes)

        setRowNodes

        Parameters:
        rowNodes - an array of Set objects.
      • setRowHeaders

        public void setRowHeaders​(String[] rowHeaders)

        setRowHeaders

        Parameters:
        rowHeaders - an array of String objects.
      • getColumnNodes

        public Set<OnmsNode>[] getColumnNodes()

        getColumnNodes

        Returns:
        an array of Set objects.
      • setColumnNodes

        public void setColumnNodes​(Set<OnmsNode>[] columnNodes)

        setColumnNodes

        Parameters:
        columnNodes - an array of Set objects.
      • setColumnHeaders

        public void setColumnHeaders​(String[] columnHeaders)

        setColumnHeaders

        Parameters:
        columnHeaders - an array of String objects.
      • setStatusTable

        public void setStatusTable​(AggregateStatus[][] statusTable)

        setStatusTable

        Parameters:
        statusTable - an array of AggregateStatus objects.
      • getNodesForRow

        public Set<OnmsNode> getNodesForRow​(int row)

        getNodesForRow

        Parameters:
        row - a int.
        Returns:
        a Set object.
      • setNodesForRow

        public void setNodesForRow​(int row,
                                   Collection<OnmsNode> nodes)

        setNodesForRow

        Parameters:
        row - a int.
        nodes - a Collection object.
      • getNodesForColumn

        public Set<OnmsNode> getNodesForColumn​(int col)

        getNodesForColumn

        Parameters:
        col - a int.
        Returns:
        a Set object.
      • setNodesForColumn

        public void setNodesForColumn​(int col,
                                      Collection<OnmsNode> columnNodes)

        setNodesForColumn

        Parameters:
        col - a int.
        columnNodes - a Collection object.