All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.profi.mzdb.model.SpectrumSlice Maven / Gradle / Ivy

There is a newer version: 0.0.27
Show newest version
/*
 * Package fr.profi.mzdb.model
 * @author David Bouyssie
 */
package fr.profi.mzdb.model;

// TODO: Auto-generated Javadoc
/**
 * The Class SpectrumSlice.
 * 
 * @author David Bouyssie
 */
public class SpectrumSlice extends Spectrum {

	// SpectrumData {

	/** The run slice id. */
	protected int runSliceId;

	/**
	 * Instantiates a new spectrum slice.
	 * 
	 * @param spectrumId
	 *            the spectrum id
	 * @param runSliceId
	 *            the run slice id
	 * @param mzList
	 *            the mz list
	 * @param intensityList
	 *            the intensity list
	 */
	public SpectrumSlice(SpectrumHeader header, SpectrumData spectrumData) {
		super(header, spectrumData);
		
    if( header == null ) {
      throw new IllegalArgumentException("a SpectrumHeader must be provided");
    }
    
    if( spectrumData == null ) {
      throw new IllegalArgumentException("a SpectrumData must be provided");
    }
	}

	/**
	 * Gets the spectrum id.
	 * 
	 * @return the spectrum id
	 */
	public long getSpectrumId() {
		return header.getId();
	}

	/**
	 * Gets the run slice id.
	 * 
	 * @return the run slice id
	 */
	public int getRunSliceId() {
		return runSliceId;
	}

	/**
	 * Sets the run slice id.
	 * 
	 * @param runSliceId
	 *            the new run slice id
	 */
	public void setRunSliceId(int runSliceId) {
		this.runSliceId = runSliceId;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy