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

picard.sam.util.PhysicalLocation Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package picard.sam.util;

/**
 * Small interface that provides access to the physical location information about a cluster.
 * All values should be defaulted to -1 if unavailable.  ReadGroup and Tile should only allow
 * non-zero positive integers, x and y coordinates may be negative.
 */
public interface PhysicalLocation {
    public static int NO_VALUE = -1;

    public short getReadGroup();

    public void setReadGroup(short rg);

    public short getTile();

    public void setTile(short tile);

    public int getX();

    public void setX(int x);

    public int getY();

    public void setY(int y);

    public short getLibraryId();

    public void setLibraryId(short libraryId);

    /** Default implementation of a method to check whether real location data has been set. */
    default public boolean hasLocation() {
        return getTile() != NO_VALUE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy