X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fapi%2FSequenceAnnotationServiceI.java;h=9ca2d313b50fdd6f170ca318a8f2c7a14413029c;hb=daa1765ab2101480a724b92a3f3e7dee662ba943;hp=a224bac4b1c784e914aa50677cd06995bb2822bf;hpb=ba2c0286e9a47af8ffd46057f91a22df0d4850ea;p=jalview.git diff --git a/src/jalview/ws/api/SequenceAnnotationServiceI.java b/src/jalview/ws/api/SequenceAnnotationServiceI.java index a224bac..9ca2d31 100644 --- a/src/jalview/ws/api/SequenceAnnotationServiceI.java +++ b/src/jalview/ws/api/SequenceAnnotationServiceI.java @@ -1,13 +1,14 @@ package jalview.ws.api; +import jalview.api.FeatureColourI; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.SequenceI; -import jalview.ws.gui.AnnotationWsJob; -import jalview.ws.jws2.SeqAnnotationServiceCalcWorker; +import jalview.datamodel.features.FeatureMatcherSetI; import jalview.ws.params.ArgumentI; import jalview.ws.params.WsParamSetI; import java.util.List; +import java.util.Map; public interface SequenceAnnotationServiceI extends JalviewWebServiceI { @@ -27,14 +28,24 @@ public interface SequenceAnnotationServiceI extends JalviewWebServiceI List paramset) throws Throwable; /** - * todo: move to SequenceAnnotationResult + * materialise annotation and features for sequences input to the service * - * @param running - * @param abstractJabaCalcWorker - * @return + * @param job + * @param seqs + * - features and alignment annotation added to these will be + * imported to the dataset for the alignment + * @param featureColours + * - container for feature colours - any defined will be merged with + * viewport + * @param featureFilters + * - container for filters - any defined will be merged with viewport + * @return sequence and alignment annotation rows that should be made + * visible/updated on alignment + * @throws Throwable */ - List getAlignmentAnnotation(AnnotationWsJob running, - SeqAnnotationServiceCalcWorker abstractJabaCalcWorker) throws Throwable; - + List getAnnotationResult(JobId job, + List seqs, Map featureColours, + Map featureFilters) throws Throwable; + }