org.sbml.jsbml
public class AssignmentRule extends ExplicitRule
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Generated serial version identifier.
|
unitsID, variableID
ignoredExtensions, ignoredXMLElements, lv
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
ILLEGAL_CONSTANT_VARIABLE_MSG, ILLEGAL_VARIABLE_EXCEPTION_MSG, NO_SUCH_VARIABLE_EXCEPTION_MSG
Constructor and Description |
---|
AssignmentRule()
Creates an AssignmentRule instance.
|
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(int level,
int version)
Creates an AssignmentRule instance with the given level and version.
|
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 and 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).
|
equals, getUnits, getUnitsInstance, getVariable, getVariableInstance, hashCode, initDefaults, isCompartmentVolume, isParameter, isSetUnits, isSetUnitsInstance, isSetVariable, isSetVariableInstance, isSpeciesConcentration, readAttribute, setUnits, setUnits, setUnits, setUnits, setVariable, setVariable, unsetUnits, unsetVariable, writeXMLAttributes
getParent, isAlgebraic, isAssignment, isRate
containsUndeclaredUnits, getAllowsChildren, getChildAt, getChildCount, getDerivedUnitDefinition, getDerivedUnits, getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, toString, unsetFormula, unsetMath
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setLevelAndVersion, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, unsetFormula, unsetMath
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm
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
private static final long serialVersionUID
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.