public class FuzzyPoint extends SimplePoint
Point.Resolver<T extends Point>
Modifier and Type | Field and Description |
---|---|
static Point.Resolver<FuzzyPoint> |
MAX_RESOLVER
Always uses the max point to resolve a location
|
static Point.Resolver<FuzzyPoint> |
MEAN_RESOLVER
Combines min and max and then gets the mean of it
|
static Point.Resolver<FuzzyPoint> |
MIN_RESOLVER
Always uses the min point to resolve a location
|
Constructor and Description |
---|
FuzzyPoint(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) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Point point) |
boolean |
equals(Object obj) |
protected Integer |
getMax() |
protected Integer |
getMin() |
Integer |
getPosition()
Returns the position held by this object
|
protected Point.Resolver<FuzzyPoint> |
getResolver() |
int |
hashCode() |
Point |
offset(int distance)
Returns a new point offset by the given distance
|
Point |
reverse(int length)
Returns the equivalent position on the reverse strand
|
clonePoint, isHigher, isLower, isUncertain, isUnknown, reverse, setPosition, setUncertain, setUnknown, toString
public static final Point.Resolver<FuzzyPoint> MIN_RESOLVER
public static final Point.Resolver<FuzzyPoint> MAX_RESOLVER
public static final Point.Resolver<FuzzyPoint> MEAN_RESOLVER
public FuzzyPoint(int minPoint, int maxPoint)
public FuzzyPoint(int minPoint, int maxPoint, Point.Resolver<FuzzyPoint> resolver)
public FuzzyPoint(int minPoint, int maxPoint, Point.Resolver<FuzzyPoint> resolver, boolean unknown, boolean uncertain)
public Integer getPosition()
Point
getPosition
in interface Point
getPosition
in class SimplePoint
protected Integer getMax()
protected Integer getMin()
protected Point.Resolver<FuzzyPoint> getResolver()
public Point reverse(int length)
Point
reverse
in interface Point
reverse
in class SimplePoint
length
- Length of the sequence to translate topublic Point offset(int distance)
Point
offset
in interface Point
offset
in class SimplePoint
public boolean equals(Object obj)
equals
in class SimplePoint
public int hashCode()
hashCode
in class SimplePoint
public int compareTo(Point point)
compareTo
in interface Comparable<Point>
compareTo
in class SimplePoint
Copyright © 2000–2016 BioJava. All rights reserved.