src/core/reinforcement/policy/executablepolicy/MCTSPolicy.java
public void update(Stack<StateTransition> stateTransitionStack) {
            StateTransition stateTransition = stateTransitionStack.pop();
            getMaxAction().updateActionValue(stateTransition.tdTarget);
            stateTransition.value = getMaxAction().getPolicyValue();
            if (hasParentState()) getParentState().update(stateTransitionStack);
        }
/**
         * Updates state action value chain from leaf state towards root state.
         *
         * @param stateTransitionStack state transition stack.
         */
Updates state action value chain from leaf state towards root state.

@param stateTransitionStack state transition stack.
Updates state action value chain from leaf state towards root state . @param stateTransitionStack state transition stack .
public void update(Stack<StateTransition> stateTransitionStack) {
            StateTransition stateTransition = stateTransitionStack.pop();
            getMaxAction().updateActionValue(stateTransition.tdTarget);
            stateTransition.value = getMaxAction().getPolicyValue();
            if (hasParentState()) getParentState().update(stateTransitionStack);
        }
public void update ( Stack < StateTransition > stateTransitionStack ) { StateTransition stateTransition = stateTransitionStack . pop ( ) ; getMaxAction ( ) . updateActionValue ( stateTransition . tdTarget ) ; stateTransition . value = getMaxAction ( ) . getPolicyValue ( ) ; if ( hasParentState ( ) ) getParentState ( ) . update ( stateTransitionStack ) ; }
Updates state action value chain from leaf state towards root state.
Updates state action value chain from leaf state towards root state .