+
+ private AlignmentSorter()
+ {
+ // singleton
+ }
+ /**
+ * types of feature ordering: Sort by score : average score - or total score -
+ * over all features in region Sort by feature label text: (or if null -
+ * feature type text) - numerical or alphabetical Sort by feature density:
+ * based on counts - ignoring individual text or scores for each feature
+ */
+ public static final String FEATURE_SCORE = "average_score";
+
+ public static final String FEATURE_LABEL = "text";
+
+ public static final String FEATURE_DENSITY = "density";
+
+ public static AlignmentSorter getInstance()
+ {
+ Instance j = Instance.getInstance();
+ return (j.alignmentSorter == null
+ ? j.alignmentSorter = new AlignmentSorter()
+ : j.alignmentSorter);
+ }
+