001    package aima.probability.decision;
002    
003    /**
004     * @author Ravi Mohan
005     * 
006     */
007    
008    public class MDPPerception<STATE_TYPE> {
009    
010            private STATE_TYPE state;
011    
012            private double reward;
013    
014            public MDPPerception(STATE_TYPE state, double reward) {
015                    this.state = state;
016                    this.reward = reward;
017            }
018    
019            public double getReward() {
020                    return reward;
021            }
022    
023            public STATE_TYPE getState() {
024                    return state;
025            }
026    
027            @Override
028            public String toString() {
029                    return "[ " + state.toString() + " , " + reward + " ] ";
030            }
031    
032    }