Package psidev.psi.mi.jami.model.impl
Class AbstractParticipant<I extends Interaction,F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.AbstractEntity<F>
-
- psidev.psi.mi.jami.model.impl.AbstractParticipant<I,F>
-
- All Implemented Interfaces:
Entity<F>,Participant<I,F>
- Direct Known Subclasses:
AbstractParticipantPool,DefaultModelledParticipant,DefaultParticipant,DefaultParticipantEvidence
public abstract class AbstractParticipant<I extends Interaction,F extends Feature> extends AbstractEntity<F> implements Participant<I,F>
Abstract class for Participant- Since:
09/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Participant
ACCEPTOR_ROLE, ACCEPTOR_ROLE_MI, BAIT_ROLE, BAIT_ROLE_MI, DONOR_ROLE, DONOR_ROLE_MI, ELECTRON_ACCEPTOR_ROLE, ELECTRON_ACCEPTOR_ROLE_MI, ELECTRON_DONOR_ROLE, ELECTRON_DONOR_ROLE_MI, ENZYME_REGULATOR_ROLE, ENZYME_REGULATOR_ROLE_MI, ENZYME_ROLE, ENZYME_ROLE_MI, ENZYME_TARGET_ROLE, ENZYME_TARGET_ROLE_MI, FLUORESCENCE_ACCEPTOR_ROLE, FLUORESCENCE_ACCEPTOR_ROLE_MI, FLUORESCENCE_DONOR_ROLE, FLUORESCENCE_DONOR_ROLE_MI, INHIBITED, INHIBITED_MI, INHIBITOR, INHIBITOR_MI, NEUTRAL, NEUTRAL_MI, PHOSPHATE_ACCEPTOR_ROLE, PHOSPHATE_ACCEPTOR_ROLE_MI, PHOSPHATE_DONOR_ROLE, PHOSPHATE_DONOR_ROLE_MI, PHOTON_ACCEPTOR_ROLE, PHOTON_ACCEPTOR_ROLE_MI, PHOTON_DONOR_ROLE, PHOTON_DONOR_ROLE_MI, PREDETERMINED, PREDETERMINED_MI, PREY, PREY_MI, PUTATIVE_SELF_ROLE, PUTATIVE_SELF_ROLE_MI, SELF_ROLE, SELF_ROLE_MI, SUPPRESSED_GENE_ROLE, SUPPRESSED_GENE_ROLE_MI, SUPPRESSOR_GENE_ROLE, SUPPRESSOR_GENE_ROLE_MI, UNSPECIFIED_ROLE, UNSPECIFIED_ROLE_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractParticipant(Interactor interactor)Constructor for AbstractParticipant.AbstractParticipant(Interactor interactor, CvTerm bioRole)Constructor for AbstractParticipant.AbstractParticipant(Interactor interactor, CvTerm bioRole, CvTerm biologicalEffect, Stoichiometry stoichiometry)Constructor for AbstractParticipant.AbstractParticipant(Interactor interactor, CvTerm bioRole, Stoichiometry stoichiometry)Constructor for AbstractParticipant.AbstractParticipant(Interactor interactor, Stoichiometry stoichiometry)Constructor for AbstractParticipant.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllFeatures(Collection<? extends F> features)This method will add all features and set the entity of the new features to this current entitybooleanaddFeature(F feature)addFeatureCollection<Alias>getAliases()Getter for the fieldaliases.Collection<Annotation>getAnnotations()Getter for the fieldannotations.CvTermgetBiologicalEffect()Getter for the fieldbiologicalEffect.CvTermgetBiologicalRole()Getter for the fieldbiologicalRole.IgetInteraction()Getter for the fieldinteraction.Collection<Xref>getXrefs()Getter for the fieldxrefs.protected voidinitialiseAliases()initialiseAliasesprotected voidinitialiseAliasesWith(Collection<Alias> aliases)initialiseAliasesWithprotected voidinitialiseAnnotations()initialiseAnnotationsprotected voidinitialiseAnnotationsWith(Collection<Annotation> annotations)initialiseAnnotationsWithprotected voidinitialiseXrefs()initialiseXrefsprotected voidinitialiseXrefsWith(Collection<Xref> xrefs)initialiseXrefsWithbooleanremoveAllFeatures(Collection<? extends F> features)This method will remove all the features and set the entity of the removed features to null.booleanremoveFeature(F feature)removeFeaturevoidsetBiologicalEffect(CvTerm biologicalEffect)setBiologicalEffectvoidsetBiologicalRole(CvTerm bioRole)Sets the biological role.voidsetInteraction(I interaction)Setter for the fieldinteraction.voidsetInteractionAndAddParticipant(I interaction)setInteractionAndAddParticipantStringtoString()-
Methods inherited from class psidev.psi.mi.jami.model.impl.AbstractEntity
getCausalRelationships, getChangeListener, getFeatures, getInteractor, getStoichiometry, initialiseCausalRelationships, initialiseCausalRelationshipsWith, initialiseFeatures, initialiseFeaturesWith, setChangeListener, setInteractor, setStoichiometry, setStoichiometry
-
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.Entity
getCausalRelationships, getChangeListener, getFeatures, getInteractor, getStoichiometry, setChangeListener, setInteractor, setStoichiometry, setStoichiometry
-
-
-
-
Constructor Detail
-
AbstractParticipant
public AbstractParticipant(Interactor interactor)
Constructor for AbstractParticipant.
- Parameters:
interactor- aInteractorobject.
-
AbstractParticipant
public AbstractParticipant(Interactor interactor, CvTerm bioRole)
Constructor for AbstractParticipant.
- Parameters:
interactor- aInteractorobject.bioRole- aCvTermobject.
-
AbstractParticipant
public AbstractParticipant(Interactor interactor, Stoichiometry stoichiometry)
Constructor for AbstractParticipant.
- Parameters:
interactor- aInteractorobject.stoichiometry- aStoichiometryobject.
-
AbstractParticipant
public AbstractParticipant(Interactor interactor, CvTerm bioRole, Stoichiometry stoichiometry)
Constructor for AbstractParticipant.
- Parameters:
interactor- aInteractorobject.bioRole- aCvTermobject.stoichiometry- aStoichiometryobject.
-
AbstractParticipant
public AbstractParticipant(Interactor interactor, CvTerm bioRole, CvTerm biologicalEffect, Stoichiometry stoichiometry)
Constructor for AbstractParticipant.
- Parameters:
interactor- aInteractorobject.bioRole- aCvTermobject.stoichiometry- aStoichiometryobject.biologicalEffect- aCvTermobject.
-
-
Method Detail
-
initialiseXrefs
protected void initialiseXrefs()
initialiseXrefs
-
initialiseAnnotations
protected void initialiseAnnotations()
initialiseAnnotations
-
initialiseAliases
protected void initialiseAliases()
initialiseAliases
-
initialiseXrefsWith
protected void initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWith
- Parameters:
xrefs- aCollectionobject.
-
initialiseAnnotationsWith
protected void initialiseAnnotationsWith(Collection<Annotation> annotations)
initialiseAnnotationsWith
- Parameters:
annotations- aCollectionobject.
-
initialiseAliasesWith
protected void initialiseAliasesWith(Collection<Alias> aliases)
initialiseAliasesWith
- Parameters:
aliases- aCollectionobject.
-
getBiologicalRole
public CvTerm getBiologicalRole()
Getter for the field
biologicalRole.- Specified by:
getBiologicalRolein interfaceParticipant<I extends Interaction,F extends Feature>- Returns:
- a
CvTermobject.
-
setBiologicalRole
public void setBiologicalRole(CvTerm bioRole)
Sets the biological role. If the bioRole is null, should create a bioRole- Specified by:
setBiologicalRolein interfaceParticipant<I extends Interaction,F extends Feature>- Parameters:
bioRole- : biological role unspecified role (MI:0499)
-
getBiologicalEffect
public CvTerm getBiologicalEffect()
Getter for the field
biologicalEffect.- Specified by:
getBiologicalEffectin interfaceParticipant<I extends Interaction,F extends Feature>- Returns:
- a
CvTermobject.
-
setBiologicalEffect
public void setBiologicalEffect(CvTerm biologicalEffect)
setBiologicalEffect
- Specified by:
setBiologicalEffectin interfaceParticipant<I extends Interaction,F extends Feature>- Parameters:
biologicalEffect- a CvTerm object.
-
getXrefs
public Collection<Xref> getXrefs()
Getter for the field
xrefs.- Specified by:
getXrefsin interfaceParticipant<I extends Interaction,F extends Feature>- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
Getter for the field
annotations.- Specified by:
getAnnotationsin interfaceParticipant<I extends Interaction,F extends Feature>- Returns:
- a
Collectionobject.
-
getAliases
public Collection<Alias> getAliases()
Getter for the field
aliases.- Specified by:
getAliasesin interfaceParticipant<I extends Interaction,F extends Feature>- Returns:
- a
Collectionobject.
-
addFeature
public boolean addFeature(F feature)
addFeature
- Specified by:
addFeaturein interfaceEntity<I extends Interaction>- Overrides:
addFeaturein classAbstractEntity<F extends Feature>- Parameters:
feature- a F object.- Returns:
- a boolean.
-
removeFeature
public boolean removeFeature(F feature)
removeFeature
- Specified by:
removeFeaturein interfaceEntity<I extends Interaction>- Overrides:
removeFeaturein classAbstractEntity<F extends Feature>- Parameters:
feature- a F object.- Returns:
- a boolean.
-
addAllFeatures
public boolean addAllFeatures(Collection<? extends F> features)
This method will add all features and set the entity of the new features to this current entity- Specified by:
addAllFeaturesin interfaceEntity<I extends Interaction>- Overrides:
addAllFeaturesin classAbstractEntity<F extends Feature>- Parameters:
features- : features to add- Returns:
- true if features are added to the list of features
-
removeAllFeatures
public boolean removeAllFeatures(Collection<? extends F> features)
This method will remove all the features and set the entity of the removed features to null.- Specified by:
removeAllFeaturesin interfaceEntity<I extends Interaction>- Overrides:
removeAllFeaturesin classAbstractEntity<F extends Feature>- Parameters:
features- : features to remove- Returns:
- true if features are removed from the list of features
-
setInteractionAndAddParticipant
public void setInteractionAndAddParticipant(I interaction)
setInteractionAndAddParticipant
- Specified by:
setInteractionAndAddParticipantin interfaceParticipant<I extends Interaction,F extends Feature>- Parameters:
interaction- a I object.
-
getInteraction
public I getInteraction()
Getter for the field
interaction.- Specified by:
getInteractionin interfaceParticipant<I extends Interaction,F extends Feature>- Returns:
- a I object.
-
setInteraction
public void setInteraction(I interaction)
Setter for the field
interaction.- Specified by:
setInteractionin interfaceParticipant<I extends Interaction,F extends Feature>- Parameters:
interaction- a I object.
-
toString
public String toString()
- Overrides:
toStringin classAbstractEntity<F extends Feature>
-
-