ai.libs.jaicore.search.algorithms.mdp.mcts.comparison.ObservationsUpdatedEvent Maven / Gradle / Ivy
package ai.libs.jaicore.search.algorithms.mdp.mcts.comparison;
import java.util.Collection;
import org.api4.java.algorithm.IAlgorithm;
import ai.libs.jaicore.basic.algorithm.AAlgorithmEvent;
public class ObservationsUpdatedEvent extends AAlgorithmEvent {
private final N node;
private final Collection scoresLeft;
private final Collection scoresRight;
private final int winsLeft;
private final int winsRight;
private final double pLeft;
private final double pRight;
private final double pLeftScaled;
private final double pRightScaled;
private final int visits;
public ObservationsUpdatedEvent(final IAlgorithm algorithm, final N node, final int visits, final Collection scoresLeft, final Collection scoresRight, final int winsLeft, final int winsRights, final double pLeft, final double pRight, final double pLeftScaled, final double pRightScaled) {
super(algorithm);
this.visits = visits;
this.node = node;
this.winsLeft = winsLeft;
this.winsRight = winsRights;
this.scoresLeft = scoresLeft;
this.scoresRight = scoresRight;
this.pLeft = pLeft;
this.pRight = pRight;
this.pLeftScaled = pLeftScaled;
this.pRightScaled = pRightScaled;
}
public N getNode() {
return this.node;
}
public int getVisits() {
return this.visits;
}
public Collection getScoresLeft() {
return this.scoresLeft;
}
public Collection getScoresRight() {
return this.scoresRight;
}
public double getpLeft() {
return this.pLeft;
}
public double getpRight() {
return this.pRight;
}
public double getpLeftScaled() {
return this.pLeftScaled;
}
public double getpRightScaled() {
return this.pRightScaled;
}
public int getWinsLeft() {
return this.winsLeft;
}
public int getWinsRight() {
return this.winsRight;
}
}