Package psidev.psi.mi.jami.model.impl
Class DefaultRange
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultRange
-
- All Implemented Interfaces:
Range
- Direct Known Subclasses:
CsvRange
,MitabRange
public class DefaultRange extends Object implements Range
Default implementation for Range Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousRangeAndResultingSequenceComparator- Since:
22/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Range
C_TERMINAL_POSITION_SYMBOL, FUZZY_POSITION_SYMBOL, GREATER_THAN_POSITION_SYMBOL, LESS_THAN_POSITION_SYMBOL, N_TERMINAL_POSITION_SYMBOL, POSITION_SEPARATOR, UNDETERMINED_POSITION_SYMBOL
-
-
Constructor Summary
Constructors Constructor Description DefaultRange(Position start, Position end)
Constructor for DefaultRange.DefaultRange(Position start, Position end, boolean isLink)
Constructor for DefaultRange.DefaultRange(Position start, Position end, boolean isLink, Participant participant)
Constructor for DefaultRange.DefaultRange(Position start, Position end, boolean isLink, ResultingSequence resultingSequence)
Constructor for DefaultRange.DefaultRange(Position start, Position end, Participant participant)
Constructor for DefaultRange.DefaultRange(Position start, Position end, ResultingSequence resultingSequence)
Constructor for DefaultRange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Position
getEnd()
Getter for the fieldend
.Entity
getParticipant()
Getter for the fieldparticipant
.ResultingSequence
getResultingSequence()
Getter for the fieldresultingSequence
.Position
getStart()
Getter for the fieldstart
.int
hashCode()
boolean
isLink()
isLinkvoid
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 objectString
toString()
-
-
-
Constructor Detail
-
DefaultRange
public DefaultRange(Position start, Position end, boolean isLink)
Constructor for DefaultRange.
-
DefaultRange
public DefaultRange(Position start, Position end, ResultingSequence resultingSequence)
Constructor for DefaultRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.resultingSequence
- aResultingSequence
object.
-
DefaultRange
public DefaultRange(Position start, Position end, boolean isLink, ResultingSequence resultingSequence)
Constructor for DefaultRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.isLink
- a boolean.resultingSequence
- aResultingSequence
object.
-
DefaultRange
public DefaultRange(Position start, Position end, Participant participant)
Constructor for DefaultRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.participant
- aParticipant
object.
-
DefaultRange
public DefaultRange(Position start, Position end, boolean isLink, Participant participant)
Constructor for DefaultRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.isLink
- a boolean.participant
- aParticipant
object.
-
-
Method Detail
-
getStart
public Position getStart()
Getter for the field
start
.
-
getEnd
public Position getEnd()
Getter for the field
end
.
-
setPositions
public void setPositions(Position start, Position end)
Set the positions of the feature range in the interactor sequence- Specified by:
setPositions
in interfaceRange
- Parameters:
start
- : start positionend
- : end position
-
setLink
public void setLink(boolean link)
Sets the link boolean for this Range
-
getResultingSequence
public ResultingSequence getResultingSequence()
Getter for the field
resultingSequence
.- Specified by:
getResultingSequence
in interfaceRange
- Returns:
- a
ResultingSequence
object.
-
setResultingSequence
public void setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range object- Specified by:
setResultingSequence
in interfaceRange
- Parameters:
resultingSequence
- : the resulting sequence
-
getParticipant
public Entity getParticipant()
Getter for the field
participant
.- Specified by:
getParticipant
in interfaceRange
- Returns:
- a
Entity
object.
-
setParticipant
public void setParticipant(Entity participant)
Sets the participating molecule that the range refers to- Specified by:
setParticipant
in interfaceRange
- Parameters:
participant
- aEntity
object.
-
-