org.biopax.paxtools.impl.level3
Class PhysicalEntityImpl

java.lang.Object
  extended by org.biopax.paxtools.impl.BioPAXElementImpl
      extended by org.biopax.paxtools.impl.level3.L3ElementImpl
          extended by org.biopax.paxtools.impl.level3.XReferrableImpl
              extended by org.biopax.paxtools.impl.level3.NamedImpl
                  extended by org.biopax.paxtools.impl.level3.EntityImpl
                      extended by org.biopax.paxtools.impl.level3.PhysicalEntityImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, BioPAXElement, Controller, Entity, Level3Element, Named, Observable, PhysicalEntity, XReferrable
Direct Known Subclasses:
ComplexImpl, SimplePhysicalEntityImpl

@Entity
@Indexed
public class PhysicalEntityImpl
extends EntityImpl
implements PhysicalEntity

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.biopax.paxtools.impl.BioPAXElementImpl
SEARCH_FIELD_AVAILABILITY, SEARCH_FIELD_COMMENT, SEARCH_FIELD_EC_NUMBER, SEARCH_FIELD_KEYWORD, SEARCH_FIELD_NAME, SEARCH_FIELD_SEQUENCE, SEARCH_FIELD_TERM, SEARCH_FIELD_XREF_DB, SEARCH_FIELD_XREF_ID, SEARCH_INDEX_NAME
 
Constructor Summary
PhysicalEntityImpl()
           
 
Method Summary
 void addFeature(EntityFeature feature)
           
 void addMemberPhysicalEntity(PhysicalEntity newMember)
           
 void addNotFeature(EntityFeature feature)
           
 int equivalenceCode()
          If two elements are equivalent, then their equivalence code should be the same.
 CellularLocationVocabulary getCellularLocation()
          A cellular location, e.g.
 java.util.Set<Complex> getComponentOf()
           
 java.util.Set<Control> getControllerOf()
          This method returns the list of Control interactions that this entity controls.
 java.util.Set<EntityFeature> getFeature()
           
 java.util.Set<PhysicalEntity> getMemberPhysicalEntity()
           
 java.util.Set<PhysicalEntity> getMemberPhysicalEntityOf()
           
 java.lang.Class<? extends PhysicalEntity> getModelInterface()
          Overridden to provide better downcasting
 java.util.Set<EntityFeature> getNotFeature()
           
 boolean hasEquivalentCellularLocation(PhysicalEntity that)
           
 boolean hasEquivalentFeatures(PhysicalEntity that)
           
protected  int locationAndFeatureCode()
           
 void removeFeature(EntityFeature feature)
           
 void removeMemberPhysicalEntity(PhysicalEntity oldMember)
           
 void removeNotFeature(EntityFeature feature)
           
protected  boolean semanticallyEquivalent(BioPAXElement element)
           
 void setCellularLocation(CellularLocationVocabulary location)
          A cellular location, e.g.
protected  void setComponentOf(java.util.Set<Complex> componentOf)
           
protected  void setControllerOf(java.util.Set<Control> controllerOf)
           
protected  void setFeature(java.util.Set<EntityFeature> feature)
           
protected  void setMemberPhysicalEntity(java.util.Set<PhysicalEntity> memberPhysicalEntity)
           
protected  void setMemberPhysicalEntityOf(java.util.Set<PhysicalEntity> memberPhysicalEntityOf)
           
protected  void setNotFeature(java.util.Set<EntityFeature> featureSet)
           
 
Methods inherited from class org.biopax.paxtools.impl.level3.EntityImpl
addAvailability, addDataSource, addEvidence, getAvailability, getDataSource, getEvidence, getParticipantOf, removeAvailability, removeDataSource, removeEvidence, setAvailability, setDataSource, setEvidence, setParticipantOf
 
Methods inherited from class org.biopax.paxtools.impl.level3.NamedImpl
addName, getDisplayName, getDisplayNameX, getName, getNameX, getStandardName, getStandardNameX, removeName, setDisplayName, setDisplayNameX, setName, setNameX, setStandardName, setStandardNameX
 
Methods inherited from class org.biopax.paxtools.impl.level3.XReferrableImpl
addXref, getXref, hasCommonUnificationXref, removeXref, setXref
 
Methods inherited from class org.biopax.paxtools.impl.level3.L3ElementImpl
addComment, getComment, removeComment, setComment
 
Methods inherited from class org.biopax.paxtools.impl.BioPAXElementImpl
getAnnotations, getProxyId, getRDFId, getVersion, isEquivalent, setProxyId, setRDFId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.biopax.paxtools.model.level3.Entity
addAvailability, addDataSource, getAvailability, getDataSource, getParticipantOf, removeAvailability, removeDataSource
 
Methods inherited from interface org.biopax.paxtools.model.level3.Observable
addEvidence, getEvidence, removeEvidence
 
Methods inherited from interface org.biopax.paxtools.model.level3.Named
addName, getDisplayName, getName, getStandardName, removeName, setDisplayName, setStandardName
 
Methods inherited from interface org.biopax.paxtools.model.level3.XReferrable
addXref, getXref, removeXref
 

Constructor Detail

PhysicalEntityImpl

public PhysicalEntityImpl()
Method Detail

getModelInterface

public java.lang.Class<? extends PhysicalEntity> getModelInterface()
Description copied from interface: PhysicalEntity
Overridden to provide better downcasting

Specified by:
getModelInterface in interface BioPAXElement
Specified by:
getModelInterface in interface PhysicalEntity
Returns:
an interface from org.biopax.paxtools.model package corresponding to a BioPAX class.

getComponentOf

public java.util.Set<Complex> getComponentOf()
Specified by:
getComponentOf in interface PhysicalEntity

getCellularLocation

public CellularLocationVocabulary getCellularLocation()
Description copied from interface: PhysicalEntity
A cellular location, e.g. 'cytoplasm'. This should reference a term in the Gene Ontology Cellular Component ontology. The location referred to by this property should be as specific as is known. If an interaction is known to occur in multiple locations, separate interactions (and physicalEntities) must be created for each different location. If the location of a participant in a complex is unspecified, it may be assumed to be the same location as that of the complex.

A molecule in two different cellular locations are considered two different physical entities.

Specified by:
getCellularLocation in interface PhysicalEntity
Returns:
cellular location of this physical entity

setCellularLocation

public void setCellularLocation(CellularLocationVocabulary location)
Description copied from interface: PhysicalEntity
A cellular location, e.g. 'cytoplasm'. This should reference a term in the Gene Ontology Cellular Component ontology. The location referred to by this property should be as specific as is known. If an interaction is known to occur in multiple locations, separate interactions (and physicalEntities) must be created for each different location. If the location of a participant in a complex is unspecified, it may be assumed to be the same location as that of the complex.

A molecule in two different cellular locations are considered two different physical entities.

Specified by:
setCellularLocation in interface PhysicalEntity
Parameters:
location - for this physical entity

getFeature

public java.util.Set<EntityFeature> getFeature()
Specified by:
getFeature in interface PhysicalEntity

addFeature

public void addFeature(EntityFeature feature)
Specified by:
addFeature in interface PhysicalEntity

removeFeature

public void removeFeature(EntityFeature feature)
Specified by:
removeFeature in interface PhysicalEntity

setFeature

protected void setFeature(java.util.Set<EntityFeature> feature)

getNotFeature

public java.util.Set<EntityFeature> getNotFeature()
Specified by:
getNotFeature in interface PhysicalEntity

addNotFeature

public void addNotFeature(EntityFeature feature)
Specified by:
addNotFeature in interface PhysicalEntity

removeNotFeature

public void removeNotFeature(EntityFeature feature)
Specified by:
removeNotFeature in interface PhysicalEntity

setNotFeature

protected void setNotFeature(java.util.Set<EntityFeature> featureSet)

getMemberPhysicalEntity

public java.util.Set<PhysicalEntity> getMemberPhysicalEntity()
Specified by:
getMemberPhysicalEntity in interface PhysicalEntity

addMemberPhysicalEntity

public void addMemberPhysicalEntity(PhysicalEntity newMember)
Specified by:
addMemberPhysicalEntity in interface PhysicalEntity

removeMemberPhysicalEntity

public void removeMemberPhysicalEntity(PhysicalEntity oldMember)
Specified by:
removeMemberPhysicalEntity in interface PhysicalEntity

setMemberPhysicalEntity

protected void setMemberPhysicalEntity(java.util.Set<PhysicalEntity> memberPhysicalEntity)

getMemberPhysicalEntityOf

public java.util.Set<PhysicalEntity> getMemberPhysicalEntityOf()
Specified by:
getMemberPhysicalEntityOf in interface PhysicalEntity

semanticallyEquivalent

protected boolean semanticallyEquivalent(BioPAXElement element)
Overrides:
semanticallyEquivalent in class EntityImpl

equivalenceCode

public int equivalenceCode()
Description copied from interface: BioPAXElement
If two elements are equivalent, then their equivalence code should be the same.

Specified by:
equivalenceCode in interface BioPAXElement
Overrides:
equivalenceCode in class XReferrableImpl
Returns:
an integer that is same across all equivalent entities.

hasEquivalentCellularLocation

public boolean hasEquivalentCellularLocation(PhysicalEntity that)
Specified by:
hasEquivalentCellularLocation in interface PhysicalEntity

hasEquivalentFeatures

public boolean hasEquivalentFeatures(PhysicalEntity that)
Specified by:
hasEquivalentFeatures in interface PhysicalEntity

locationAndFeatureCode

protected int locationAndFeatureCode()

getControllerOf

public java.util.Set<Control> getControllerOf()
Description copied from interface: Controller
This method returns the list of Control interactions that this entity controls. Reverse method of Control.getController(). Contents of this set is automatically maintained and should not be modified.

Specified by:
getControllerOf in interface Controller
Returns:
list of Control interactions that this entity controls.

setControllerOf

protected void setControllerOf(java.util.Set<Control> controllerOf)

setMemberPhysicalEntityOf

protected void setMemberPhysicalEntityOf(java.util.Set<PhysicalEntity> memberPhysicalEntityOf)

setComponentOf

protected void setComponentOf(java.util.Set<Complex> componentOf)


Copyright © 2011 BioPAX. All Rights Reserved.