internal StepResult(int cost, Func <Result <T> > nextResultFuture, ErrorCorrection errorCorrection) : base(ResultType.Step) { m_nextResultFuture = nextResultFuture; ErrorCorrection = errorCorrection; Cost = cost; }
public Result <T> StepResult <T>(int cost, Func <Result <T> > nextResult, ErrorCorrection errorCorrection) { //if (cost > 0) //{ // m_failedSteps++; // if (m_failedSteps >= m_succeedSteps * 10) // { // m_trimmingThreshold = 0; // } // else if (m_failedSteps >= m_succeedSteps * 6) // { // m_trimmingThreshold = 1; // } //} //else //{ // m_succeedSteps++; //} return(new StepResult <T>(cost, nextResult, errorCorrection)); }