001    package jigcell.compare.ui;
002    
003    import jigcell.compare.ITab;
004    import jigcell.compare.IWriteableDataSource;
005    
006    /**
007     * Represents a Comparator tab that has promised functionality for evaluating results.  Components supporting only a subset of these features
008     * should throw an UnsupportedOperationException to indicate features that are not supported.
009     * 
010     * <p>
011     * This code is licensed under the DARPA BioCOMP Open Source License.  See LICENSE for more details.
012     * </p>
013     *
014     * @author Nicholas Allen
015     */
016    
017    public interface IResultTab extends ITab {
018    
019       /**
020        * Evaluates all of the specified functions.
021        */
022    
023       void evaluate ();
024    
025       /**
026        * Evaluates a subset of the specified functions.
027        *
028        * @param list Positions to evaluate
029        */
030    
031       void evaluate (int list []);
032    
033       /**
034        * Resets results computed by this view.
035        */
036    
037       void reset ();
038    
039       /**
040        * Resets a subset of the results computed by this view.
041        *
042        * @param list Positions to reset
043        */
044    
045       void reset (int list []);
046    
047       /**
048        * Saves the data for the results to some external source.
049        *
050        * @param source Data source to write to
051        */
052    
053       void saveResults (IWriteableDataSource source);
054    
055       /**
056        * Saves the data for the results to some external source without user prompting.
057        *
058        * @param source Data source to write to
059        */
060    
061       void saveResultsDirect (IWriteableDataSource source);
062    }