|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava3.core.sequence.location.SimplePoint
org.biojava3.core.sequence.location.FuzzyPoint
public class FuzzyPoint
Implementation for resolving fuzzy locations. Caches the calculated value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojava3.core.sequence.location.template.Point |
|---|
Point.Resolver<T extends Point> |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.biojava3.core.sequence.location.SimplePoint |
|---|
clonePoint, isHigher, isLower, isUncertain, isUnknown, reverse, setPosition, setUncertain, setUnknown, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Point.Resolver<FuzzyPoint> MIN_RESOLVER
public static final Point.Resolver<FuzzyPoint> MAX_RESOLVER
public static final Point.Resolver<FuzzyPoint> MEAN_RESOLVER
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public Integer getPosition()
Point
getPosition in interface PointgetPosition in class SimplePointprotected Integer getMax()
protected Integer getMin()
protected Point.Resolver<FuzzyPoint> getResolver()
public Point reverse(int length)
Point
reverse in interface Pointreverse in class SimplePointlength - Length of the sequence to translate topublic Point offset(int distance)
Point
offset in interface Pointoffset in class SimplePointpublic boolean equals(Object obj)
equals in class SimplePointpublic int hashCode()
hashCode in class SimplePointpublic int compareTo(Point point)
compareTo in interface Comparable<Point>compareTo in class SimplePoint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||