public class Submodel extends AbstractNamedSBase implements UniqueNamedSBase
Submodels are instantiations of models contained within other models.
Submodel instances represent submodels contained within CompModelPlugin.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
Submodel()
Creates an Submodel instance
|
Submodel(int level,
int version)
Creates a Submodel instance with a level and version.
|
Submodel(String id)
Creates a Submodel instance with an id.
|
Submodel(String id,
int level,
int version)
Creates a Submodel instance with an id, level, and version.
|
Submodel(String id,
String name,
int level,
int version)
Creates a Submodel instance with an id, name, level, and version.
|
Submodel(Submodel obj)
Clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeletion(Deletion deletion)
Adds a new
Deletion to the listOfDeletions. |
Submodel |
clone()
clones this class
|
Deletion |
createDeletion()
Creates a new Deletion element and adds it to the ListOfDeletions list
|
Deletion |
createDeletion(String id)
Creates a new
Deletion element and adds it to the ListOfDeletions list |
boolean |
equals(Object obj) |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
int |
getDeletionCount()
|
String |
getExtentConversionFactor()
Returns the value of extentConversionFactor
|
ListOf<Deletion> |
getListOfDeletions()
Returns the listOfDeletions.
|
String |
getModelRef()
Returns the value of modelRef
|
String |
getTimeConversionFactor()
Returns the value of timeConversionFactor
|
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory() |
boolean |
isSetExtentConversionFactor()
Returns whether extentConversionFactor is set
|
boolean |
isSetListOfDeletions()
Returns
true, if listOfDeletions contains at least one element. |
boolean |
isSetModelRef()
Returns whether modelRef is set
|
boolean |
isSetTimeConversionFactor()
Returns whether timeConversionFactor is set
|
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
boolean |
removeDeletion(Deletion deletion)
Removes an element from the listOfDeletions.
|
void |
removeDeletion(int i)
Removes an element from the listOfDeletions at the given index.
|
void |
removeDeletion(String id)
Removes an element from the listOfDeletions with the given id.
|
void |
setExtentConversionFactor(String extentConversionFactor)
The optional extentConversionFactor attribute is provided to allow
references and assumptions about the scale of a model's reaction
extent to be converted to the scale of the containing model.
|
void |
setListOfDeletions(ListOf<Deletion> listOfDeletions)
This list specifies objects to be removed from the submodel when
composing the overall model.
|
void |
setModelRef(String modelRef)
The whole purpose of a
Submodel object
is to instantiate a model definition, which is
to say, either a Model object defined
in the same enclosing SBML document, or a model
defined in an external SBML document. |
void |
setTimeConversionFactor(String timeConversionFactor)
The optional timeConversionFactor attribute is provided to allow
references and assumptions about the scale of time in the
Submodel
to be converted to the scale of time in the containing model. |
boolean |
unsetExtentConversionFactor()
Unsets the variable extentConversionFactor
|
boolean |
unsetListOfDeletions()
Returns
true, if listOfDeletions contain at least one element,
otherwise false |
boolean |
unsetModelRef()
Unsets the variable modelRef
|
boolean |
unsetTimeConversionFactor()
Unsets the variable timeConversionFactor
|
Map<String,String> |
writeXMLAttributes() |
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, 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, 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, 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, toString, 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, 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, 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, userObjectKeySetpublic Submodel()
public Submodel(String id)
id - public Submodel(int level,
int version)
level - version - public Submodel(String id, int level, int version)
id - level - version - public Submodel(String id, String name, int level, int version)
id - name - level - version - public Submodel(Submodel obj)
obj - public Submodel clone()
clone in interface SBaseclone in class AbstractSBasepublic void initDefaults()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean equals(Object obj)
equals in interface SBaseequals in class AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic String getModelRef()
public boolean isSetModelRef()
public void setModelRef(String modelRef)
Submodel object
is to instantiate a model definition, which is
to say, either a Model object defined
in the same enclosing SBML document, or a model
defined in an external SBML document. The modelRef
attribute is the means by which that model is
identified. This required attribute must refer to
the identifier of a Model or ExternalModelDefinition
object within the enclosing SBML document (i.e., in the
model namespace of the document).
Sets the value of the required modelRefmodelRef - public boolean unsetModelRef()
true, if modelRef was set before,
otherwise falsepublic String getTimeConversionFactor()
public boolean isSetTimeConversionFactor()
public void setTimeConversionFactor(String timeConversionFactor)
Submodel
to be converted to the scale of time in the containing model. If set, it
must be the identifier of a Parameter object in the parent Model
object. The units of that Parameter object, if present, should reduce to
being dimensionless, and the Parameter must be constant.
Sets the value of the optional timeConversionFactortimeConversionFactor - public boolean unsetTimeConversionFactor()
true, if timeConversionFactor was set before,
otherwise falsepublic String getExtentConversionFactor()
public boolean isSetExtentConversionFactor()
public void setExtentConversionFactor(String extentConversionFactor)
Parameter object in the
parent Model object. The units of that Parameter
object, if present, should reduce to being dimensionless, and the
Parameter must be constant.
Sets the value of the optional extentConversionFactorextentConversionFactor - public boolean unsetExtentConversionFactor()
true, if extentConversionFactor was set before,
otherwise falsepublic boolean isSetListOfDeletions()
true, if listOfDeletions contains at least one element.true, if listOfDeletions contains at least one element,
otherwise falsepublic int getDeletionCount()
public ListOf<Deletion> getListOfDeletions()
public void setListOfDeletions(ListOf<Deletion> listOfDeletions)
ListOf<Deletion>. If listOfDeletions
was defined before and contains some elements, they are all unset.listOfDeletions - public boolean unsetListOfDeletions()
true, if listOfDeletions contain at least one element,
otherwise falsetrue, if listOfDeletions contain at least one element,
otherwise falsepublic boolean addDeletion(Deletion deletion)
Deletion to the listOfDeletions.
The listOfDeletions is initialized if necessary.
deletion - the element to add to the listtrue (as specified by Collection#add)public boolean removeDeletion(Deletion deletion)
deletion - the element to be removed from the listtrue if the list contained the specified elementList#remove(Object)public void removeDeletion(int i)
i - the index where to remove the DeletionIndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public void removeDeletion(String id)
id - the id of the Deletion element to remove.public Deletion createDeletion()
public Deletion createDeletion(String id)
Deletion element and adds it to the ListOfDeletions listid - Deletion elementpublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic 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.