java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeNode, MathContainer, SBase, SBaseWithDerivedUnit, TreeNodeWithChangeSupportpublic class FunctionTerm extends AbstractMathContainer
FunctionTerm is also associated with a result and in addition to a Boolean
function inside a Math element that can be used to set the conditions under which this term
is selected.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor | Description |
|---|---|
FunctionTerm() |
Creates a new
FunctionTerm instance. |
FunctionTerm(int level,
int version) |
Creates a new
FunctionTerm instance. |
FunctionTerm(ASTNode math,
int level,
int version) |
Creates a new
FunctionTerm instance. |
FunctionTerm(FunctionTerm ft) |
Creates a FunctionTerm instance from a given FunctionTerm.
|
| Modifier and Type | Method | Description |
|---|---|---|
FunctionTerm |
clone() |
|
boolean |
equals(java.lang.Object object) |
|
int |
getResultLevel() |
Returns the resultLevel if it is set, otherwise throw a
PropertyUndefinedError
Exception. |
int |
hashCode() |
|
void |
initDefaults() |
Initializes the default values using the namespace.
|
boolean |
isDefaultTerm() |
Returns true if it is a defaultTerm.
|
boolean |
isResultLevelMandatory() |
Returns false, resultLevel is not mandatory.
|
boolean |
isSetResultLevel() |
Returns
true if resultLevel is set. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
|
void |
setDefaultTerm(boolean defaultTerm) |
Sets if this
FunctionTerm is a defaultTerm. |
void |
setResultLevel(int resultLevel) |
The result of a term is described by a resultLevel.
|
boolean |
unsetResultLevel() |
Unsets the resultLevel.
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
containsUndeclaredUnits, getAllowsChildren, getChildAt, getChildCount, getDerivedUnitDefinition, getDerivedUnits, getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, unsetFormula, unsetMathaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, 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, waitaddCVTerm, 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, getId, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTreeNodeChangeListener, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, 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 FunctionTerm()
FunctionTerm instance.public FunctionTerm(int level,
int version)
FunctionTerm instance.level - the SBML levelversion - the SBML versionpublic FunctionTerm(ASTNode math, int level, int version)
FunctionTerm instance.math - the ASTNode representing the function.level - the SBML levelversion - the SBML versionpublic FunctionTerm(FunctionTerm ft)
ft - an FunctionTerm object to clonepublic FunctionTerm clone()
clone in interface SBaseclone in class AbstractMathContainerpublic void initDefaults()
public boolean isResultLevelMandatory()
public boolean isSetResultLevel()
true if resultLevel is set.true if resultLevel is set.public int getResultLevel()
PropertyUndefinedError
Exception.PropertyUndefinedError - is isSetResultLevel() return false.public void setResultLevel(int resultLevel)
QualitativeSpecies
resulting from the Transition.resultLevel - the resultLevel to setpublic boolean unsetResultLevel()
true is the resultLevel was set beforehand.public boolean equals(java.lang.Object object)
equals in interface SBaseequals in class AbstractSBasepublic int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean isDefaultTerm()
true if it is a defaultTerm.public void setDefaultTerm(boolean defaultTerm)
FunctionTerm is a defaultTerm. The defaultTerm defines the
default result of a Transition. This term is used if there are no other
FunctionTerm elements or if none of the Math elements of the FunctionTerm
elements evaluates to "true".defaultTerm - the defaultTerm to setpublic boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
readAttribute in interface SBasereadAttribute in class AbstractMathContainerpublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractMathContainerCopyright © 2009–2022. All rights reserved.