// Copyright 2012 Georg-August-Universität Göttingen, Germany // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package de.ugoe.cs.autoquest.usageprofiles; /** *

* Default implementation of a {@link SymbolStrategy}. Uses a {@link DefaultSymbolComparator} and * a {@link DefaultSymbolMap} for managing symbols. *

* * @author Patrick Harms * * @see SymbolStrategy */ public class DefaultSymbolStrategy implements SymbolStrategy { /** * default serial version id */ private static final long serialVersionUID = 1L; /** * the comparator used in this strategy */ private SymbolComparator comparator = new DefaultSymbolComparator(); /* (non-Javadoc) * @see de.ugoe.cs.autoquest.usageprofiles.SymbolStrategy#getSymbolComparator() */ @Override public SymbolComparator getSymbolComparator() { return comparator; } /* (non-Javadoc) * @see de.ugoe.cs.autoquest.usageprofiles.SymbolStrategy#createSymbolMap() */ @Override public SymbolMap createSymbolMap() { return new DefaultSymbolMap(); } /* (non-Javadoc) * @see de.ugoe.cs.autoquest.usageprofiles.SymbolStrategy#copySymbolMap(de.ugoe.cs.autoquest.usageprofiles.SymbolMap) */ @Override public SymbolMap copySymbolMap(SymbolMap other) { return new DefaultSymbolMap(other); } }