Class FuzzyPoint
java.lang.Object
org.biojava3.core.sequence.location.SimplePoint
org.biojava3.core.sequence.location.FuzzyPoint
- All Implemented Interfaces:
Comparable<Point>
,Point
Implementation for resolving fuzzy locations. Caches the calculated value.
- Author:
- ayates
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava3.core.sequence.location.template.Point
Point.Resolver<T extends Point>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Point.Resolver<FuzzyPoint>
Always uses the max point to resolve a locationstatic final Point.Resolver<FuzzyPoint>
Combines min and max and then gets the mean of itstatic final Point.Resolver<FuzzyPoint>
Always uses the min point to resolve a location -
Constructor Summary
ConstructorDescriptionFuzzyPoint
(int minPoint, int maxPoint) FuzzyPoint
(int minPoint, int maxPoint, Point.Resolver<FuzzyPoint> resolver) FuzzyPoint
(int minPoint, int maxPoint, Point.Resolver<FuzzyPoint> resolver, boolean unknown, boolean uncertain) -
Method Summary
Methods inherited from class org.biojava3.core.sequence.location.SimplePoint
clonePoint, isHigher, isLower, isUncertain, isUnknown, toString
-
Field Details
-
MIN_RESOLVER
Always uses the min point to resolve a location -
MAX_RESOLVER
Always uses the max point to resolve a location -
MEAN_RESOLVER
Combines min and max and then gets the mean of it
-
-
Constructor Details
-
FuzzyPoint
public FuzzyPoint(int minPoint, int maxPoint) -
FuzzyPoint
-
FuzzyPoint
public FuzzyPoint(int minPoint, int maxPoint, Point.Resolver<FuzzyPoint> resolver, boolean unknown, boolean uncertain)
-
-
Method Details
-
getPosition
Description copied from interface:Point
Returns the position held by this object- Specified by:
getPosition
in interfacePoint
- Overrides:
getPosition
in classSimplePoint
-
reverse
Description copied from interface:Point
Returns the equivalent position on the reverse strand- Specified by:
reverse
in interfacePoint
- Overrides:
reverse
in classSimplePoint
- Parameters:
length
- Length of the sequence to translate to
-
offset
Description copied from interface:Point
Returns a new point offset by the given distance- Specified by:
offset
in interfacePoint
- Overrides:
offset
in classSimplePoint
-
equals
- Overrides:
equals
in classSimplePoint
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSimplePoint
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Point>
- Overrides:
compareTo
in classSimplePoint
-