org.sbml.jsbml
public interface Assignment extends MathContainer
Assignment
can be seen as a mathematical equation with a
Variable
on the left hand side and an equation on the right hand side
that assigns a value to the Variable
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ILLEGAL_CONSTANT_VARIABLE_MSG
Error message to be displayed in case that a
Variable with
constant property set to true is to be assigned to this
Assignment . |
static java.lang.String |
ILLEGAL_VARIABLE_EXCEPTION_MSG
Error message to indicate that a
SpeciesReference cannot be used
as the Variable in this Assignment because the SBML Level
< 3. |
static java.lang.String |
NO_SUCH_VARIABLE_EXCEPTION_MSG
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getVariable()
Returns the variableID of this
Assignment . |
Variable |
getVariableInstance()
Returns the
Variable instance which has the variableID of this
Assignment as id. |
boolean |
isSetVariable()
|
boolean |
isSetVariableInstance()
Returns
true if the Variable instance which has the variableID of
this Assignment as id is not null . |
void |
setVariable(java.lang.String variableID)
Sets the variableID of this
Assignment to the given value. |
void |
setVariable(Variable variable)
Sets the variableID of this
Assignment to the id of the
Variable 'variable'.Listeners are notified about this change. |
void |
unsetVariable()
|
getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, unsetFormula, unsetMath
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, clone, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributes
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
static final java.lang.String ILLEGAL_VARIABLE_EXCEPTION_MSG
SpeciesReference
cannot be used
as the Variable
in this Assignment
because the SBML Level
< 3.static final java.lang.String ILLEGAL_CONSTANT_VARIABLE_MSG
Variable
with
constant property set to true
is to be assigned to this
Assignment
.static final java.lang.String NO_SUCH_VARIABLE_EXCEPTION_MSG
Variable
can be found in the
associated Model
that would have the desired identifier.java.lang.String getVariable()
Assignment
. Returns an empty
String
if it is not set.Assignment
. Returns an empty
String
if it is not set.Variable getVariableInstance()
Variable
instance which has the variableID of this
Assignment
as id. Return null if it doesn't exist.Variable
instance which has the variableID of this
Assignment
as id. Return null if it doesn't exist.boolean isSetVariable()
true
if the variableID of this Assignment
is not null
.boolean isSetVariableInstance()
true
if the Variable
instance which has the variableID of
this Assignment
as id is not null
.true
if the Variable
instance which has the variableID of
this Assignment
as id is not null
.void setVariable(java.lang.String variableID)
Assignment
to the given value. Listeners
are notified about this change.variableID
- the variable to setvoid setVariable(Variable variable)
Assignment
to the id of the
Variable
'variable'.Listeners are notified about this change.variable
- the variable to setvoid unsetVariable()