Class SuperAreaOperator

    • Field Detail

      • depthLimit

        protected int depthLimit
        Recursion depth limit while detecting the sub-areas
    • Constructor Detail

      • SuperAreaOperator

        public SuperAreaOperator()
        Creates the deparator with default parameter values.
      • SuperAreaOperator

        public SuperAreaOperator​(int depthLimit)
        Creates the operator.
        Parameters:
        depthLimit - Recursion depth limit while detecting the sub-areas
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: Service
        Obtains a unique ID of the service
      • getName

        public String getName()
        Description copied from interface: Service
        Obtains a descriptive name of the service that may be presented to the user.
        Returns:
        the operator name
      • getDescription

        public String getDescription()
        Description copied from interface: Service
        Obtains a longer description of the service.
        Returns:
        the description
      • getCategory

        public String getCategory()
        Description copied from interface: Service
        A category that allows to group similar services.
        Returns:
        Category name or null when no category is assigned.
      • getDepthLimit

        public int getDepthLimit()
      • setDepthLimit

        public void setDepthLimit​(int depthLimit)
      • apply

        public void apply​(AreaTree atree)
        Description copied from interface: AreaTreeOperator
        Applies the operation to the given tree.
        Parameters:
        atree - the area tree to be modified.
      • apply

        public void apply​(AreaTree atree,
                          Area root)
        Description copied from interface: AreaTreeOperator
        Applies the operation to the given subtree of the tree.
        Parameters:
        atree - the area tree to be modified.
        root - the root node of the affected subtree.
      • findSuperAreas

        public void findSuperAreas​(Area root,
                                   int passlimit)
        Creates syntetic super areas by grouping the subareas of the given area.
        Parameters:
        root - the root area to be processed
        passlimit - the maximal number of passes while some changes occur