001    package aima.probability.decision.cellworld;
002    
003    /**
004     * @author Ravi Mohan
005     * 
006     */
007    
008    public class Cell {
009            private int x_co_ord, y_co_ord;
010    
011            private double reward;
012    
013            public Cell(int i, int j, double reward) {
014                    this.x_co_ord = i;
015                    this.y_co_ord = j;
016                    this.reward = reward;
017            }
018    
019            public int getY() {
020                    return y_co_ord;
021            }
022    
023            public int getX() {
024                    return x_co_ord;
025            }
026    
027            public double getReward() {
028                    return reward;
029            }
030    
031            public void setReward(double reward) {
032                    this.reward = reward;
033            }
034    
035            public CellWorldPosition position() {
036                    return new CellWorldPosition(getX(), getY());
037            }
038    
039    }