Package psidev.psi.mi.jami.model.impl
Class AbstractEntity<F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.AbstractEntity<F>
-
- All Implemented Interfaces:
Entity<F>
- Direct Known Subclasses:
AbstractParticipant
,AbstractParticipantCandidate
public abstract class AbstractEntity<F extends Feature> extends Object implements Entity<F>
Abstract class for Entity- Since:
09/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractEntity(Interactor interactor)
Constructor for AbstractEntity.AbstractEntity(Interactor interactor, Stoichiometry stoichiometry)
Constructor for AbstractEntity.
-
Method Summary
All Methods Instance Methods Concrete 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)
addFeatureCollection<CausalRelationship>
getCausalRelationships()
Getter for the fieldcausalRelationships
.EntityInteractorChangeListener
getChangeListener()
Getter for the fieldchangeListener
.Collection<F>
getFeatures()
Getter for the fieldfeatures
.Interactor
getInteractor()
Getter for the fieldinteractor
.Stoichiometry
getStoichiometry()
Getter for the fieldstoichiometry
.protected void
initialiseCausalRelationships()
initialiseCausalRelationshipsprotected void
initialiseCausalRelationshipsWith(Collection<CausalRelationship> relationships)
initialiseCausalRelationshipsWithprotected void
initialiseFeatures()
initialiseFeaturesprotected void
initialiseFeaturesWith(Collection<F> features)
initialiseFeaturesWithboolean
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)
removeFeaturevoid
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)
Setter for the fieldstoichiometry
.String
toString()
-
-
-
Constructor Detail
-
AbstractEntity
public AbstractEntity(Interactor interactor)
Constructor for AbstractEntity.
- Parameters:
interactor
- aInteractor
object.
-
AbstractEntity
public AbstractEntity(Interactor interactor, Stoichiometry stoichiometry)
Constructor for AbstractEntity.
- Parameters:
interactor
- aInteractor
object.stoichiometry
- aStoichiometry
object.
-
-
Method Detail
-
initialiseFeatures
protected void initialiseFeatures()
initialiseFeatures
-
initialiseCausalRelationships
protected void initialiseCausalRelationships()
initialiseCausalRelationships
-
initialiseCausalRelationshipsWith
protected void initialiseCausalRelationshipsWith(Collection<CausalRelationship> relationships)
initialiseCausalRelationshipsWith
- Parameters:
relationships
- aCollection
object.
-
initialiseFeaturesWith
protected void initialiseFeaturesWith(Collection<F> features)
initialiseFeaturesWith
- Parameters:
features
- aCollection
object.
-
getInteractor
public Interactor getInteractor()
Getter for the field
interactor
.- Specified by:
getInteractor
in interfaceEntity<F extends Feature>
- Returns:
- a
Interactor
object.
-
setInteractor
public void setInteractor(Interactor interactor)
Sets the interactor- Specified by:
setInteractor
in interfaceEntity<F extends Feature>
- Parameters:
interactor
- : interactor
-
getCausalRelationships
public Collection<CausalRelationship> getCausalRelationships()
Getter for the field
causalRelationships
.- Specified by:
getCausalRelationships
in interfaceEntity<F extends Feature>
- Returns:
- a
Collection
object.
-
getStoichiometry
public Stoichiometry getStoichiometry()
Getter for the field
stoichiometry
.- Specified by:
getStoichiometry
in interfaceEntity<F extends Feature>
- Returns:
- a
Stoichiometry
object.
-
setStoichiometry
public void setStoichiometry(Integer stoichiometry)
Sets the mean stoichiometry for this participant.- Specified by:
setStoichiometry
in interfaceEntity<F extends Feature>
- Parameters:
stoichiometry
- : mean stoichiometry value
-
setStoichiometry
public void setStoichiometry(Stoichiometry stoichiometry)
Setter for the field
stoichiometry
.- Specified by:
setStoichiometry
in interfaceEntity<F extends Feature>
- Parameters:
stoichiometry
- aStoichiometry
object.
-
getFeatures
public Collection<F> getFeatures()
Getter for the field
features
.- Specified by:
getFeatures
in interfaceEntity<F extends Feature>
- Returns:
- a
Collection
object.
-
getChangeListener
public EntityInteractorChangeListener getChangeListener()
Getter for the field
changeListener
.- Specified by:
getChangeListener
in interfaceEntity<F extends Feature>
- Returns:
- a
EntityInteractorChangeListener
object.
-
setChangeListener
public void setChangeListener(EntityInteractorChangeListener listener)
Sets the entity change listener- Specified by:
setChangeListener
in interfaceEntity<F extends Feature>
- Parameters:
listener
- : the entity change listener
-
addFeature
public boolean addFeature(F feature)
addFeature
- Specified by:
addFeature
in interfaceEntity<F extends Feature>
- Parameters:
feature
- a F object.- Returns:
- a boolean.
-
removeFeature
public boolean removeFeature(F feature)
removeFeature
- Specified by:
removeFeature
in interfaceEntity<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:
addAllFeatures
in interfaceEntity<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:
removeAllFeatures
in interfaceEntity<F extends Feature>
- Parameters:
features
- : features to remove- Returns:
- true if features are removed from the list of features
-
-