public class Species extends Symbol implements CompartmentalizedSBase
Modifier and Type | Field and Description |
---|---|
private boolean |
amount
True means initial amount is set.
|
private java.lang.Boolean |
boundaryCondition
Represents the 'boundaryCondition' attribute of a Species element.
|
private java.lang.Integer |
charge
Deprecated.
|
private java.lang.String |
compartmentID
Represents the 'compartment' attribute of a Species element.
|
private java.lang.String |
conversionFactorID
Represents the 'conversionFactor' attribute of a Species element.
|
private java.lang.Boolean |
hasOnlySubstanceUnits
Represents the 'hasOnlySubstanceUnits' attribute of a Species element.
|
private boolean |
isSetBoundaryCondition |
private boolean |
isSetCharge
Boolean value to test if the charge has been set.
|
private boolean |
isSetHasOnlySubstanceUnits |
private static org.apache.log4j.Logger |
logger
A
Logger for this class. |
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
spatialSizeUnitsID
Deprecated.
Only valid for SBML Level 2 Versions 1 and 2.
|
private java.lang.String |
speciesTypeID
Deprecated.
|
constant, isSetConstant
value
unitsID
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, lv, packageName
listOfListeners, parent, resourceBundle
Constructor and Description |
---|
Species()
Creates a Species instance.
|
Species(int level,
int version)
Creates a Species instance from a level and version.
|
Species(Species species)
Creates a Species instance from a Species.
|
Species(java.lang.String id) |
Species(java.lang.String id,
int level,
int version)
Creates a Species instance from a level and verison.
|
Species(java.lang.String id,
java.lang.String name,
int level,
int version) |
Modifier and Type | Method and Description |
---|---|
Species |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
boolean |
containsUndeclaredUnits()
Returns
true or false depending on whether this
SBaseWithDerivedUnit refers to elements such as parameters or
numbers with undeclared units. |
boolean |
equals(java.lang.Object object)
|
boolean |
getBoundaryCondition() |
int |
getCharge()
Deprecated.
|
java.lang.String |
getCompartment()
Returns the value of the referenced compartment.
|
Compartment |
getCompartmentInstance()
Returns the
Compartment that is referenced by this SBase . |
java.lang.String |
getConversionFactor() |
Parameter |
getConversionFactorInstance() |
UnitDefinition |
getDerivedUnitDefinition()
Derives the unit of this quantity and tries to identify an
equivalent
UnitDefinition within the corresponding Model . |
java.lang.String |
getDerivedUnits()
Derives the unit of this quantity.
|
java.lang.String |
getElementName()
Returns the XML element name of this object.
|
boolean |
getHasOnlySubstanceUnits() |
double |
getInitialAmount() |
double |
getInitialConcentration() |
java.lang.String |
getPredefinedUnitID()
Returns the predefined unit identifier for this data type with the
current level/version combination.
|
java.lang.String |
getSpatialSizeUnits()
Deprecated.
Only valid for SBML Level 2 Versions 1 and 2.
|
UnitDefinition |
getSpatialSizeUnitsInstance()
Deprecated.
Only valid for SBML Level 2 Versions 1 and 2.
|
java.lang.String |
getSpeciesType()
Deprecated.
Only valid for SBML Level 2 Versions 2, 3, and 4.
|
SpeciesType |
getSpeciesTypeInstance()
Deprecated.
Only valid for SBML Level 2 Versions 2, 3, and 4.
|
java.lang.String |
getSubstanceUnits() |
UnitDefinition |
getSubstanceUnitsInstance() |
int |
hashCode()
Returns a hash code value for this
SBase instance. |
boolean |
hasOnlySubstanceUnits() |
void |
initDefaults()
Initializes the default values using the current Level/Version configuration.
|
void |
initDefaults(int level,
int version)
Initializes the default values of this Species.
|
void |
initDefaults(int level,
int version,
boolean explicit) |
boolean |
isBoundaryCondition() |
boolean |
isCompartmentMandatory() |
boolean |
isHasOnlySubstanceUnits() |
boolean |
isSetBoundaryCondition() |
boolean |
isSetCharge() |
boolean |
isSetCompartment() |
boolean |
isSetCompartmentInstance() |
boolean |
isSetConversionFactor() |
boolean |
isSetConversionFactorInstance() |
boolean |
isSetHasOnlySubstanceUnits() |
boolean |
isSetInitialAmount() |
boolean |
isSetInitialConcentration() |
boolean |
isSetSpatialSizeUnits()
Deprecated.
Only valid for SBML Level 2 Versions 1 and 2.
|
boolean |
isSetSpatialSizeUnitsInstance()
Deprecated.
Only valid for SBML Level 2 Versions 1 and 2.
|
boolean |
isSetSpeciesType()
Deprecated.
|
boolean |
isSetSpeciesTypeInstance()
Deprecated.
|
boolean |
isSetSubstanceUnits() |
boolean |
isSetSubstanceUnitsInstance() |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase . |
void |
setBoundaryCondition(boolean boundaryCondition)
Sets the boundaryCondition Boolean.
|
void |
setCharge(int charge)
Deprecated.
Only defined in SBML Level 1, Version 1 and 2, and Level 2
Version 1. Since Level 2 Version 2 it has been marked as a
deprecated property, but has been completely removed in SBML
Level 3.
|
boolean |
setCompartment(Compartment compartment)
Sets the compartment identifiers of this
CompartmentalizedSBase to
the id of the Compartment 'compartment'. |
boolean |
setCompartment(java.lang.String compartment)
Sets the compartment attribute.
|
void |
setConversionFactor(Parameter conversionFactor)
Sets the conversionFactorID of this
Species to the id of
'conversionFactor'. |
void |
setConversionFactor(java.lang.String conversionFactorID)
Sets the conversionFactorID of this
Species to
'conversionFactorID'. |
void |
setHasOnlySubstanceUnits(boolean hasOnlySubstanceUnits)
Sets hasOnlySubstanceUnits Boolean
|
void |
setInitialAmount(double initialAmount)
Sets the initialAmount of this
Species . |
void |
setInitialConcentration(double initialConcentration)
Sets the initialConcentration of this
Species . |
void |
setSpatialSizeUnits(java.lang.String spatialSizeUnits)
Deprecated.
This property is only valid for SBML Level 2 Versions 1 and
2.
|
void |
setSpatialSizeUnits(UnitDefinition spatialSizeUnits)
Deprecated.
Only valid for SBML Level 2 Versions 1 and 2.
|
void |
setSpeciesType(SpeciesType speciesType)
Deprecated.
|
void |
setSpeciesType(java.lang.String speciesType)
Deprecated.
Only valid in SBML Level 2 for Versions 2 through 4.
|
void |
setSubstanceUnits(java.lang.String unit)
Sets the substanceUnitsID to 'unit'.
|
void |
setSubstanceUnits(Unit.Kind unitKind)
Sets the substanceUnits.
|
void |
setSubstanceUnits(Unit unit)
Sets the substanceUnits.
|
void |
setSubstanceUnits(UnitDefinition units)
Sets the substanceUnitsID to the id of 'units'.
|
void |
unsetCharge()
Deprecated.
|
boolean |
unsetCompartment()
Remove the reference to a compartment, i.e., unset the value of the
variable 'compartment'.
|
void |
unsetConversionFactor()
Unsets the conversionFactorID of this Species.
|
void |
unsetInitialAmount()
Unsets the initialAmount of this Species.
|
void |
unsetInitialConcentration()
Unsets the initialConcentration of this Species.
|
void |
unsetSpatialSizeUnits()
Deprecated.
Only valid for SBML Level 2 Versions 1 and 2.
|
void |
unsetSubstanceUnits()
Unsets the substanceUnits of this Species.
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
getConstant, isConstant, isSetConstant, setConstant, unsetConstant
getValue, isIdMandatory, isSetValue, setValue, unsetValue
getUnits, getUnitsInstance, isPredefinedUnitsID, isSetUnits, isSetUnitsInstance, setUnits, setUnits, setUnits, setUnits, unsetUnits
isValidId
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, 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, setLevelAndVersion, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageNamespaceAndVersion, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, 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, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, 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, unsetSBOTerm
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
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
getValue, isSetValue, setValue, unsetValue
private static final transient org.apache.log4j.Logger logger
Logger
for this class.private static final long serialVersionUID
private boolean amount
private java.lang.Boolean boundaryCondition
@Deprecated private java.lang.Integer charge
private java.lang.String compartmentID
private java.lang.String conversionFactorID
private java.lang.Boolean hasOnlySubstanceUnits
private boolean isSetBoundaryCondition
private boolean isSetCharge
private boolean isSetHasOnlySubstanceUnits
@Deprecated private java.lang.String spatialSizeUnitsID
@Deprecated private java.lang.String speciesTypeID
public Species()
compartmentID
,
speciesTypeID, conversionFactorID, hasOnlySubstanceUnits,
boundaryCondition are null
.public Species(int level, int version)
compartmentID
, speciesTypeID, conversionFactorID,
hasOnlySubstanceUnits, boundaryCondition are null
.level
- version
- public Species(Species species)
species
- public Species(java.lang.String id)
id
- public Species(java.lang.String id, int level, int version)
compartmentID
, speciesTypeID, conversionFactorID,
hasOnlySubstanceUnits, boundaryCondition are null
.id
- level
- version
- public Species(java.lang.String id, java.lang.String name, int level, int version)
id
- name
- level
- version
- public Species clone()
SBase
SBase
with the same
properties
like this one.public boolean containsUndeclaredUnits()
SBaseWithDerivedUnit
true
or false
depending on whether this
SBaseWithDerivedUnit
refers to elements such as parameters or
numbers with undeclared units.
A return value of true indicates that the UnitDefinition
returned by SBaseWithDerivedUnit.getDerivedUnitDefinition()
may not accurately
represent the units of the expression.containsUndeclaredUnits
in interface SBaseWithDerivedUnit
containsUndeclaredUnits
in class AbstractNamedSBaseWithUnit
true
if the math expression of this SBaseWithDerivedUnit
includes parameters/numbers with undeclared units,
false
otherwise.public boolean equals(java.lang.Object object)
SBase
public boolean getBoundaryCondition()
@Deprecated public int getCharge()
public java.lang.String getCompartment()
CompartmentalizedSBase
getCompartment
in interface CompartmentalizedSBase
String
if it is not set.public Compartment getCompartmentInstance()
CompartmentalizedSBase
Compartment
that is referenced by this SBase
.
Note that the return type of this method is NamedSBase
because it
could be possible that some subclasses link other elements than
Compartment
.getCompartmentInstance
in interface CompartmentalizedSBase
Model
that represents the linked
Compartment
or null
if it does not exist or cannot
be retrieved (e.g., if this component has not yet been linked to a
Model
).public java.lang.String getConversionFactor()
public Parameter getConversionFactorInstance()
public UnitDefinition getDerivedUnitDefinition()
SBaseWithDerivedUnit
UnitDefinition
within the corresponding Model
.
If no equivalent unit definition can be found, a new unit definition will
be created that is not part of the model but represents the unit of this
quantity. If it is not possible to derive a unit for this quantity, null
will be returned.getDerivedUnitDefinition
in interface SBaseWithDerivedUnit
getDerivedUnitDefinition
in class AbstractNamedSBaseWithUnit
UnitDefinition
that represent the derived unit of this quantity, or null
if it is not possible to derive a unit.public java.lang.String getDerivedUnits()
SBaseWithDerivedUnit
Unit.Kind
this
method will return the String
representation of this
Unit.Kind
.getDerivedUnits
in interface SBaseWithDerivedUnit
getDerivedUnits
in class AbstractNamedSBaseWithUnit
String
that represent the id of a UnitDefinition
. This UnitDefinition
represent the derived unit of this quantity. If it is not possible to derive a unit for this quantity
or if no equivalent UnitDefinition
can be found in the Model
, null is returned.public java.lang.String getElementName()
SBase
getElementName
in interface SBase
getElementName
in class AbstractSBase
public boolean getHasOnlySubstanceUnits()
public double getInitialAmount()
public double getInitialConcentration()
Species
if it has been
set, o otherwise.public java.lang.String getPredefinedUnitID()
AbstractNamedSBaseWithUnit
getPredefinedUnitID
in class AbstractNamedSBaseWithUnit
Model
. This can
be one of the predefined unit identifiers if there are any.@Deprecated public java.lang.String getSpatialSizeUnits()
Species
. If no such value is defined, it will
return the units of the surrounding Compartment
. Only if this is
also not possible, an empty String
will be returned.Species
.@Deprecated public UnitDefinition getSpatialSizeUnitsInstance()
Species
. If the spatial
units have been set explicitly using spatialSizeUnitsID
the
corresponding UnitDefinition
from the Model
to which this
Species
belongs will be returned. Otherwise, the size unit from
the surrounding Compartment
of this Species
will be
returned. If this also fails, null
will be returned.UnitDefinition
instance which as the
spatialSizeUnitsID
of this Species
as id or the
size unit of the surrounding Compartment
.
null
if it doesn't exist.@Deprecated public java.lang.String getSpeciesType()
Species
. The empty String if it
is not set.@Deprecated public SpeciesType getSpeciesTypeInstance()
public java.lang.String getSubstanceUnits()
public UnitDefinition getSubstanceUnitsInstance()
public int hashCode()
SBase
SBase
instance.public boolean hasOnlySubstanceUnits()
public void initDefaults()
public void initDefaults(int level, int version)
level
- version
- public void initDefaults(int level, int version, boolean explicit)
level
- version
- explicit
- public boolean isBoundaryCondition()
public boolean isCompartmentMandatory()
isCompartmentMandatory
in interface CompartmentalizedSBase
true
if for this object the compartment attribute is
mandatory, false
otherwise.public boolean isHasOnlySubstanceUnits()
public boolean isSetBoundaryCondition()
true
if the boundaryCondition
of this
Species
is not null
.public boolean isSetCharge()
true
if the charge of this Species if not null
.public boolean isSetCompartment()
isSetCompartment
in interface CompartmentalizedSBase
true
if compartment attribute is set, i.e., not
null
, false
otherwise.public boolean isSetCompartmentInstance()
isSetCompartmentInstance
in interface CompartmentalizedSBase
true
if the Compartment
which has the compartment
identifier stored in this CompartmentalizedSBase
as id is
not null
and this Compartment
can be retrieved from
the Model
that contains this CompartmentalizedSBase
.
In other words, this method also returns false
if the
this object is not linked to any model.public boolean isSetConversionFactor()
true
if the conversionFactorID of this Species is not null
.public boolean isSetConversionFactorInstance()
true
if the Parameter which has the conversionFactorID of this
Species as id is not null
.public boolean isSetHasOnlySubstanceUnits()
true
if the hasOnlySubstanceUnits of this Species is not null
.public boolean isSetInitialAmount()
true
if an initial amount has been set for this species.public boolean isSetInitialConcentration()
true
if an initial concentration has been set for this
species.@Deprecated public boolean isSetSpatialSizeUnits()
true
if the spatialSizeUnits of this Species
is not null
.@Deprecated public boolean isSetSpatialSizeUnitsInstance()
true
if the UnitDefinition
which has the
spatialSizeUnitsID of
this Species
as id is not null
.@Deprecated public boolean isSetSpeciesType()
true
if the speciesTypeID of this Species is not null
.@Deprecated public boolean isSetSpeciesTypeInstance()
true
if the SpeciesType instance which has the speciesTypeID of
this Species as id is not null
.public boolean isSetSubstanceUnits()
true
if the substanceUnitsID of this species is not null
.public boolean isSetSubstanceUnitsInstance()
true
if the UnitDefinition which has the substanceUnitsID of this
Species as id is not null
.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
SBase
.
If the given attribute name is not recognized, nothing is done and
false
is returned.
readAttribute
in interface SBase
readAttribute
in class AbstractSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public void setBoundaryCondition(boolean boundaryCondition)
boundaryCondition
- @Deprecated public void setCharge(int charge)
Species
.charge
- PropertyNotAvailableException
- if Level >= 3.public boolean setCompartment(Compartment compartment)
CompartmentalizedSBase
CompartmentalizedSBase
to
the id of the Compartment
'compartment'.
The compartment attribute is used to add a reference to the id of
the corresponding Compartment
in the Model
.
In some situations, the compartment might be optional, so that the user can
even specify Compartment
s that are not part of the Model
.
setCompartment
in interface CompartmentalizedSBase
compartment
- the Compartment
whose identifier should be referenced.true
if this operation caused any change.CompartmentalizedSBase.setCompartment(String)
,
CompartmentalizedSBase.isCompartmentMandatory()
public boolean setCompartment(java.lang.String compartment)
CompartmentalizedSBase
The required attribute compartment is used to identify the
Compartment
in which the CompartmentalizedSBase
is located.
The attribute's value should be the identifier of an existing
Compartment
object in the model.
setCompartment
in interface CompartmentalizedSBase
compartment
- the identifier of the compartment to be set.true
if this operation caused any change.CompartmentalizedSBase.setCompartment(Compartment)
,
CompartmentalizedSBase.isCompartmentMandatory()
public void setConversionFactor(Parameter conversionFactor)
Species
to the id of
'conversionFactor'. This is only possible if Level >= 3.conversionFactor
- public void setConversionFactor(java.lang.String conversionFactorID)
Species
to
'conversionFactorID'. This is only possible if Level >= 3.conversionFactorID
- PropertyNotAvailableException
- if Level < 3.public void setHasOnlySubstanceUnits(boolean hasOnlySubstanceUnits)
hasOnlySubstanceUnits
- PropertyNotAvailableException
- if Level < 2.public void setInitialAmount(double initialAmount)
Species
.initialAmount
- public void setInitialConcentration(double initialConcentration)
Species
.initialConcentration
- @Deprecated public void setSpatialSizeUnits(java.lang.String spatialSizeUnits) throws PropertyNotAvailableException, SBMLException
Species
to
'spatialSizeUnits'.spatialSizeUnits
- PropertyNotAvailableException
- for inapropriate Level/Version combinations.SBMLException
- in case that hasOnlySubstanceUnits()
is set to
true
or the spatial dimensions of the surrounding
compartment are zero.@Deprecated public void setSpatialSizeUnits(UnitDefinition spatialSizeUnits) throws PropertyNotAvailableException, SBMLException
Species
to the id of
'spatialSizeUnits'.spatialSizeUnits
- PropertyNotAvailableException
- for inapropriate Level/Version combinations.SBMLException
- in case that hasOnlySubstanceUnits()
is set to
true
or the spatial dimensions of the surrounding
compartment are zero.@Deprecated public void setSpeciesType(SpeciesType speciesType)
Species
to the id of
'speciesType'.speciesType
- @Deprecated public void setSpeciesType(java.lang.String speciesType)
Species
to 'speciesType'.speciesType
- PropertyNotAvailableException
- for inapropriate Level/Version combinations.public void setSubstanceUnits(java.lang.String unit)
unit
- public void setSubstanceUnits(Unit unit)
unit
- public void setSubstanceUnits(Unit.Kind unitKind)
unitKind
- public void setSubstanceUnits(UnitDefinition units)
units
- @Deprecated public void unsetCharge()
public boolean unsetCompartment()
CompartmentalizedSBase
unsetCompartment
in interface CompartmentalizedSBase
true
if compartment was set before, otherwise false
.public void unsetConversionFactor()
public void unsetInitialAmount()
public void unsetInitialConcentration()
@Deprecated public void unsetSpatialSizeUnits()
public void unsetSubstanceUnits()
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBase
SBase
that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractSBase
Map
containing the XML attributes of this object.