public class ModelDefinition extends Model
Constructor and Description |
---|
ModelDefinition()   |
ModelDefinition(CompPkgNamespaces compns)   |
ModelDefinition(long level)   |
ModelDefinition(long level,
long version)   |
ModelDefinition(long level,
long version,
long pkgVersion)   |
ModelDefinition(Model source)   |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptComp(SWIGTYPE_p_CompVisitor v)   |
ModelDefinition |
cloneObject()
Creates and returns a deep copy of this
Model object. |
void |
delete()
Explicitly deletes the underlying native object.
|
String |
getElementName()
Returns the XML element name of this object, which for
Model , is
always 'model'. |
int |
getTypeCode()
Returns the libSBML type code for this SBML object.
|
int |
removeFromParentAndDelete()
Finds this
Model 's parent SBMLDocument and calls setModel(null) on it,
indirectly deleting itself. |
addCompartment, addCompartmentType, addConstraint, addEvent, addFunctionDefinition, addInitialAssignment, addParameter, addReaction, addRule, addSpecies, addSpeciesType, addUnitDefinition, appendAnnotation, appendAnnotation, appendFrom, createAlgebraicRule, createAssignmentRule, createCompartment, createCompartmentType, createConstraint, createDelay, createEvent, createEventAssignment, createFunctionDefinition, createInitialAssignment, createKineticLaw, createKineticLawLocalParameter, createKineticLawParameter, createModifier, createParameter, createProduct, createRateRule, createReactant, createReaction, createSpecies, createSpeciesType, createTrigger, createUnit, createUnitDefinition, getAreaUnits, getCompartment, getCompartment, getCompartmentType, getCompartmentType, getConstraint, getConversionFactor, getElementByMetaId, getElementBySId, getEvent, getEvent, getExtentUnits, getFunctionDefinition, getFunctionDefinition, getId, getInitialAssignment, getInitialAssignment, getLengthUnits, getListOfCompartments, getListOfCompartmentTypes, getListOfConstraints, getListOfEvents, getListOfFunctionDefinitions, getListOfInitialAssignments, getListOfParameters, getListOfReactions, getListOfRules, getListOfSpecies, getListOfSpeciesTypes, getListOfUnitDefinitions, getName, getNumCompartments, getNumCompartmentTypes, getNumConstraints, getNumEvents, getNumFunctionDefinitions, getNumInitialAssignments, getNumParameters, getNumReactions, getNumRules, getNumSpecies, getNumSpeciesTypes, getNumSpeciesWithBoundaryCondition, getNumUnitDefinitions, getParameter, getParameter, getReaction, getReaction, getRule, getRule, getSpecies, getSpecies, getSpeciesReference, getSpeciesType, getSpeciesType, getSubstanceUnits, getTimeUnits, getUnitDefinition, getUnitDefinition, getVolumeUnits, hasRequiredElements, isPopulatedListFormulaUnitsData, isSetAreaUnits, isSetConversionFactor, isSetExtentUnits, isSetId, isSetLengthUnits, isSetName, isSetSubstanceUnits, isSetTimeUnits, isSetVolumeUnits, populateListFormulaUnitsData, removeCompartment, removeCompartment, removeCompartmentType, removeCompartmentType, removeConstraint, removeEvent, removeEvent, removeFunctionDefinition, removeFunctionDefinition, removeInitialAssignment, removeInitialAssignment, removeParameter, removeParameter, removeReaction, removeReaction, removeRule, removeRule, removeSpecies, removeSpecies, removeSpeciesType, removeSpeciesType, removeUnitDefinition, removeUnitDefinition, renameSIdRefs, renameUnitSIdRefs, setAnnotation, setAnnotation, setAreaUnits, setConversionFactor, setExtentUnits, setId, setLengthUnits, setName, setSubstanceUnits, setTimeUnits, setVolumeUnits, unsetAreaUnits, unsetConversionFactor, unsetExtentUnits, unsetId, unsetLengthUnits, unsetName, unsetSubstanceUnits, unsetTimeUnits, unsetVolumeUnits
addCVTerm, addCVTerm, appendNotes, appendNotes, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getLevel, getLine, getListOfAllElements, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, unsetAnnotation, unsetCVTerms, unsetMetaId, unsetModelHistory, unsetNotes, unsetSBOTerm
public ModelDefinition() throws SBMLConstructorException
SBMLConstructorException
public ModelDefinition(CompPkgNamespaces compns) throws SBMLConstructorException
SBMLConstructorException
public ModelDefinition(long level) throws SBMLConstructorException
SBMLConstructorException
public ModelDefinition(long level, long version) throws SBMLConstructorException
SBMLConstructorException
public ModelDefinition(long level, long version, long pkgVersion) throws SBMLConstructorException
SBMLConstructorException
public ModelDefinition(Model source) throws SBMLConstructorException
SBMLConstructorException
public boolean acceptComp(SWIGTYPE_p_CompVisitor v)
public ModelDefinition cloneObject()
Model
object.
cloneObject
 in class Model
Model
.public void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize()
methods for the objects. The finalize()
methods in turn call the ModelDefinition.delete()
method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke ModelDefinition.delete()
themselves.
public String getElementName()
Model
, is
always 'model'.
getElementName
 in class Model
'model'.
public int getTypeCode()
LibSBML attaches an identifying code to every
kind of SBML object. These are known as SBML type codes. In
other languages, the set of type codes is stored in an enumeration in
the Java language interface for libSBML, the type codes are defined as
static integer constants in the interface class libsbmlConstants
. The names of the type codes all begin with the
characters SBML_.
getTypeCode
 in class Model
SBML_UNKNOWN
(default).
ModelDefinition.getElementName()
public int removeFromParentAndDelete()
Model
's parent SBMLDocument
and calls setModel(null) on it,
indirectly deleting itself. Overridden from the SBase
function since
the parent is not a ListOf
.
removeFromParentAndDelete
 in class Model