Merge branch 'develop' into bug/JAL-2510amendFeatures
[jalview.git] / src / jalview / api / analysis / ScoreModelI.java
index 6afd483..7f138cd 100644 (file)
@@ -1,5 +1,6 @@
 package jalview.api.analysis;
 
+import jalview.api.AlignmentViewPanel;
 import jalview.datamodel.AlignmentView;
 import jalview.math.MatrixI;
 
@@ -65,4 +66,14 @@ public interface ScoreModelI
    * @return
    */
   MatrixI findSimilarities(AlignmentView seqData, SimilarityParamsI options);
+
+  /**
+   * Returns a score model object configured for the given alignment view.
+   * Depending on the score model, this may just be a singleton instance, or a
+   * new instance configured with data from the view.
+   * 
+   * @param avp
+   * @return
+   */
+  ScoreModelI getInstance(AlignmentViewPanel avp);
 }