java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, Assignment
, MathContainer
, SBase
, SBaseWithDerivedUnit
, SBaseWithUnit
, UniqueSId
, TreeNodeWithChangeSupport
public class AssignmentRule extends ExplicitRule
JSBML_WRONG_SBO_TERM
Constructor | Description |
---|---|
AssignmentRule() |
Creates an AssignmentRule instance.
|
AssignmentRule(int level,
int version) |
Creates an AssignmentRule instance with the given level and version.
|
AssignmentRule(AssignmentRule ar) |
Creates a cloned AssignmentRule instance from a given AssignmentRule.
|
AssignmentRule(ASTNode math,
int level,
int version) |
Creates an AssignmentRule instance from a given math, level and version.
|
AssignmentRule(ASTNode math,
Parameter parameter) |
Creates an AssignmentRule instance from a given math and Parameter.
|
AssignmentRule(ASTNode math,
Variable variable) |
Creates an AssignmentRule instance from a given math and
Variable . |
AssignmentRule(ExplicitRule rule) |
Creates a cloned AssignmentRule instance from a given
ExplicitRule . |
AssignmentRule(Parameter parameter) |
Creates an AssignmentRule instance from a given Parameter.
|
AssignmentRule(Parameter parameter,
ASTNode math) |
Creates an AssignmentRule instance from a given math and Parameter.
|
AssignmentRule(Variable variable) |
Creates an AssignmentRule instance from a given variable.
|
AssignmentRule(Variable variable,
ASTNode math) |
Creates an AssignmentRule instance from a given variable and math.
|
Modifier and Type | Method | Description |
---|---|---|
AssignmentRule |
clone() |
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
java.lang.String |
getElementName() |
Returns the XML element name of this object.
|
boolean |
isScalar() |
Predicate returning true or false depending on whether this Rule is an
AssignmentRule (SBML Level 2) or has a 'type' attribute value of 'scalar'
(SBML Level 1).
|
containsUndeclaredUnits, getAllowsChildren, getChildAt, getChildCount, getDerivedUnitDefinition, getDerivedUnits, getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, unsetFormula, unsetMath
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, 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, isValidLevelAndVersionCombination, isValidMetaId, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
equals, getUnits, getUnitsInstance, getVariable, getVariableInstance, hashCode, initDefaults, isCompartmentVolume, isParameter, isSetUnits, isSetUnitsInstance, isSetVariable, isSetVariableInstance, isSpeciesConcentration, readAttribute, setUnits, setUnits, setUnits, setUnits, setVariable, setVariable, unsetUnits, unsetVariable, writeXMLAttributes
getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, unsetFormula, unsetMath
getParent, isAlgebraic, isAssignment, isRate
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, 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, unsetSBOTerm
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public AssignmentRule()
null
.public AssignmentRule(AssignmentRule ar)
ar
- the AssignmentRule to clone.public AssignmentRule(ExplicitRule rule)
ExplicitRule
.rule
- the AssignmentRule to clone.public AssignmentRule(ASTNode math, int level, int version)
math
- the mathlevel
- the SBML levelversion
- the SBML versionpublic AssignmentRule(ASTNode math, Parameter parameter)
math
- the mathparameter
- the parameterpublic AssignmentRule(ASTNode math, Variable variable)
Variable
.math
- the mathvariable
- the variablepublic AssignmentRule(int level, int version)
level
- the SBML levelversion
- the SBML versionpublic AssignmentRule(Parameter parameter)
parameter
- the parameterpublic AssignmentRule(Parameter parameter, ASTNode math)
parameter
- the parametermath
- the mathpublic AssignmentRule(Variable variable)
variable
- the Variable
public AssignmentRule clone()
SBase
SBase
with the same
properties
like this one.clone
in interface SBase
clone
in class ExplicitRule
public java.lang.String getElementName()
SBase
getElementName
in interface SBase
getElementName
in class AbstractSBase
public boolean isScalar()
ExplicitRule
isScalar
in class ExplicitRule
true
if this Rule is an AssignmentRule (Level 2) or has type
'scalar' (Level 1), false
otherwise.