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

it.unitn.disi.smatch.data.matrices.IMatchMatrix Maven / Gradle / Ivy

The newest version!
package it.unitn.disi.smatch.data.matrices;

/**
 * An interface to a matrix with matching results.
 *
 * @author Mikalai Yatskevich [email protected]
 * @author 
 */
public interface IMatchMatrix {

    /**
     * Inits a matrix x rows per y columns.
     *
     * @param x rows count
     * @param y column count
     */
    void init(int x, int y);

    /**
     * Returns an element.
     *
     * @param x row
     * @param y column
     * @return an element value
     */
    char get(int x, int y);

    /**
     * Sets an element.
     *
     * @param x     row
     * @param y     column
     * @param value a new element value
     * @return true if matrix was modified 
     */
    boolean set(int x, int y, char value);

    /**
     * Returns row count.
     *
     * @return row count
     */
    int getX();

    /**
     * Returns column count.
     *
     * @return column count
     */
    int getY();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy