svn.filsa.org sketches

Rev

Blame | Last modification | View Log | RSS feed

package org.filsa.devfest.patchwork;

import java.util.List;

public interface Processor {

        /**
         * Process the Grid, and return a list of all the areas in the grid.
         *
         * @return a list of Area objects
         */

        List<Area> process();

        /**
         * Mark the cells in the grid that are contained in the area
         *
         * @param biggest - the largest area
         */

        void mark(Area biggest);

        /**
         * count the # of cells that are marked in each row, returning the results in a list of integers.
         *
         * @param biggest
         * @return
         */

        List<Integer> calc(Area biggest);
       
}