ui
Interface SolutionInterface


public interface SolutionInterface

This is interface for computing values and policies. Let you implement heavy computations in solveMDP method. Data are read using methods getActionForState and getValueForState by GUI and displayed. Each class implementing this interface must have constructor without arguments. Else the solution cannot be loaded by the main execution class.

Author:
Petr

Method Summary
 Action getActionForState(StudentStateInterface state)
          This method is called by the system and provides environment to students.
 double getValueForState(StudentStateInterface state)
           
 void solveMDP(Environment environment)
          In this method students obtain environment object.
 

Method Detail

solveMDP

void solveMDP(Environment environment)
In this method students obtain environment object. Students should implement all heavy computations in this method. Students should set Pcorrect of the environment at the beginning of this method.

Parameters:
environment -

getActionForState

Action getActionForState(StudentStateInterface state)
This method is called by the system and provides environment to students.

Parameters:
state -
Returns:
action for given state (this is policy in fact). This method should be lightweight.

getValueForState

double getValueForState(StudentStateInterface state)
Parameters:
state -
Returns:
value for given state. This method should be lightweight.