Package org.biopax.paxtools.impl.level3
Class EntityFeatureImpl
java.lang.Object
org.biopax.paxtools.impl.BioPAXElementImpl
org.biopax.paxtools.impl.level3.L3ElementImpl
org.biopax.paxtools.impl.level3.EntityFeatureImpl
- All Implemented Interfaces:
Serializable,Cloneable,BioPAXElement,EntityFeature,Level3Element,Observable,UtilityClass
- Direct Known Subclasses:
BindingFeatureImpl,FragmentFeatureImpl,ModificationFeatureImpl
- See Also:
-
Field Summary
Fields inherited from interface org.biopax.paxtools.model.BioPAXElement
UNKNOWN_DOUBLE, UNKNOWN_FLOAT, UNKNOWN_INT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvidence(Evidence evidence) voidaddMemberFeature(EntityFeature feature) An entity feature that belongs to this homology grouping.booleanThis method returns true if and only if two entity features are on the same known location on a known ER.intIf two elements are equivalent, then their equivalence code should be the same.Inverse ofEntityReference.getEntityFeature()Location of the feature on the sequence of the interactor.A controlled vocabulary term describing the type of the sequence location such as C-Terminal or SH2 Domain.Inverse ofPhysicalEntity.getFeature()Contents of this set is generated automatically and should not be modified.An entity feature that belongs to this homology grouping.Reverse ofEntityFeature.getMemberFeature()Class<? extends EntityFeature> This method returns the actual model interface that a class implements.Inverse ofPhysicalEntity.getNotFeature()Contents of this set is generated automatically and should not be modified.protected intvoidremoveEvidence(Evidence evidence) voidremoveMemberFeature(EntityFeature feature) An entity feature that belongs to this homology grouping.protected booleansemanticallyEquivalent(BioPAXElement element) voidsetEntityFeatureOf(EntityReference entityReference) voidsetFeatureLocation(SequenceLocation featureLocation) Location of the feature on the sequence of the interactor.voidsetFeatureLocationType(SequenceRegionVocabulary regionVocabulary) A controlled vocabulary term describing the type of the sequence location such as C-Terminal or SH2 Domain.Methods inherited from class org.biopax.paxtools.impl.level3.L3ElementImpl
addComment, getComment, removeComment, setCommentMethods inherited from class org.biopax.paxtools.impl.BioPAXElementImpl
equals, getAnnotations, getUri, hashCode, isEquivalent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biopax.paxtools.model.BioPAXElement
getAnnotations, getUri, isEquivalentMethods inherited from interface org.biopax.paxtools.model.level3.Level3Element
addComment, getComment, removeComment
-
Constructor Details
-
EntityFeatureImpl
public EntityFeatureImpl()
-
-
Method Details
-
getModelInterface
Description copied from interface:BioPAXElementThis method returns the actual model interface that a class implements.- Specified by:
getModelInterfacein interfaceBioPAXElement- Returns:
- an interface from
org.biopax.paxtools.modelpackage corresponding to a BioPAX class.
-
getEntityFeatureOf
Description copied from interface:EntityFeatureInverse ofEntityReference.getEntityFeature()- Specified by:
getEntityFeatureOfin interfaceEntityFeature- Returns:
- the EntityReference that this EntityFeature belongs to.
-
setEntityFeatureOf
-
getFeatureOf
Description copied from interface:EntityFeatureInverse ofPhysicalEntity.getFeature()Contents of this set is generated automatically and should not be modified.- Specified by:
getFeatureOfin interfaceEntityFeature- Returns:
- The list of PhysicalEntities that were observed to have this feature.
-
getNotFeatureOf
Description copied from interface:EntityFeatureInverse ofPhysicalEntity.getNotFeature()Contents of this set is generated automatically and should not be modified.- Specified by:
getNotFeatureOfin interfaceEntityFeature- Returns:
- The list of PhysicalEntities that were observed to NOT have this feature.
-
getEvidence
- Specified by:
getEvidencein interfaceObservable
-
addEvidence
- Specified by:
addEvidencein interfaceObservable
-
removeEvidence
- Specified by:
removeEvidencein interfaceObservable
-
getFeatureLocation
Description copied from interface:EntityFeatureLocation of the feature on the sequence of the interactor. For modification features this is the modified base or residue. For binding features this is the binding site and for fragment features this is the location of the fragment on the "base" sequence. One feature may have more than one location, used e.g. for features which involve sequence positions close in the folded, three-dimensional state of a protein, but non-continuous along the sequence. Small Molecules can have binding features but currently it is not possible to define the binding site on the small molecules. In those cases this property should not be specified.- Specified by:
getFeatureLocationin interfaceEntityFeature- Returns:
- Location of the feature on the sequence of the interactor.
-
setFeatureLocation
Description copied from interface:EntityFeatureLocation of the feature on the sequence of the interactor. For modification features this is the modified base or residue. For binding features this is the binding site and for fragment features this is the location of the fragment on the "base" sequence. One feature may have more than one location, used e.g. for features which involve sequence positions close in the folded, three-dimensional state of a protein, but non-continuous along the sequence. Small Molecules can have binding features but currently it is not possible to define the binding site on the small molecules. In those cases this property should not be specified.- Specified by:
setFeatureLocationin interfaceEntityFeature- Parameters:
featureLocation- of the feature
-
getFeatureLocationType
Description copied from interface:EntityFeatureA controlled vocabulary term describing the type of the sequence location such as C-Terminal or SH2 Domain. Using Sequence Ontology (http://www.sequenceontology.org) is recommended.- Specified by:
getFeatureLocationTypein interfaceEntityFeature- Returns:
- A CV term describing the location of the feature
-
setFeatureLocationType
Description copied from interface:EntityFeatureA controlled vocabulary term describing the type of the sequence location such as C-Terminal or SH2 Domain. Using Sequence Ontology (http://www.sequenceontology.org) is recommended.- Specified by:
setFeatureLocationTypein interfaceEntityFeature- Parameters:
regionVocabulary- A CV term describing the location of the feature
-
getMemberFeature
Description copied from interface:EntityFeatureAn entity feature that belongs to this homology grouping. Members of this set should be of the same class of this EntityFeature. Members of this set should be an EntityFeature of an EntityReference which is a memberEntityReference of the EntityReference of this feature. If this set is not empty than the sequenceLocation of this feature should be null. Example: a homologous phosphorylation site across a protein family.- Specified by:
getMemberFeaturein interfaceEntityFeature- Returns:
- An entity feature that belongs to this homology grouping.
-
addMemberFeature
Description copied from interface:EntityFeatureAn entity feature that belongs to this homology grouping. Members of this set should be of the same class of this EntityFeature. Members of this set should be an EntityFeature of an EntityReference which is a memberEntityReference of the EntityReference of this feature. If this set is not empty than the sequenceLocation of this feature should be null. Example: a homologous phosphorylation site across a protein family.- Specified by:
addMemberFeaturein interfaceEntityFeature- Parameters:
feature- An entity feature that belongs to this homology grouping.
-
removeMemberFeature
Description copied from interface:EntityFeatureAn entity feature that belongs to this homology grouping. Members of this set should be of the same class of this EntityFeature. Members of this set should be an EntityFeature of an EntityReference which is a memberEntityReference of the EntityReference of this feature. If this set is not empty than the sequenceLocation of this feature should be null. Example: a homologous phosphorylation site across a protein family.- Specified by:
removeMemberFeaturein interfaceEntityFeature- Parameters:
feature- An entity feature that belongs to this homology grouping.
-
getMemberFeatureOf
Description copied from interface:EntityFeatureReverse ofEntityFeature.getMemberFeature()- Specified by:
getMemberFeatureOfin interfaceEntityFeature- Returns:
- the generic feature(s) that this feature belong to
-
atEquivalentLocation
This method returns true if and only if two entity features are on the same known location on a known ER. Unknown location or ER on any one of the features results in a false.- Specified by:
atEquivalentLocationin interfaceEntityFeature- Parameters:
that- EntityFeature to be compared- Returns:
- returns true iff the given feature is at the equivalent sequence location with this feature
-
locationCode
protected int locationCode() -
semanticallyEquivalent
- Overrides:
semanticallyEquivalentin classBioPAXElementImpl
-
equivalenceCode
public int equivalenceCode()Description copied from interface:BioPAXElementIf two elements are equivalent, then their equivalence code should be the same.- Specified by:
equivalenceCodein interfaceBioPAXElement- Overrides:
equivalenceCodein classBioPAXElementImpl- Returns:
- an integer that is same across all equivalent entities.
-