public class Transition extends AbstractNamedSBase implements UniqueNamedSBase
Transition defines the changes in level associated with the QualitativeSpecies
that occur when a Transition is enabled.
In logical models a Transition is used to specify the logical rule associated with a
QualitativeSpecies (that appears as an Output of this Transition).
For example, the rule if A > 1 : B = 2 would be encapsulated as a Transition with
QualitativeSpecies "A" as an Input and "B" as an Output; the
if A > 1 rule being encoded by the math element of a FunctionTerm with the resultLevel
attribute having a value "2".
In Petri net models a Transition is interpreted, using the common Petri net semantics, as events
that might occur within the system causing tokens to be moved. See the package specification for an
example.
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
Transition()
Creates a new
Transition instance. |
Transition(int level,
int version)
Creates a new
Transition instance. |
Transition(String id)
Creates a new
Transition instance. |
Transition(String id,
int level,
int version)
Creates a new
Transition instance. |
Transition(String id,
String name,
int level,
int version)
Creates a new
Transition instance. |
Transition(Transition t)
Creates a new
Transition instance. |
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic Transition()
Transition instance.public Transition(int level,
int version)
Transition instance.level - the SBML levelversion - the SBML versionpublic Transition(String id)
Transition instance.id - the idpublic Transition(String id, int level, int version)
Transition instance.id - the idlevel - the SBML levelversion - the SBML versionpublic Transition(String id, String name, int level, int version)
Transition instance.id - the idname - the namelevel - the SBML levelversion - the SBML versionpublic Transition(Transition t)
Transition instance.t - the Transition instance to clonepublic boolean addFunctionTerm(FunctionTerm functionTerm)
functionTerm - true if the FunctionTerm was added to the
list or false if adding the new
FunctionTerm was not successful.public boolean addInput(Input input)
input - the input to addpublic boolean addOutput(Output output)
output - the output to addpublic Transition clone()
clone in interface SBaseclone in class AbstractSBasepublic FunctionTerm createFunctionTerm()
FunctionTerm and adds it to this
Transition's listOfFunctionTerms. In case that this
operation fails, null will be returned. In case of success,
this method will return the newly created FunctionTerm.FunctionTerm or null if
adding the new FunctionTerm was not successful.createFunctionTerm(ASTNode)public FunctionTerm createFunctionTerm(ASTNode math)
FunctionTerm with the given
mathematical expression (encoded in an ASTNode) and adds it to
this Transition's listOfFunctionTerms. In case that this
operation fails, null will be returned. In case of success,
this method will return the newly created FunctionTerm.math - The mathematical expression for the new FunctionTerm.FunctionTerm or null if adding
the new FunctionTerm was not successful.public Input createInput()
public Input createInput(String id, QualitativeSpecies qualitativeSpecies, InputTransitionEffect transitionEffect)
id - qualitativeSpecies - transitionEffect - public Input createInput(String id, String input_species_id, InputTransitionEffect transitionEffect)
id - input_species_id - transitionEffect - public Output createOutput()
public Output createOutput(String id, QualitativeSpecies qualitativeSpecies, OutputTransitionEffect transitionEffect)
id - qualitativeSpecies - transitionEffect - public Output createOutput(String id, String output_species_id, OutputTransitionEffect transitionEffect)
id - output_species_id - transitionEffect - public boolean equals(Object obj)
equals in interface SBaseequals in class AbstractSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic int getFunctionTermCount()
public int getInputCount()
public ListOf<FunctionTerm> getListOfFunctionTerms()
public int getOutputCount()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic void initDefaults()
public boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic boolean isListOfFunctionTermsMandatory()
falsepublic boolean isListOfInputsMandatory()
falsepublic boolean isListOfOutputsMandatory()
truepublic boolean isSetListOfFunctionTerms()
public boolean isSetListOfInputs()
public boolean isSetListOfOutputs()
public boolean isSignMandatory()
falsepublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic boolean removeFunctionTerm(FunctionTerm functionTerm)
functionTerm - to remove from the listOfFunctionTermstrue if the operation was successfulpublic void removeFunctionTerm(int i)
i - position
in the listOfFunctionTerms which should be deletedIndexOutOfBoundsException - if the index is invalid.public boolean removeInput(Input input)
input - to remove from the listOfInputstrue if the operation was successfulpublic void removeInput(int i)
i - position
in the listOfInputs which should be deletedIndexOutOfBoundsException - if the index is invalid.public void removeOutput(int i)
i - position
in the listOfOutputs which should be deletedIndexOutOfBoundsException - if the index is not validpublic boolean removeOutput(Output output)
output - to remove from the listOfOutputstrue if the operation was successfulpublic void setListOfFunctionTerms(ListOf<FunctionTerm> loft)
Transition element contains exactly one list of FunctionTerms.loft - public void setListOfInputs(ListOf<Input> loi)
Transition element contains at most one list of Inputs.loi - public void setListOfOutputs(ListOf<Output> loo)
Transition element contains at most one list of Outputs.loo - public boolean unsetListOfFunctionTerms()
public boolean unsetListOfInputs()
public boolean unsetListOfOutputs()
public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBaseCopyright © 2009–2017. All rights reserved.