Package psidev.psi.mi.jami.model
Interface Entity<F extends Feature>
-
- All Known Subinterfaces:
ExperimentalEntity
,ExperimentalParticipantCandidate
,ExperimentalParticipantPool
,ExtendedPsiXmlEntity<F>
,ExtendedPsiXmlParticipant<I,F>
,ExtendedPsiXmlParticipantEvidence
,ModelledEntity
,ModelledParticipant
,ModelledParticipantCandidate
,ModelledParticipantPool
,NamedParticipant<I,F>
,Participant<I,F>
,ParticipantCandidate<P,F>
,ParticipantEvidence
,ParticipantPool<I,F,P>
- All Known Implementing Classes:
AbstractEntity
,AbstractEntityRef
,AbstractEntityRef
,AbstractEntityRef
,AbstractParticipant
,AbstractParticipantCandidate
,AbstractParticipantPool
,AbstractParticipantRef
,AbstractParticipantRef
,AbstractParticipantRef
,AbstractXmlEntity
,AbstractXmlEntity
,AbstractXmlEntity
,AbstractXmlParticipant
,AbstractXmlParticipant
,AbstractXmlParticipant
,AbstractXmlParticipantPool
,AbstractXmlParticipantPool
,AbstractXmlParticipantPool
,CsvExperimentalParticipantCandidate
,CsvExperimentalParticipantPool
,CsvParticipantEvidence
,DefaultExperimentalParticipantCandidate
,DefaultExperimentalParticipantPool
,DefaultModelledParticipant
,DefaultModelledParticipantCandidate
,DefaultModelledParticipantPool
,DefaultNamedModelledParticipant
,DefaultNamedParticipant
,DefaultNamedParticipantEvidence
,DefaultParticipant
,DefaultParticipantCandidate
,DefaultParticipantEvidence
,DefaultParticipantPool
,MitabModelledParticipant
,MitabParticipant
,MitabParticipantEvidence
,XmlExperimentalParticipantCandidate
,XmlExperimentalParticipantCandidate
,XmlExperimentalParticipantCandidate
,XmlExperimentalParticipantCandidateWrapper
,XmlExperimentalParticipantCandidateWrapper
,XmlExperimentalParticipantCandidateWrapper
,XmlExperimentalParticipantPool
,XmlExperimentalParticipantPool
,XmlExperimentalParticipantPool
,XmlExperimentalParticipantPoolWrapper
,XmlExperimentalParticipantPoolWrapper
,XmlExperimentalParticipantPoolWrapper
,XmlModelledParticipant
,XmlModelledParticipant
,XmlModelledParticipant
,XmlModelledParticipantCandidate
,XmlModelledParticipantCandidate
,XmlModelledParticipantCandidate
,XmlModelledParticipantPool
,XmlModelledParticipantPool
,XmlModelledParticipantPool
,XmlParticipant
,XmlParticipant
,XmlParticipant
,XmlParticipantCandidateWrapper
,XmlParticipantCandidateWrapper
,XmlParticipantCandidateWrapper
,XmlParticipantEvidence
,XmlParticipantEvidence
,XmlParticipantEvidence
,XmlParticipantEvidenceWrapper
,XmlParticipantEvidenceWrapper
,XmlParticipantEvidenceWrapper
,XmlParticipantPoolWrapper
,XmlParticipantPoolWrapper
,XmlParticipantPoolWrapper
,XmlParticipantWrapper
,XmlParticipantWrapper
,XmlParticipantWrapper
public interface Entity<F extends Feature>
An entity which gives more information to a specific molecule (such as features, causal relationships)- Since:
23/11/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addAllFeatures(Collection<? extends F> features)
This method will add all features and set the entity of the new features to this current entityboolean
addFeature(F feature)
This method will add the feature and set the entity of the new feature to this current entity<C extends CausalRelationship>
Collection<C>getCausalRelationships()
The causal relationships of this entity on other entities usually part of an interaction.EntityInteractorChangeListener
getChangeListener()
The entity change listener if set, null otherwise.<F2 extends F>
Collection<F2>getFeatures()
Properties for this entity.Interactor
getInteractor()
The molecule/complex of molecules which interacts.Stoichiometry
getStoichiometry()
The stoichiometry for this participant.boolean
removeAllFeatures(Collection<? extends F> features)
This method will remove all the features and set the entity of the removed features to null.boolean
removeFeature(F feature)
This method will remove the feature and set the entity of the removed feature to null.void
setChangeListener(EntityInteractorChangeListener listener)
Sets the entity change listenervoid
setInteractor(Interactor interactor)
Sets the interactorvoid
setStoichiometry(Integer stoichiometry)
Sets the mean stoichiometry for this participant.void
setStoichiometry(Stoichiometry stoichiometry)
Sets the stoichiometry for this participant.
-
-
-
Method Detail
-
getInteractor
Interactor getInteractor()
The molecule/complex of molecules which interacts. It cannot be null.- Returns:
- the interactor
-
setInteractor
void setInteractor(Interactor interactor)
Sets the interactor- Parameters:
interactor
- : interactor- Throws:
IllegalArgumentException
- when interactor is null
-
getCausalRelationships
<C extends CausalRelationship> Collection<C> getCausalRelationships()
The causal relationships of this entity on other entities usually part of an interaction. The set of causal relationship cannot be null. If the entity does not have any causal relationship, the method should return an empty Collection. Ex: increasing, decreasing, disrupting, etc.- Type Parameters:
C
- a C object- Returns:
- the collection of causal relationships attached to this entity
-
getFeatures
<F2 extends F> Collection<F2> getFeatures()
Properties for this entity. The collection cannot be null. If the entity does not have any features, the method should return an empty collection.- Type Parameters:
F2
- a F2 object- Returns:
- the features
-
getChangeListener
EntityInteractorChangeListener getChangeListener()
The entity change listener if set, null otherwise. The entity change listener listen to changes in entity (interactor changes)- Returns:
- the participant change listener
-
setChangeListener
void setChangeListener(EntityInteractorChangeListener listener)
Sets the entity change listener- Parameters:
listener
- : the entity change listener
-
addFeature
boolean addFeature(F feature)
This method will add the feature and set the entity of the new feature to this current entity- Parameters:
feature
- : feature to add- Returns:
- true if feature is added to the list of features
-
removeFeature
boolean removeFeature(F feature)
This method will remove the feature and set the entity of the removed feature to null.- Parameters:
feature
- : feature to remove- Returns:
- true if feature is removed from the list of features
-
addAllFeatures
boolean addAllFeatures(Collection<? extends F> features)
This method will add all features and set the entity of the new features to this current entity- Parameters:
features
- : features to add- Returns:
- true if features are added to the list of features
-
removeAllFeatures
boolean removeAllFeatures(Collection<? extends F> features)
This method will remove all the features and set the entity of the removed features to null.- Parameters:
features
- : features to remove- Returns:
- true if features are removed from the list of features
-
getStoichiometry
Stoichiometry getStoichiometry()
The stoichiometry for this participant. If the stoichiometry for this participant is unknown, the method should return null.- Returns:
- the stoichiometry
-
setStoichiometry
void setStoichiometry(Integer stoichiometry)
Sets the mean stoichiometry for this participant.- Parameters:
stoichiometry
- : mean stoichiometry value
-
setStoichiometry
void setStoichiometry(Stoichiometry stoichiometry)
Sets the stoichiometry for this participant.- Parameters:
stoichiometry
- : the stoichiometry
-
-