Exemplo n.º 1
0
      /**
       * Instantiates a new annotation source.
       *
       * @param name the name
       * @param annotations the annotations
       * @param color the color
       * @param ancestry the ancestry
       */
      public AnnotationSource(String name, Annotations annotations, Color color, String ancestry) {
        super(name, annotations, color, ancestry);

        this.color = color;

        initializations = annotations.findTag("initialization");
        crashes = annotations.findTag("crash");
        failures = annotations.findTag("failure");

        Vector<String> tagKeys = new Vector<String>(annotations.getTags());

        Collections.sort(tagKeys);

        for (String label : tagKeys) {
          values.add(new ValuesAnnotations(label, ValueType.TAG));
        }

        Vector<String> valueKeys = new Vector<String>(annotations.getValueKeys());

        Collections.sort(valueKeys);

        for (String key : valueKeys) {
          values.add(new ValuesAnnotations(key, ValueType.NUMERICAL));
        }
      }