Package ubic.gemma.model.genome
Class PhysicalLocation
- java.lang.Object
-
- ubic.gemma.model.genome.ChromosomeLocation
-
- ubic.gemma.model.genome.PhysicalLocation
-
- All Implemented Interfaces:
Serializable,Identifiable
public class PhysicalLocation extends ChromosomeLocation
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhysicalLocation.Factory
-
Constructor Summary
Constructors Constructor Description PhysicalLocation()No-arg constructor added to satisfy javabean contract
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbinFromRange(int start, int end)intcompareTo(Object object)static intcomputeOverlap(long starta, long enda, long startb, long endb)intcomputeOverlap(PhysicalLocation other)booleanequals(Object object)Returnstrueif the argument is an ChromosomeLocation instance and all identifiers for this entity equal the identifiers of the argument entity.IntegergetBin()LonggetNucleotide()IntegergetNucleotideLength()StringgetStrand()inthashCode()Returns a hash code based on this entity's identifiers.voidsetBin(Integer bin)voidsetNucleotide(Long nucleotide)voidsetNucleotideLength(Integer nucleotideLength)voidsetStrand(String strand)StringtoString()-
Methods inherited from class ubic.gemma.model.genome.ChromosomeLocation
getChromosome, getId, setChromosome, setId
-
-
-
-
Method Detail
-
computeOverlap
public static int computeOverlap(long starta, long enda, long startb, long endb)
-
binFromRange
public int binFromRange(int start, int end)- Parameters:
start- startend- end- Returns:
- bin that this start-end segment is in
-
compareTo
public int compareTo(Object object)
- Specified by:
compareToin classChromosomeLocation- See Also:
Comparable.compareTo(Object)
-
hashCode
public int hashCode()
Description copied from class:ChromosomeLocationReturns a hash code based on this entity's identifiers.- Overrides:
hashCodein classChromosomeLocation
-
equals
public boolean equals(Object object)
Description copied from class:ChromosomeLocationReturnstrueif the argument is an ChromosomeLocation instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalseotherwise.- Overrides:
equalsin classChromosomeLocation
-
computeOverlap
public int computeOverlap(PhysicalLocation other)
-
getBin
public Integer getBin()
- Returns:
- Index to speed up queries
-
setBin
public void setBin(Integer bin)
-
getNucleotide
public Long getNucleotide()
-
setNucleotide
public void setNucleotide(Long nucleotide)
-
getNucleotideLength
public Integer getNucleotideLength()
-
setNucleotideLength
public void setNucleotideLength(Integer nucleotideLength)
-
getStrand
public String getStrand()
-
setStrand
public void setStrand(String strand)
-
-