Skip to content

Commit

Permalink
add default methods to pruning interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jan 17, 2024
1 parent e95eede commit c65acdd
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ default void onSelectCandidate(PlanModel model, PlanCandidate candidate) {
*
* @return positive threshold, if negative it will not be applied
*/
double planThreshold(PlanModel planModel);
default double planThreshold(PlanModel planModel) {
return -1;
}


/**
* Calculate threshold to be applied on a single trip. Modes worse than this threshold on this trip will be discarded.
*
* @return positive threshold, if negative it will not be applied
*/
double tripThreshold(PlanModel planModel, int idx);
default double tripThreshold(PlanModel planModel, int idx) {
return -1;
}
}

0 comments on commit c65acdd

Please sign in to comment.