Package org.biopax.paxtools.impl.level3
Class ConversionImpl
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,BioPAXElement,Conversion,Entity,Interaction,Level3Element,Named,Observable,Process,XReferrable
- Direct Known Subclasses:
BiochemicalReactionImpl,ComplexAssemblyImpl,DegradationImpl,TransportImpl
- 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 TypeMethodDescriptionvoidaddLeft(PhysicalEntity left) Adds a participant to the left side of the conversion interaction.voidaddParticipantStoichiometry(Stoichiometry participantStoichiometry) This method adds a stoichiometry for one of the participants of this conversion.voidaddRight(PhysicalEntity right) Adds a participant to the right side of the conversion interaction.intIf two elements are equivalent, then their equivalence code should be the same.This property represents the direction of the reaction.getLeft()The participants on the left side of the conversion interaction.Class<? extends Conversion>This method returns the actual model interface that a class implements.Stoichiometry of the left (Conversion.getLeft()) and right(Conversion.getRight()) participants.getRight()The participants on the right side of the conversion interaction.Specifies whether a conversion occurs spontaneously or not.voidremoveLeft(PhysicalEntity left) Removes a participant from the left side of the conversion interaction.voidremoveParticipantStoichiometry(Stoichiometry participantStoichiometry) This method removes a stoichiometry for one of the participants of this conversion.voidremoveRight(PhysicalEntity right) Removes a participant from the right side of the conversion interaction.protected booleansemanticallyEquivalent(BioPAXElement element) voidsetConversionDirection(ConversionDirectionType spontanousType) This property represents the direction of the reaction.voidsetSpontaneous(Boolean spontaneous) Specifies whether a conversion occurs spontaneously or not.Methods inherited from class org.biopax.paxtools.impl.level3.InteractionImpl
addInteractionType, addParticipant, getInteractionType, getParticipant, removeInteractionType, removeParticipant, setParticipantMethods inherited from class org.biopax.paxtools.impl.level3.ProcessImpl
getControlledOf, getPathwayComponentOf, getStepProcessOfMethods inherited from class org.biopax.paxtools.impl.level3.EntityImpl
addAvailability, addDataSource, addEvidence, getAvailability, getDataSource, getEvidence, getParticipantOf, removeAvailability, removeDataSource, removeEvidence, setDataSourceMethods inherited from class org.biopax.paxtools.impl.level3.NamedImpl
addName, getDisplayName, getName, getStandardName, removeName, setDisplayName, setName, setStandardNameMethods inherited from class org.biopax.paxtools.impl.level3.XReferrableImpl
addXref, getXref, removeXref, setXrefMethods 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.Entity
addAvailability, addDataSource, getAvailability, getDataSource, getParticipantOf, removeAvailability, removeDataSourceMethods inherited from interface org.biopax.paxtools.model.level3.Interaction
addInteractionType, addParticipant, getInteractionType, getParticipant, removeInteractionType, removeParticipantMethods inherited from interface org.biopax.paxtools.model.level3.Level3Element
addComment, getComment, removeCommentMethods inherited from interface org.biopax.paxtools.model.level3.Named
addName, getDisplayName, getName, getStandardName, removeName, setDisplayName, setName, setStandardNameMethods inherited from interface org.biopax.paxtools.model.level3.Observable
addEvidence, getEvidence, removeEvidenceMethods inherited from interface org.biopax.paxtools.model.level3.Process
getControlledOf, getPathwayComponentOf, getStepProcessOfMethods inherited from interface org.biopax.paxtools.model.level3.XReferrable
addXref, getXref, removeXref
-
Constructor Details
-
ConversionImpl
public ConversionImpl()
-
-
Method Details
-
getModelInterface
Description copied from interface:BioPAXElementThis method returns the actual model interface that a class implements.- Specified by:
getModelInterfacein interfaceBioPAXElement- Overrides:
getModelInterfacein classInteractionImpl- Returns:
- an interface from
org.biopax.paxtools.modelpackage corresponding to a BioPAX class.
-
getRight
Description copied from interface:ConversionThe participants on the right side of the conversion interaction. Since conversion interactions may proceed in either the right-to-right or right-to-right direction, occupants of the right property may be either reactants or products. right is a sub-property of participants.- Specified by:
getRightin interfaceConversion- Returns:
- The participants on the right side of the conversion interaction.
-
addRight
Description copied from interface:ConversionAdds a participant to the right side of the conversion interaction. Since conversion interactions may proceed in either the right-to-right or right-to-right direction, occupants of the right property may be either reactants or products. right is a sub-property of participants.- Specified by:
addRightin interfaceConversion- Parameters:
right- participants to be added to the right side of the conversion interaction.
-
removeRight
Description copied from interface:ConversionRemoves a participant from the right side of the conversion interaction. Since conversion interactions may proceed in either the right-to-right or right-to-right direction, occupants of the right property may be either reactants or products. right is a sub-property of participants.- Specified by:
removeRightin interfaceConversion- Parameters:
right- participants to be removed from the right side of the conversion interaction.
-
getLeft
Description copied from interface:ConversionThe participants on the left side of the conversion interaction. Since conversion interactions may proceed in either the left-to-right or right-to-left direction, occupants of the left property may be either reactants or products. left is a sub-property of participants.- Specified by:
getLeftin interfaceConversion- Returns:
- The participants on the left side of the conversion interaction.
-
addLeft
Description copied from interface:ConversionAdds a participant to the left side of the conversion interaction. Since conversion interactions may proceed in either the left-to-right or right-to-left direction, occupants of the left property may be either reactants or products. left is a sub-property of participants.- Specified by:
addLeftin interfaceConversion- Parameters:
left- participants to be added to the left side of the conversion interaction.
-
removeLeft
Description copied from interface:ConversionRemoves a participant from the left side of the conversion interaction. Since conversion interactions may proceed in either the left-to-right or right-to-left direction, occupants of the left property may be either reactants or products. left is a sub-property of participants.- Specified by:
removeLeftin interfaceConversion- Parameters:
left- participants to be removed from the left side of the conversion interaction.
-
getSpontaneous
Description copied from interface:ConversionSpecifies whether a conversion occurs spontaneously or not. If the spontaneity is not known,this property should not be specified.- Specified by:
getSpontaneousin interfaceConversion- Returns:
- whether if this conversion is spontaneous.
-
setSpontaneous
Description copied from interface:ConversionSpecifies whether a conversion occurs spontaneously or not. If the spontaneity is not known,this property should not be specified.- Specified by:
setSpontaneousin interfaceConversion- Parameters:
spontaneous- Whether if this conversion is spontaneous.
-
getParticipantStoichiometry
Description copied from interface:ConversionStoichiometry of the left (Conversion.getLeft()) and right(Conversion.getRight()) participants. Note: This is a "bridge" workaround for the n-ary relationship problem. There is no default stoichiometry ( e.g. 1). Leaving this out will create reactions with unknown stoichiometry. It is a best practice to define the stoichiometry of each participant. It is invalid to define more than one stoichiometry per participant. It is invalid to reuse stoichiometry instances across conversions.- Specified by:
getParticipantStoichiometryin interfaceConversion- Returns:
- Stoichiometry of the left (
Conversion.getLeft()) and right(Conversion.getRight()) participants.
-
addParticipantStoichiometry
Description copied from interface:ConversionThis method adds a stoichiometry for one of the participants of this conversion.- Specified by:
addParticipantStoichiometryin interfaceConversion- Parameters:
participantStoichiometry- to be added
-
removeParticipantStoichiometry
Description copied from interface:ConversionThis method removes a stoichiometry for one of the participants of this conversion.- Specified by:
removeParticipantStoichiometryin interfaceConversion- Parameters:
participantStoichiometry- to be removed
-
getConversionDirection
Description copied from interface:ConversionThis property represents the direction of the reaction. If a reaction will run in a single direction under all biological contexts then it is considered irreversible and has a direction. Otherwise it is reversible.- Specified by:
getConversionDirectionin interfaceConversion- Returns:
- One of REVERSIBLE, LEFT-TO-RIGHT or RIGHT-TO-LEFT
-
setConversionDirection
Description copied from interface:ConversionThis property represents the direction of the reaction. If a reaction will run in a single direction under all biological contexts then it is considered irreversible and has a direction. Otherwise it is reversible.- Specified by:
setConversionDirectionin interfaceConversion- Parameters:
spontanousType- One of REVERSIBLE, LEFT-TO-RIGHT or RIGHT-TO-LEFT -- null for unknown.
-
semanticallyEquivalent
- Overrides:
semanticallyEquivalentin classEntityImpl
-
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 classXReferrableImpl- Returns:
- an integer that is same across all equivalent entities.
-