*
* @param sf
*/
- public abstract boolean add(SequenceFeature sf);
+ abstract boolean add(SequenceFeature sf);
/**
* Returns a (possibly empty) list of features, optionally restricted to
* @param type
* @return
*/
- public abstract List<SequenceFeature> findFeatures(int from, int to,
+ abstract List<SequenceFeature> findFeatures(int from, int to,
String... type);
/**
* @param type
* @return
*/
- public abstract List<SequenceFeature> getAllFeatures(String... type);
+ abstract List<SequenceFeature> getAllFeatures(String... type);
- public abstract int getFeatureCount(boolean positional, String... type);
+ /**
+ * Answers the number of (positional or non-positional) features, optionally
+ * restricted to specified feature types. Contact features are counted as 1.
+ *
+ * @param positional
+ * @param type
+ * @return
+ */
+ abstract int getFeatureCount(boolean positional, String... type);
+
+ /**
+ * Answers the total length of positional features, optionally restricted to
+ * specified feature types. Contact features are counted as length 1.
+ *
+ * @param type
+ * @return
+ */
+ abstract int getTotalFeatureLength(String... type);
/**
* Answers a list of all positional features, optionally restricted to
* @param type
* @return
*/
- public abstract List<SequenceFeature> getPositionalFeatures(
+ abstract List<SequenceFeature> getPositionalFeatures(
String... type);
/**
*
* @return
*/
- public abstract List<SequenceFeature> getContactFeatures(String... type);
+ abstract List<SequenceFeature> getContactFeatures(String... type);
/**
* Answers a list of all non-positional features, optionally restricted to
* if no type is specified, all are returned
* @return
*/
- public abstract List<SequenceFeature> getNonPositionalFeatures(
+ abstract List<SequenceFeature> getNonPositionalFeatures(
String... type);
/**
*
* @param sf
*/
- public abstract boolean delete(SequenceFeature sf);
+ abstract boolean delete(SequenceFeature sf);
/**
* Answers true if this store contains at least one feature, else false
*
* @return
*/
- public abstract boolean hasFeatures();
+ abstract boolean hasFeatures();
/**
* Returns a set of the distinct feature groups present in the collection. The
* @param type
* @return
*/
- public abstract Set<String> getFeatureGroups(boolean positionalFeatures,
+ abstract Set<String> getFeatureGroups(boolean positionalFeatures,
String... type);
/**
* @param groups
* @return
*/
- public abstract Set<String> getFeatureTypesForGroups(
+ abstract Set<String> getFeatureTypesForGroups(
boolean positionalFeatures, String... groups);
/**
*
* @return
*/
- public abstract Set<String> getFeatureTypes();
+ abstract Set<String> getFeatureTypes();
}
\ No newline at end of file