Class RTCCategory

    • Constructor Detail

      • RTCCategory

        public RTCCategory​(Category cat,
                           java.lang.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​(java.util.Collection<java.lang.Integer> nodes)
        Delete all nodes in this category
      • containsService

        public boolean containsService​(java.lang.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 java.lang.String getEffectiveRule()
        Return the 'effective' category rule
        Returns:
        the 'effective' category rule
      • getNodes

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