Class Episode<S extends State,A extends Action>

java.lang.Object
org.tweetyproject.machinelearning.rl.mdp.Episode<S,A>
Type Parameters:
S - The type of states this MDP uses
A - The type of actions this MDP uses

public class Episode<S extends State,A extends Action> extends Object
This class models an episode in MPDs, i.e. a sequence of actions and states.
Author:
Matthias Thimm
  • Constructor Details

    • Episode

      public Episode(S s)
      Creates a new empty episode for the given starting state
      Parameters:
      s - MDP use
  • Method Details

    • addObservation

      public void addObservation(A a, S s)
      Adds some observation (action, state pair)
      Parameters:
      a - some action
      s - some state
    • getTransitions

      public List<Triple<S,A,S>> getTransitions()
      Returns all transitions of this episode
      Returns:
      all transitions of this episode
    • toString

      public String toString()
      Overrides:
      toString in class Object