Class RTCCategory

    • Constructor Detail

      • RTCCategory

        public RTCCategory​(Category cat,
                           String commonRule)
        The default constructor - initializes the values
        Parameters:
        cat - a Category object.
        commonRule - a String object.
    • Method Detail

      • addNode

        public void addNode​(RTCNode node)
        Add to the nodes in this category
        Parameters:
        node - the node to add
      • addNode

        public void addNode​(int nodeid)
        Add to the nodes in this category
        Parameters:
        nodeid - the node ID to add
      • deleteNode

        public void deleteNode​(int nodeid)
        Delete from the nodes in this category
        Parameters:
        nodeid - the node ID to delete
      • clearNodes

        public void clearNodes()
        Delete all nodes in this category
      • addAllNodes

        public void addAllNodes​(Collection<Integer> nodes)
        Delete all nodes in this category
      • containsService

        public boolean containsService​(String svcname)
        Returns true if the service is in the services list in this category or if service list is null
        Parameters:
        svcname - a String object.
        Returns:
        true if the service is in the services list in this category or if service list is null
      • getEffectiveRule

        public String getEffectiveRule()
        Return the 'effective' category rule
        Returns:
        the 'effective' category rule
      • getNodes

        public List<Integer> getNodes()
        Get the node IDs in this category
        Returns:
        the list of node IDs in this category