public LMAlgoFactoryDecorator setWeightingsAsStrings ( List < String > weightingList ) { if ( weightingList . isEmpty ( ) ) throw new IllegalArgumentException ( "It is not allowed to pass an emtpy weightingList" ) ; weightingsAsStrings . clear ( ) ; for ( String strWeighting : weightingList ) { strWeighting = toLowerCase ( strWeighting ) ; strWeighting = strWeighting . trim ( ) ; addWeighting ( strWeighting ) ; } return this ; }
Enables the use of contraction hierarchies to reduce query times . Enabled by default .