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 booleanequals(Object o)PositiongetEnd()Getter for the fieldend.EntitygetParticipant()Getter for the fieldparticipant.ResultingSequencegetResultingSequence()Getter for the fieldresultingSequence.PositiongetStart()Getter for the fieldstart.inthashCode()booleanisLink()isLinkvoidsetLink(boolean link)Sets the link boolean for this RangevoidsetParticipant(Entity participant)Sets the participating molecule that the range refers tovoidsetPositions(Position start, Position end)Set the positions of the feature range in the interactor sequencevoidsetResultingSequence(ResultingSequence resultingSequence)Sets the resultingSequence of this range objectStringtoString()
-
-
-
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- aPositionobject.end- aPositionobject.resultingSequence- aResultingSequenceobject.
-
DefaultRange
public DefaultRange(Position start, Position end, boolean isLink, ResultingSequence resultingSequence)
Constructor for DefaultRange.
- Parameters:
start- aPositionobject.end- aPositionobject.isLink- a boolean.resultingSequence- aResultingSequenceobject.
-
DefaultRange
public DefaultRange(Position start, Position end, Participant participant)
Constructor for DefaultRange.
- Parameters:
start- aPositionobject.end- aPositionobject.participant- aParticipantobject.
-
DefaultRange
public DefaultRange(Position start, Position end, boolean isLink, Participant participant)
Constructor for DefaultRange.
- Parameters:
start- aPositionobject.end- aPositionobject.isLink- a boolean.participant- aParticipantobject.
-
-
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:
setPositionsin 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:
getResultingSequencein interfaceRange- Returns:
- a
ResultingSequenceobject.
-
setResultingSequence
public void setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range object- Specified by:
setResultingSequencein interfaceRange- Parameters:
resultingSequence- : the resulting sequence
-
getParticipant
public Entity getParticipant()
Getter for the field
participant.- Specified by:
getParticipantin interfaceRange- Returns:
- a
Entityobject.
-
setParticipant
public void setParticipant(Entity participant)
Sets the participating molecule that the range refers to- Specified by:
setParticipantin interfaceRange- Parameters:
participant- aEntityobject.
-
-