001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.plugins.streetside.model;
003
004import java.awt.geom.Path2D;
005
006public class ImageDetection extends SpecialImageArea {
007  private static final String PACKAGE_TRAFFIC_SIGNS = "trafficsign";
008
009  private final String packag;
010  private final double score;
011  private final String value;
012
013  public ImageDetection(final Path2D shape, final String imageKey, final String key, final double score, final String packag, final String value) {
014    super(shape, imageKey, key);
015    this.packag = packag;
016    this.score = score;
017    this.value = value;
018  }
019
020  public String getPackage() {
021    return packag;
022  }
023
024  public double getScore() {
025    return score;
026  }
027
028  public String getValue() {
029    return value;
030  }
031
032  public boolean isTrafficSign() {
033    return PACKAGE_TRAFFIC_SIGNS.equals(packag);
034  }
035}