com.barrybecker4.simulation.common.RectangularModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bb4-simulation Show documentation
Show all versions of bb4-simulation Show documentation
bb4-simulations java code.
/** 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();
}