Package psidev.psi.mi.jami.model
Interface Range
-
- All Known Implementing Classes:
CsvRange
,DefaultRange
,MitabRange
,XmlRange
,XmlRange
,XmlRange
public interface Range
A feature range indicates the positions of a feature in the interactor sequence- Since:
22/11/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static String
C_TERMINAL_POSITION_SYMBOL
ConstantC_TERMINAL_POSITION_SYMBOL="c"
static String
FUZZY_POSITION_SYMBOL
ConstantFUZZY_POSITION_SYMBOL=".."
static String
GREATER_THAN_POSITION_SYMBOL
ConstantGREATER_THAN_POSITION_SYMBOL=">"
static String
LESS_THAN_POSITION_SYMBOL
ConstantLESS_THAN_POSITION_SYMBOL="<"
static String
N_TERMINAL_POSITION_SYMBOL
ConstantN_TERMINAL_POSITION_SYMBOL="n"
static String
POSITION_SEPARATOR
ConstantPOSITION_SEPARATOR="-"
static String
UNDETERMINED_POSITION_SYMBOL
ConstantUNDETERMINED_POSITION_SYMBOL="?"
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Position
getEnd()
The end position of the feature range in the interactor sequence It cannot be nullEntity
getParticipant()
The participating molecule that this range refers to.ResultingSequence
getResultingSequence()
The resultingSequence in case of mutation or variant.Position
getStart()
The start position of the feature range in the interactor sequence It cannot be nullboolean
isLink()
Link boolean to know if two amino acids/nucleic acids are linked in the feature range (ex: disulfure bridges).void
setLink(boolean link)
Sets the link boolean for this Rangevoid
setParticipant(Entity participant)
Sets the participating molecule that the range refers tovoid
setPositions(Position start, Position end)
Set the positions of the feature range in the interactor sequencevoid
setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range object
-
-
-
Field Detail
-
POSITION_SEPARATOR
static final String POSITION_SEPARATOR
ConstantPOSITION_SEPARATOR="-"
- See Also:
- Constant Field Values
-
N_TERMINAL_POSITION_SYMBOL
static final String N_TERMINAL_POSITION_SYMBOL
ConstantN_TERMINAL_POSITION_SYMBOL="n"
- See Also:
- Constant Field Values
-
C_TERMINAL_POSITION_SYMBOL
static final String C_TERMINAL_POSITION_SYMBOL
ConstantC_TERMINAL_POSITION_SYMBOL="c"
- See Also:
- Constant Field Values
-
UNDETERMINED_POSITION_SYMBOL
static final String UNDETERMINED_POSITION_SYMBOL
ConstantUNDETERMINED_POSITION_SYMBOL="?"
- See Also:
- Constant Field Values
-
FUZZY_POSITION_SYMBOL
static final String FUZZY_POSITION_SYMBOL
ConstantFUZZY_POSITION_SYMBOL=".."
- See Also:
- Constant Field Values
-
GREATER_THAN_POSITION_SYMBOL
static final String GREATER_THAN_POSITION_SYMBOL
ConstantGREATER_THAN_POSITION_SYMBOL=">"
- See Also:
- Constant Field Values
-
LESS_THAN_POSITION_SYMBOL
static final String LESS_THAN_POSITION_SYMBOL
ConstantLESS_THAN_POSITION_SYMBOL="<"
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStart
Position getStart()
The start position of the feature range in the interactor sequence It cannot be null- Returns:
- the start position
-
getEnd
Position getEnd()
The end position of the feature range in the interactor sequence It cannot be null- Returns:
- the end position
-
setPositions
void setPositions(Position start, Position end)
Set the positions of the feature range in the interactor sequence- Parameters:
start
- : start positionend
- : end position- Throws:
IllegalArgumentException
- if - start or end is null - start is greater than end
-
isLink
boolean isLink()
Link boolean to know if two amino acids/nucleic acids are linked in the feature range (ex: disulfure bridges).- Returns:
- true if two amino acids/nucleic acids are linked together (does not form a linear feature).
-
setLink
void setLink(boolean link)
Sets the link boolean for this Range- Parameters:
link
- : the linked value
-
getResultingSequence
ResultingSequence getResultingSequence()
The resultingSequence in case of mutation or variant. It can be null if not relevant for this range.- Returns:
- the ResultingSequence if there is a sequence change for this range object, null otherwise
-
setResultingSequence
void setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range object- Parameters:
resultingSequence
- : the resulting sequence
-
getParticipant
Entity getParticipant()
The participating molecule that this range refers to. It can refer to any entity (participant, participant candidate, etc.) It can be null. If null, the range is applied to the participant reporting the feature.- Returns:
- The participant that the range is referring to
-
-