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 SummaryNested Classes Modifier and Type Class Description static classPhysicalLocation.Factory
 - 
Constructor SummaryConstructors Constructor Description PhysicalLocation()No-arg constructor added to satisfy javabean contract
 - 
Method SummaryAll 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.ChromosomeLocationgetChromosome, getId, setChromosome, setId
 
- 
 
- 
- 
- 
Method Detail- 
computeOverlappublic static int computeOverlap(long starta, long enda, long startb, long endb)
 - 
binFromRangepublic int binFromRange(int start, int end)- Parameters:
- start- start
- end- end
- Returns:
- bin that this start-end segment is in
 
 - 
compareTopublic int compareTo(Object object) - Specified by:
- compareToin class- ChromosomeLocation
- See Also:
- Comparable.compareTo(Object)
 
 - 
hashCodepublic int hashCode() Description copied from class:ChromosomeLocationReturns a hash code based on this entity's identifiers.- Overrides:
- hashCodein class- ChromosomeLocation
 
 - 
equalspublic 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 class- ChromosomeLocation
 
 - 
computeOverlappublic int computeOverlap(PhysicalLocation other) 
 - 
getBinpublic Integer getBin() - Returns:
- Index to speed up queries
 
 - 
setBinpublic void setBin(Integer bin) 
 - 
getNucleotidepublic Long getNucleotide() 
 - 
setNucleotidepublic void setNucleotide(Long nucleotide) 
 - 
getNucleotideLengthpublic Integer getNucleotideLength() 
 - 
setNucleotideLengthpublic void setNucleotideLength(Integer nucleotideLength) 
 - 
getStrandpublic String getStrand() 
 - 
setStrandpublic void setStrand(String strand) 
 
- 
 
-