public class ChangedMath extends AbstractNamedSBase
SBase and in which way.
Elements with mathematical meaning may have a ChangedMath child when a package alters the value or meaning of that symbol. As an example, a Submodel from the Hierarchical Model Composition package may contain an Event or Rule that assigns new values to a parameter. Because an interpreter that did not understand submodels would not catch this change, the Hierarchical Model Composition package can be seen to change the math of that element, and it would be appropriate to denote this by adding a ChangedMath child to the affected parameter.
Similarly, models that use the proposed Spatial Processes package can change the meaning of a Compartment by turning it into a bounded object with an size implied by those boundaries (and how they change over time), instead of using the element's size attribute. Spatial Processes elements may also change a Species to be spatially defined, and therefore represent different values depending on what coordinates in space are under consideration. Affected compartments and species could be given ChangedMath children to denote this fact.
Elements with Math children may also be changed by the addition of package elements. Some packages may instruct the modeler to disregard the Math and to use some other construct instead. For example, the proposed Distributions package adds a new child to FunctionDefinition, which replaces the old mathematics with a new set of mathematics returning a draw from a random distribution (something impossible with Math).
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
ChangedMath()
Creates an ChangedMath instance
|
ChangedMath(ChangedMath obj)
Clone constructor
|
ChangedMath(int level,
int version)
Creates a
ChangedMath instance with a level and version. |
ChangedMath(String id)
Creates a
ChangedMath instance with an id. |
ChangedMath(String id,
int level,
int version)
Creates a
ChangedMath instance with an id, level, and version. |
ChangedMath(String id,
String name,
int level,
int version)
Creates a
ChangedMath instance with an id, name, level, and version. |
| Modifier and Type | Method and Description |
|---|---|
ChangedMath |
clone()
clones this class
|
String |
getChangedBy()
Returns the value of changedBy
|
boolean |
getViableWithoutChange()
Returns the value of viableWithoutChange
|
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory() |
boolean |
isSetChangedBy()
Returns whether changedBy is set
|
boolean |
isSetViableWithoutChange()
Returns whether viableWithoutChange is set
|
boolean |
isViableWithoutChange()
Returns the value of viableWithoutChange
|
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setChangedBy(String changedBy)
Sets the value of changedBy
|
void |
setViableWithoutChange(boolean viableWithoutChange)
Sets the value of viableWithoutChange
|
boolean |
unsetChangedBy()
Unsets the variable changedBy
|
boolean |
unsetViableWithoutChange()
Unsets the variable viableWithoutChange
|
Map<String,String> |
writeXMLAttributes() |
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, 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, hashCode, 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, 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, equals, 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, hashCode, 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, userObjectKeySetchildren, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafpublic ChangedMath()
public ChangedMath(String id)
ChangedMath instance with an id.id - public ChangedMath(int level,
int version)
ChangedMath instance with a level and version.level - version - public ChangedMath(String id, int level, int version)
ChangedMath instance with an id, level, and version.id - level - version - public ChangedMath(String id, String name, int level, int version)
ChangedMath instance with an id, name, level, and version.id - name - level - version - public ChangedMath(ChangedMath obj)
obj - public ChangedMath clone()
clone in interface SBaseclone in class AbstractSBasepublic void initDefaults()
public boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic String getChangedBy()
public boolean isSetChangedBy()
public void setChangedBy(String changedBy)
changedBy - public boolean unsetChangedBy()
true, if changedBy was set before,
otherwise falsepublic boolean getViableWithoutChange()
PropertyUndefinedError - - if the returned value of isSetViableWithoutChange() is falsepublic boolean isViableWithoutChange()
PropertyUndefinedError - - if the returned value of isSetViableWithoutChange() is falsepublic boolean isSetViableWithoutChange()
public void setViableWithoutChange(boolean viableWithoutChange)
viableWithoutChange - public boolean unsetViableWithoutChange()
true, if viableWithoutChange was set before,
otherwise falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBasepublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBaseCopyright © 2009–2016. All rights reserved.