}
@Override
protected double priorActionProbability(SymbolTerm action, PlayerId playerId) {
ToPrologTermVisitor visitor = getTopVisitor();
Predicate prior_action_probability = new PRED_prior_action_probability_6();
VariableTerm p = new VariableTerm();
IntegerTerm gameId = new IntegerTerm(visitor.getGameId());
IntegerTerm actionId = new IntegerTerm(visitor.getActionId() + 1);
SymbolTerm playerName = SymbolTerm.makeSymbol("player_" + playerId.getId());
Term[] args = { gameId, actionId, playerName, action, visitor.getRound(), p };
if (logger.isDebugEnabled()) {
logger.debug(new PRED_prior_action_probability_6(gameId, actionId, playerName, action, visitor.getRound(), p, null));
}
if (!executeGoal(prior_action_probability, args)) {
throw new IllegalStateException("Failed to call "
+ prior_action_probability);
}