public class QualitativeSpecies extends SBase
QualitativeSpecies class for the Qualitative Models
package.
Similarly to the Species in SBML, the components of qualitative models
refer to pools of entities that are considered indistinguishable and are
each located in a specific Compartment. However, here components are
characterised by their qualitative influences rather than by taking part
in reactions. Therefore, we define the QualitativeSpecies element to
represent such pools of entities.
In a Petri net, qualitative species refer to the places of the model, while in a logical model, they refer to the variables of this model (i.e. nodes of the influence graph).
A QualitativeSpecies describes a pool of indistinguishable entities in a
Compartment. It is associated with a level (an integer representing
e.g. an activity state, or a functional level of concentration, etc.)
| Constructor and Description |
|---|
QualitativeSpecies()
Creates a new
QualitativeSpecies with the given level, version, and package version. |
QualitativeSpecies(long level)
Creates a new
QualitativeSpecies with the given level, version, and package version. |
QualitativeSpecies(long level,
long version)
Creates a new
QualitativeSpecies with the given level, version, and package version. |
QualitativeSpecies(long level,
long version,
long pkgVersion)
Creates a new
QualitativeSpecies with the given level, version, and package version. |
QualitativeSpecies(QualitativeSpecies orig)
Copy constructor for
QualitativeSpecies. |
QualitativeSpecies(QualPkgNamespaces qualns)
Creates a new
QualitativeSpecies with the given QualPkgNamespaces object. |
| Modifier and Type | Method and Description |
|---|---|
QualitativeSpecies |
cloneObject()
Creates and returns a deep copy of this
QualitativeSpecies object. |
void |
delete()
Explicitly deletes the underlying native object.
|
java.lang.String |
getCompartment()
Returns the value of the 'compartment' attribute of this
QualitativeSpecies. |
boolean |
getConstant()
Returns the value of the 'constant' attribute of this
QualitativeSpecies. |
java.lang.String |
getElementName()
Returns the XML element name of this object, which for
QualitativeSpecies, is
always 'qualitativeSpecies'. |
java.lang.String |
getId()
Returns the value of the 'id' attribute of this
QualitativeSpecies. |
int |
getInitialLevel()
Returns the value of the 'initialLevel' attribute of this
QualitativeSpecies. |
int |
getMaxLevel()
Returns the value of the 'maxLevel' attribute of this
QualitativeSpecies. |
java.lang.String |
getName()
Returns the value of the 'name' attribute of this
QualitativeSpecies. |
int |
getTypeCode()
Returns the libSBML type code of this object instance.
|
boolean |
hasRequiredAttributes()
Predicate returning
true if all the required attributes
for this QualitativeSpecies object have been set. |
boolean |
isSetCompartment()
Predicate returning
true or false depending on whether this
QualitativeSpecies's 'compartment' attribute has been set. |
boolean |
isSetConstant()
Predicate returning
true or false depending on whether this
QualitativeSpecies's 'constant' attribute has been set. |
boolean |
isSetId()
Predicate returning
true or false depending on whether this
QualitativeSpecies's 'id' attribute has been set. |
boolean |
isSetInitialLevel()
Predicate returning
true or false depending on whether this
QualitativeSpecies's 'initialLevel' attribute has been set. |
boolean |
isSetMaxLevel()
Predicate returning
true or false depending on whether this
QualitativeSpecies's 'maxLevel' attribute has been set. |
boolean |
isSetName()
Predicate returning
true or false depending on whether this
QualitativeSpecies's 'name' attribute has been set. |
void |
renameSIdRefs(java.lang.String oldid,
java.lang.String newid)
Renames all the
SIdRef attributes on this element, including any
found in MathML content (if such exists). |
int |
setCompartment(java.lang.String compartment)
Sets the value of the 'compartment' attribute of this
QualitativeSpecies. |
int |
setConstant(boolean constant)
Sets the value of the 'constant' attribute of this
QualitativeSpecies. |
int |
setId(java.lang.String id)
Sets the value of the 'id' attribute of this
QualitativeSpecies. |
int |
setInitialLevel(int initialLevel)
Sets the value of the 'initialLevel' attribute of this
QualitativeSpecies. |
int |
setMaxLevel(int maxLevel)
Sets the value of the 'maxLevel' attribute of this
QualitativeSpecies. |
int |
setName(java.lang.String name)
Sets the value of the 'name' attribute of this
QualitativeSpecies. |
int |
unsetCompartment()
Unsets the value of the 'compartment' attribute of this
QualitativeSpecies. |
int |
unsetConstant()
Unsets the value of the 'constant' attribute of this
QualitativeSpecies. |
int |
unsetId()
Unsets the value of the 'id' attribute of this
QualitativeSpecies. |
int |
unsetInitialLevel()
Unsets the value of the 'initialLevel' attribute of this
QualitativeSpecies. |
int |
unsetMaxLevel()
Unsets the value of the 'maxLevel' attribute of this
QualitativeSpecies. |
int |
unsetName()
Unsets the value of the 'name' attribute of this
QualitativeSpecies. |
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getElementByMetaId, getElementBySId, getLevel, getLine, getListOfAllElements, getListOfAllElements, getListOfAllElementsFromPlugins, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getPrefix, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getURI, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, toXMLNode, unsetAnnotation, unsetCVTerms, unsetMetaId, unsetModelHistory, unsetNotes, unsetSBOTermpublic QualitativeSpecies() throws SBMLConstructorException
QualitativeSpecies with the given level, version, and package version.
level - a long integer, the SBML Level to assign to this QualitativeSpecies
version - a long integer, the SBML Version to assign to this QualitativeSpecies
pkgVersion - a long integer, the SBML Qual Version to assign to this QualitativeSpeciesSBMLConstructorExceptionpublic QualitativeSpecies(long level) throws SBMLConstructorException
QualitativeSpecies with the given level, version, and package version.
level - a long integer, the SBML Level to assign to this QualitativeSpecies
version - a long integer, the SBML Version to assign to this QualitativeSpecies
pkgVersion - a long integer, the SBML Qual Version to assign to this QualitativeSpeciesSBMLConstructorExceptionpublic QualitativeSpecies(long level, long version) throws SBMLConstructorException
QualitativeSpecies with the given level, version, and package version.
level - a long integer, the SBML Level to assign to this QualitativeSpecies
version - a long integer, the SBML Version to assign to this QualitativeSpecies
pkgVersion - a long integer, the SBML Qual Version to assign to this QualitativeSpeciesSBMLConstructorExceptionpublic QualitativeSpecies(long level, long version, long pkgVersion) throws SBMLConstructorException
QualitativeSpecies with the given level, version, and package version.
level - a long integer, the SBML Level to assign to this QualitativeSpecies
version - a long integer, the SBML Version to assign to this QualitativeSpecies
pkgVersion - a long integer, the SBML Qual Version to assign to this QualitativeSpeciesSBMLConstructorExceptionpublic QualitativeSpecies(QualitativeSpecies orig) throws SBMLConstructorException
QualitativeSpecies.
orig - the QualitativeSpecies instance to copy.SBMLConstructorExceptionpublic QualitativeSpecies(QualPkgNamespaces qualns) throws SBMLConstructorException
QualitativeSpecies with the given QualPkgNamespaces object.
qualns - the QualPkgNamespaces objectSBMLConstructorExceptionpublic QualitativeSpecies cloneObject()
QualitativeSpecies object.
cloneObject in class SBaseQualitativeSpecies object.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 QualitativeSpecies.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 QualitativeSpecies.delete() themselves.
public java.lang.String getCompartment()
QualitativeSpecies.
QualitativeSpecies as a string.public boolean getConstant()
QualitativeSpecies.
QualitativeSpecies as a boolean.public java.lang.String getElementName()
QualitativeSpecies, is
always 'qualitativeSpecies'.
getElementName in class SBase'qualitativeSpecies'.public java.lang.String getId()
QualitativeSpecies.
getId in class SBaseQualitativeSpecies as a string.public int getInitialLevel()
QualitativeSpecies.
QualitativeSpecies as a integer.public int getMaxLevel()
QualitativeSpecies.
QualitativeSpecies as a integer.public java.lang.String getName()
QualitativeSpecies.
getName in class SBaseQualitativeSpecies as a string.public int getTypeCode()
LibSBML attaches an identifying code to every kind of SBML object. These
are integer constants known as SBML type codes. The names of all
the codes begin with the characters &ldquoSBML_&rdquo.
In the Java language interface for libSBML, the
type codes are defined as static integer constants in the interface class
libsbmlConstants. Note that different Level 3
package plug-ins may use overlapping type codes to identify the package
to which a given object belongs, call the getPackageName()
method on the object.
getTypeCode in class SBaseSBML_QUAL_QUALITATIVE_SPECIES
QualitativeSpecies.getElementName(),
SBase.getPackageName()public boolean hasRequiredAttributes()
true if all the required attributes
for this QualitativeSpecies object have been set.
hasRequiredAttributes in class SBaseQualitativeSpecies object are:
public boolean isSetCompartment()
true or false depending on whether this
QualitativeSpecies's 'compartment' attribute has been set.
true if this QualitativeSpecies's 'compartment' attribute has been set,
otherwise false is returned.public boolean isSetConstant()
true or false depending on whether this
QualitativeSpecies's 'constant' attribute has been set.
true if this QualitativeSpecies's 'constant' attribute has been set,
otherwise false is returned.public boolean isSetId()
true or false depending on whether this
QualitativeSpecies's 'id' attribute has been set.
isSetId in class SBasetrue if this QualitativeSpecies's 'id' attribute has been set,
otherwise false is returned.public boolean isSetInitialLevel()
true or false depending on whether this
QualitativeSpecies's 'initialLevel' attribute has been set.
true if this QualitativeSpecies's 'initialLevel' attribute has been set,
otherwise false is returned.public boolean isSetMaxLevel()
true or false depending on whether this
QualitativeSpecies's 'maxLevel' attribute has been set.
true if this QualitativeSpecies's 'maxLevel' attribute has been set,
otherwise false is returned.public boolean isSetName()
true or false depending on whether this
QualitativeSpecies's 'name' attribute has been set.
isSetName in class SBasetrue if this QualitativeSpecies's 'name' attribute has been set,
otherwise false is returned.public void renameSIdRefs(java.lang.String oldid, java.lang.String newid)
SIdRef attributes on this element, including any
found in MathML content (if such exists).
This method works by looking at all attributes and (if appropriate)
mathematical formulas, comparing the identifiers to the value of @p
oldid. If any matches are found, the matching identifiers are replaced
with newid. The method does not descend into child elements.
renameSIdRefs in class SBaseoldid - the old identifiernewid - the new identifierpublic int setCompartment(java.lang.String compartment)
QualitativeSpecies.
compartment - String value of the 'compartment' attribute to be set
public int setConstant(boolean constant)
QualitativeSpecies.
constant - boolean value of the 'constant' attribute to be set
public int setId(java.lang.String id)
QualitativeSpecies.
public int setInitialLevel(int initialLevel)
QualitativeSpecies.
initialLevel - int value of the 'initialLevel' attribute to be set
public int setMaxLevel(int maxLevel)
QualitativeSpecies.
maxLevel - int value of the 'maxLevel' attribute to be set
public int setName(java.lang.String name)
QualitativeSpecies.
public int unsetCompartment()
QualitativeSpecies.
public int unsetConstant()
QualitativeSpecies.
public int unsetId()
QualitativeSpecies.
public int unsetInitialLevel()
QualitativeSpecies.
public int unsetMaxLevel()
QualitativeSpecies.
public int unsetName()
QualitativeSpecies.