package pl.edu.icm.yadda.analysis.classification.features;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * Simple feature vector.
 *
 * @author Dominika Tkaczyk (d.tkaczyk@icm.edu.pl)
 */
public class SimpleFeatureVector implements FeatureVector {

    Map<String, Double> features = new HashMap<String, Double>();

    @Override
    public double getFeature(String name) {
        if (features.get(name) == null) {
            throw new IllegalArgumentException("Feature vector does not contain feature '" + name + "'.");
        }
        return features.get(name);
    }

    @Override
    public void addFeature(String name, double calculateFeatureValue) {
        features.put(name, calculateFeatureValue);
    }

    @Override
    public Set<String> getFeatureNames() {
        return features.keySet();
    }

}

@@ -739,38 +739,24 @@
 ue);%0A    %7D%0A%0A
-    @Override%0A
     public S

Remove obsolete @override clause