jmarkov.basic

## Class Solution<S extends State,A extends Action>

- java.lang.Object
- - jmarkov.basic.Solution<S,A>

- Type Parameters:
    `S` - state
    `A` - action

      public class Solution<S extends State,A extends Action>
      extends java.lang.Object

  This class represents the joint information of a value function and a policy which summarizes the solution to a problem.
  Author:
    Andres Sarmiento and Germán Riaño - Universidad de Los Andes

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Solution(ValueFunction<S> valueFunction, Policy<S,A> policy)` Builds a solution given a value funtcion and a policy

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Policy<S,A>` | `getPolicy()` Returns the Policy.
    `ValueFunction<S>` | `getValueFunction()` Returns the valueFunction.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Solution

          public Solution(ValueFunction<S> valueFunction,
                  Policy<S,A> policy)

      Builds a solution given a value funtcion and a policy
      Parameters:
        `valueFunction` - value function
        `policy` - policy

  - ### Method Detail

    - #### getPolicy

          public Policy<S,A> getPolicy()

      Returns the Policy.
      Returns:
        Returns the policy.

    - #### getValueFunction

          public ValueFunction<S> getValueFunction()

      Returns the valueFunction.
      Returns:
        Returns the valueFunction.