|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojavax.bio.seq.SimplePosition
public class SimplePosition
A simple implementation of the Position interface.
| Field Summary |
|---|
| Fields inherited from interface org.biojavax.bio.seq.Position |
|---|
BETWEEN_BASES, EMPTY_POSITION, IN_RANGE |
| Constructor Summary | |
|---|---|
protected |
SimplePosition()
|
|
SimplePosition(boolean fs,
boolean fe,
int p)
Constructs a point position, with optionally fuzzy start and end. |
|
SimplePosition(boolean fs,
boolean fe,
int s,
int e,
String t)
Constructs a range position, with optionally fuzzy start and end. |
|
SimplePosition(int p)
Constructs a point position, with no fuzzy start or end. |
|
SimplePosition(int s,
int e)
Constructs a range position, with no fuzzy start or end. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Two positions are equal if they share all parameters in common, eg. |
int |
getEnd()
Returns the end of the range of bases this base could lie in. |
boolean |
getFuzzyEnd()
Returns true if the position has a fuzzy end. |
boolean |
getFuzzyStart()
Returns true if the position has a fuzzy start. |
int |
getStart()
Returns the beginning of the range of bases this base could lie in. |
String |
getType()
Returns the type of this position if it is not a point/single position. |
String |
toString()
|
Position |
translate(int distance)
Takes this position and returns a copy translated by 'distance' bases. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePosition(int p)
p - the point position
public SimplePosition(int s,
int e)
s - the start positione - the end position
public SimplePosition(boolean fs,
boolean fe,
int p)
fs - fuzzy start?fe - fuzzy end?p - the point position
public SimplePosition(boolean fs,
boolean fe,
int s,
int e,
String t)
fs - fuzzy start?fe - fuzzy end?s - the start of the positione - the end of the positiont - the type of the positionprotected SimplePosition()
| Method Detail |
|---|
public boolean getFuzzyStart()
getFuzzyStart in interface Positionpublic boolean getFuzzyEnd()
getFuzzyEnd in interface Positionpublic int getStart()
getStart in interface Positionpublic int getEnd()
getEnd in interface Positionpublic String getType()
getType in interface Positionpublic Position translate(int distance)
translate in interface Positiondistance - the distance to translate it.
public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||