Package algorithms.impls.wave

Examples of algorithms.impls.wave.WaveAlgorithm


                }

            }
        }

        WaveAlgorithm waveAlgorithm = new WaveAlgorithm(colorSquareArr);
        waveAlgorithm.calculate();
        List<Point> pathCoordArr = waveAlgorithm.getPath();

        for(Point point : pathCoordArr)
        {
            if (blockSquaresArr[point.y][point.x] == BLOCK_SQUARE) {
                fail("Path between two points lays through block square y = " + point.y +
View Full Code Here


import java.util.List;

class WaveFactory implements AlgorithmFactory {

    public Algorithm getAlgorithm(List<List<ColorSquare>> colorSquareArr) {
        return new WaveAlgorithm(colorSquareArr);
    }
View Full Code Here

TOP

Related Classes of algorithms.impls.wave.WaveAlgorithm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.