|
||||||||||
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. |
Integer |
getId()
Gets the Hibernate ID. |
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. |
void |
setId(Integer id)
Sets the Hibernate ID. |
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 positionpublic SimplePosition(int s, int e)
s
- the start positione
- the end positionpublic SimplePosition(boolean fs, boolean fe, int p)
fs
- fuzzy start?fe
- fuzzy end?p
- the point positionpublic 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 Position
public boolean getFuzzyEnd()
getFuzzyEnd
in interface Position
public int getStart()
getStart
in interface Position
public int getEnd()
getEnd
in interface Position
public String getType()
getType
in interface Position
public Position translate(int distance)
translate
in interface Position
distance
- the distance to translate it.
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public Integer getId()
public void setId(Integer id)
id
- the Hibernate ID, if using Hibernate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |