public class FuzzyPoint extends SimplePoint
Point.Resolver<T extends Point>
Modifier and Type | Field | 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 | 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 | Description |
---|---|---|
int |
compareTo(Point point) |
|
boolean |
equals(java.lang.Object obj) |
|
protected java.lang.Integer |
getMax() |
|
protected java.lang.Integer |
getMin() |
|
java.lang.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
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 java.lang.Integer getPosition()
Point
getPosition
in interface Point
getPosition
in class SimplePoint
protected java.lang.Integer getMax()
protected java.lang.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(java.lang.Object obj)
equals
in class SimplePoint
public int hashCode()
hashCode
in class SimplePoint
public int compareTo(Point point)
compareTo
in interface java.lang.Comparable<Point>
compareTo
in class SimplePoint