/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Alex
 */
public class Cost {
private short [][] costMatrix;
public Cost(int row,int col){
    this.costMatrix=new short[row+1][col+1];
for(int i=0;i<row+1;i++){
    this.costMatrix[i][0]=(short) i;
     this.costMatrix[0][1]=(short) i;
}
}

    void assignCost(short s, int row, int col) {
        this.costMatrix[row][col]=s;
    }

    short cost(int row, int col) {
        return this.costMatrix[row][col];
    }

}
