package rlpark.plugin.rltoys.horde.functions;

import rlpark.plugin.rltoys.envio.actions.Action;
import rlpark.plugin.rltoys.envio.observations.Observation;
import rlpark.plugin.rltoys.envio.policy.Policy;
import rlpark.plugin.rltoys.math.vector.RealVector;

public class PolicyUpdatable implements HordeUpdatable {
  private final Policy policy;

  public PolicyUpdatable(Policy policy) {
    this.policy = policy;
  }

  @Override
  public void update(Observation o_tp1, RealVector x_t, Action a_t, RealVector x_tp1) {
    policy.update(x_t);
  }
}

@@ -541,11 +541,62 @@
 _t);%0A  %7D
+%0A%0A  public Policy policy() %7B%0A    return policy;%0A  %7D
 %0A%7D%0A

Add an accessor method