class LMAlgoFactoryDecorator implements RoutingAlgorithmFactoryDecorator {

    public LMAlgoFactoryDecorator addWeighting(String weighting) {
        String str[] = weighting.split("\\|");
        double value = -1;
        if (str.length > 1) {
            PMap map = new PMap(weighting);
            value = map.getDouble("maximum", -1);
        }

        weightingsAsStrings.add(str[0]);
        maximumWeights.put(str[0], value);
        return this;
    }

    public  LMAlgoFactoryDecorator();

}