AIMA.Core.Search.Online.LRTAStarAgent.lrtaCost C# (CSharp) Method

lrtaCost() private method

private lrtaCost ( Object s, System.Action action, Object sPrime ) : double
s Object
action System.Action
sPrime Object
return double
        private double lrtaCost(Object s, Action action, Object sPrime)
        {
            // if s' is undefined then return h(s)
            if (null == sPrime)
            {
                return getHeuristicFunction().h(s);
            }
            // else return c(s, a, s') + H[s']
            return getProblem().getStepCostFunction().c(s, action, sPrime)
                    + H.get(sPrime);
        }