Class DefaultInteractionEvidence
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.AbstractInteraction<ParticipantEvidence>
-
- psidev.psi.mi.jami.model.impl.DefaultInteractionEvidence
-
- All Implemented Interfaces:
Interaction<ParticipantEvidence>
,InteractionEvidence
- Direct Known Subclasses:
CsvInteractionEvidence
,DefaultNamedInteractionEvidence
,MitabInteractionEvidence
public class DefaultInteractionEvidence extends AbstractInteraction<ParticipantEvidence> implements InteractionEvidence
Default implementation for InteractionEvidence Notes: The equals and hashcode methods have NOT been overridden because the InteractionEvidence object is a complex object. To compare InteractionEvidence objects, you can use some comparators provided by default: - DefaultInteractionEvidenceComparator - UnambiguousInteractionEvidenceComparator - DefaultCuratedInteractionEvidenceComparator - UnambiguousCuratedInteractionEvidenceComparator - DefaultExactInteractionEvidenceComparator - UnambiguousExactInteractionEvidenceComparator - DefaultCuratedExactInteractionEvidenceComparator - UnambiguousCuratedExactInteractionEvidenceComparator - AbstractInteractionBaseComparator- Since:
05/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultInteractionEvidence()
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(String shortName)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(String shortName, CvTerm type)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(String shortName, CvTerm type, Xref imexId)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(String shortName, Source source, Xref imexId)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(String shortName, Xref imexId)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment, String shortName)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment, String shortName, CvTerm type)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment, String shortName, CvTerm type, Xref imexId)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment, String shortName, Source source)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment, String shortName, Source source, Xref imexId)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment, String shortName, Xref imexId)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Experiment experiment, Xref imexId)
Constructor for DefaultInteractionEvidence.DefaultInteractionEvidence(Xref imexId)
Constructor for DefaultInteractionEvidence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assignImexId(String identifier)
Assign an IMEx id to an interaction.protected void
clearPropertiesLinkedToXrefs()
clearPropertiesLinkedToXrefsString
getAvailability()
Getter for the fieldavailability
.Collection<Confidence>
getConfidences()
Getter for the fieldconfidences
.Experiment
getExperiment()
Getter for the fieldexperiment
.String
getImexId()
Getter for the fieldimexId
.Collection<Parameter>
getParameters()
Getter for the fieldparameters
.Collection<VariableParameterValueSet>
getVariableParameterValues()
getVariableParameterValuesprotected void
initialiseExperimentalConfidences()
initialiseExperimentalConfidencesprotected void
initialiseExperimentalConfidencesWith(Collection<Confidence> confidences)
initialiseExperimentalConfidencesWithprotected void
initialiseExperimentalParameters()
initialiseExperimentalParametersprotected void
initialiseExperimentalParametersWith(Collection<Parameter> parameters)
initialiseExperimentalParametersWithprotected void
initialiseVariableParameterValueSets()
initialiseVariableParameterValueSetsprotected void
initialiseVariableParameterValueSetsWith(Collection<VariableParameterValueSet> variableValues)
initialiseVariableParameterValueSetsWithprotected void
initialiseXrefs()
initialiseXrefsboolean
isInferred()
isInferredboolean
isNegative()
isNegativeprotected void
processAddedXrefEvent(Xref added)
processAddedXrefEventprotected void
processRemovedXrefEvent(Xref removed)
processRemovedXrefEventvoid
setAvailability(String availability)
Sets the availability.void
setExperiment(Experiment experiment)
Sets the experiment for this interaction.void
setExperimentAndAddInteractionEvidence(Experiment experiment)
Sets the experiment for this interaction and add the interaction to the list of interaction evidences If the given experiment is null, it will remove this interaction evidence from the previous experiment attached to this interactionvoid
setInferred(boolean inferred)
Sets the inferred boolean valuevoid
setNegative(boolean negative)
Sets the negative boolean value.String
toString()
-
Methods inherited from class psidev.psi.mi.jami.model.impl.AbstractInteraction
addAllParticipants, addParticipant, clearPropertiesLinkedToChecksums, getAnnotations, getChecksums, getCreatedDate, getIdentifiers, getInteractionType, getParticipants, getRigid, getShortName, getUpdatedDate, getXrefs, initialiseAnnotations, initialiseAnnotationsWith, initialiseChecksums, initialiseChecksumWith, initialiseIdentifiers, initialiseIdentifiersWith, initialiseParticipants, initialiseParticipantsWith, initialiseXrefsWith, processAddedChecksumEvent, processRemovedChecksumEvent, removeAllParticipants, removeParticipant, setCreatedDate, setInteractionType, setRigid, setShortName, setUpdatedDate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.model.Interaction
addAllParticipants, addParticipant, getAnnotations, getChecksums, getCreatedDate, getIdentifiers, getInteractionType, getParticipants, getRigid, getShortName, getUpdatedDate, getXrefs, removeAllParticipants, removeParticipant, setCreatedDate, setInteractionType, setRigid, setShortName, setUpdatedDate
-
-
-
-
Constructor Detail
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment, String shortName)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.shortName
- aString
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment, String shortName, Source source)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.shortName
- aString
object.source
- aSource
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment, String shortName, CvTerm type)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.shortName
- aString
object.type
- aCvTerm
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment, Xref imexId)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.imexId
- aXref
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment, String shortName, Xref imexId)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.shortName
- aString
object.imexId
- aXref
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment, String shortName, Source source, Xref imexId)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.shortName
- aString
object.source
- aSource
object.imexId
- aXref
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Experiment experiment, String shortName, CvTerm type, Xref imexId)
Constructor for DefaultInteractionEvidence.
- Parameters:
experiment
- aExperiment
object.shortName
- aString
object.type
- aCvTerm
object.imexId
- aXref
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(Xref imexId)
Constructor for DefaultInteractionEvidence.
- Parameters:
imexId
- aXref
object.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(String shortName, Xref imexId)
Constructor for DefaultInteractionEvidence.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(String shortName, Source source, Xref imexId)
Constructor for DefaultInteractionEvidence.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(String shortName, CvTerm type, Xref imexId)
Constructor for DefaultInteractionEvidence.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence()
Constructor for DefaultInteractionEvidence.
-
DefaultInteractionEvidence
public DefaultInteractionEvidence(String shortName)
Constructor for DefaultInteractionEvidence.
- Parameters:
shortName
- aString
object.
-
-
Method Detail
-
initialiseExperimentalConfidences
protected void initialiseExperimentalConfidences()
initialiseExperimentalConfidences
-
initialiseExperimentalConfidencesWith
protected void initialiseExperimentalConfidencesWith(Collection<Confidence> confidences)
initialiseExperimentalConfidencesWith
- Parameters:
confidences
- aCollection
object.
-
initialiseVariableParameterValueSets
protected void initialiseVariableParameterValueSets()
initialiseVariableParameterValueSets
-
initialiseVariableParameterValueSetsWith
protected void initialiseVariableParameterValueSetsWith(Collection<VariableParameterValueSet> variableValues)
initialiseVariableParameterValueSetsWith
- Parameters:
variableValues
- aCollection
object.
-
initialiseExperimentalParameters
protected void initialiseExperimentalParameters()
initialiseExperimentalParameters
-
initialiseExperimentalParametersWith
protected void initialiseExperimentalParametersWith(Collection<Parameter> parameters)
initialiseExperimentalParametersWith
- Parameters:
parameters
- aCollection
object.
-
initialiseXrefs
protected void initialiseXrefs()
initialiseXrefs
- Overrides:
initialiseXrefs
in classAbstractInteraction<ParticipantEvidence>
-
getImexId
public String getImexId()
Getter for the field
imexId
.- Specified by:
getImexId
in interfaceInteractionEvidence
- Returns:
- a
String
object.
-
assignImexId
public void assignImexId(String identifier)
Assign an IMEx id to an interaction. It will add the new imex-primary ref to the collection of xrefs- Specified by:
assignImexId
in interfaceInteractionEvidence
- Parameters:
identifier
- : the IMEx id from IMEx central
-
getExperiment
public Experiment getExperiment()
Getter for the field
experiment
.- Specified by:
getExperiment
in interfaceInteractionEvidence
- Returns:
- a
Experiment
object.
-
setExperiment
public void setExperiment(Experiment experiment)
Sets the experiment for this interaction.- Specified by:
setExperiment
in interfaceInteractionEvidence
- Parameters:
experiment
- : experiment
-
setExperimentAndAddInteractionEvidence
public void setExperimentAndAddInteractionEvidence(Experiment experiment)
Sets the experiment for this interaction and add the interaction to the list of interaction evidences If the given experiment is null, it will remove this interaction evidence from the previous experiment attached to this interaction- Specified by:
setExperimentAndAddInteractionEvidence
in interfaceInteractionEvidence
- Parameters:
experiment
- : experiment
-
getVariableParameterValues
public Collection<VariableParameterValueSet> getVariableParameterValues()
getVariableParameterValues
- Specified by:
getVariableParameterValues
in interfaceInteractionEvidence
- Returns:
- a
Collection
object.
-
getConfidences
public Collection<Confidence> getConfidences()
Getter for the field
confidences
.- Specified by:
getConfidences
in interfaceInteractionEvidence
- Returns:
- a
Collection
object.
-
getAvailability
public String getAvailability()
Getter for the field
availability
.- Specified by:
getAvailability
in interfaceInteractionEvidence
- Returns:
- a
String
object.
-
setAvailability
public void setAvailability(String availability)
Sets the availability.- Specified by:
setAvailability
in interfaceInteractionEvidence
- Parameters:
availability
- : availability
-
isNegative
public boolean isNegative()
isNegative
- Specified by:
isNegative
in interfaceInteractionEvidence
- Returns:
- a boolean.
-
setNegative
public void setNegative(boolean negative)
Sets the negative boolean value.- Specified by:
setNegative
in interfaceInteractionEvidence
- Parameters:
negative
- : negative value
-
getParameters
public Collection<Parameter> getParameters()
Getter for the field
parameters
.- Specified by:
getParameters
in interfaceInteractionEvidence
- Returns:
- a
Collection
object.
-
isInferred
public boolean isInferred()
isInferred
- Specified by:
isInferred
in interfaceInteractionEvidence
- Returns:
- a boolean.
-
setInferred
public void setInferred(boolean inferred)
Sets the inferred boolean value- Specified by:
setInferred
in interfaceInteractionEvidence
- Parameters:
inferred
- : inferred boolean value
-
processAddedXrefEvent
protected void processAddedXrefEvent(Xref added)
processAddedXrefEvent
- Parameters:
added
- aXref
object.
-
processRemovedXrefEvent
protected void processRemovedXrefEvent(Xref removed)
processRemovedXrefEvent
- Parameters:
removed
- aXref
object.
-
clearPropertiesLinkedToXrefs
protected void clearPropertiesLinkedToXrefs()
clearPropertiesLinkedToXrefs
-
toString
public String toString()
- Overrides:
toString
in classAbstractInteraction<ParticipantEvidence>
-
-