All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.barrybecker4.simulation.common.RectangularModel Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version
/** Copyright by Barry G. Becker, 2000-2011. Licensed under MIT License: http://www.opensource.org/licenses/MIT  */
package com.barrybecker4.simulation.common;

/**
 * Interface for models that exist on a cartesian grid.
 *
 * @author Barry Becker
 */
public interface RectangularModel {

    /**
     * @return model value which we will create a color for
     */
    double getValue(int x, int y);

    /**
     * @return the row that we have calculated up to.
     */
    int getCurrentRow();

    /**
     * @return the row that used to be the current row the last time.
     */
    int getLastRow();

    int getWidth();
    int getHeight();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy