package uk.ac.ebi.pride.archive.dataprovider.sample;

import uk.ac.ebi.pride.archive.dataprovider.common.ITuple;
import uk.ac.ebi.pride.archive.dataprovider.msrun.MsRunProvider;
import uk.ac.ebi.pride.archive.dataprovider.param.CvParamProvider;

import java.util.Collection;

/**
 * This code is licensed under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * ==Overview==
 *
 * This Interface model the relation between a {@link SampleProvider} and {@link MsRunProvider}. This tow entities are related by
 * Fraction ID and Label Reagent. The Key of the row
 *
 * @author ypriverol on 29/10/2018.
 */
public interface ISampleMSRunRow {

    /**
     * Accession of the {@link uk.ac.ebi.pride.archive.dataprovider.sample.SampleProvider}.
     * @return SampleProvider accession
     */
    String getProjectAccession();

    /**
     * Get the Accession of the {@link uk.ac.ebi.pride.archive.dataprovider.msrun.MsRunProvider} for the Tuple.
     * @return Accession of the Tuple for the relation.
     */
    String getSampleAccession();

    /**
     * Get the {@link MsRunProvider} Accession.
     */

    String getMsRunAccession();

    /**
     * Get the labeling information, for label free experiments the label is not needed becuase not labeling has been applied.
     * Labeling is used mainly for multiplex experiments where the same information Sample can be found in the same MSRun (RAW file). Possible value for ITRAQ labeling
     * - [MS, MS:1002626, ITRAQ reagent, ]
     *
     * @return Label
     */
    CvParamProvider getSampleLabel();

    /**
     * Get the fraction identifier, if not fractionation is applied, the fraction should be only 0 only one fraction.
     * The fraction will be annotated using the CVTerm [MS, MS:1000858, fraction identifier, value ]
     */
    CvParamProvider getFractionIdentifierCvParam();

    /**
     * Fraction identifier in String
     */
    String getFractionAccession();

    /**
     * Get Sample properties
     * @return Collection of Additional Properties.
     */
    Collection<? extends ITuple<? extends CvParamProvider, ? extends CvParamProvider>> getSampleProperties();

    /**
     * Get the specific Label Reagent for the Label in the specific MSRUN. This value can be NULL in case label-free is processed.
     * @return Label Reagent will be a CVTerm from UNIMOD.
     */
    CvParamProvider getLabelReagent();

    /**
     * Get Sample properties
     * @return Collection of Additional Properties.
     */
    Collection<? extends ITuple<? extends CvParamProvider, ? extends CvParamProvider>> getMSRunProperties();

    /**
     * Get the Unique key for each Row. It will be the combination of Reagent, Sample Accession, Fraction Accession,
     * MSRUN Accession.
     * @return SampleMSRun Accession
     */
    Comparable getUniqueKey();

}

@@ -2745,17 +2745,17 @@
 r%3E%3E getM
-S
+s
 RunPrope

Support for msRun and sample annotations in the API.