예제 #1
0
  public static ModelledFeature createModelledFeature(
      String name, CvTerm featureType, Collection<Range> ranges) {

    ModelledFeature feature = new DefaultModelledFeature(name, null, featureType);
    if (ranges != null) {
      feature.getRanges().addAll(ranges);
    }
    return feature;
  }
예제 #2
0
  public static ModelledFeature createModelledFeature(
      String name, CvTerm featureType, Range range) {

    ModelledFeature feature = new DefaultModelledFeature(name, null, featureType);
    if (range != null) {
      feature.getRanges().add(range);
    }
    return feature;
  }