public class FluxObjective extends AbstractNamedSBase implements UniqueNamedSBase
FluxObjective class is a relatively simple container for a model
variable weighted by a signed linear coefficient.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
FluxObjective()
Creates an FluxObjective instance
|
FluxObjective(FluxObjective obj)
Clone constructor
|
FluxObjective(int level,
int version)
Creates a FluxObjective instance with a level and version.
|
FluxObjective(String id)
Creates a FluxObjective instance with an id.
|
FluxObjective(String id,
int level,
int version)
Creates a FluxObjective instance with an id, level, and version.
|
FluxObjective(String id,
String name,
int level,
int version)
Creates a FluxObjective instance with an id, name, level, and version.
|
| Modifier and Type | Method and Description |
|---|---|
FluxObjective |
clone()
clones this class
|
boolean |
equals(Object obj) |
double |
getCoefficient()
Returns the value of coefficient
|
String |
getReaction()
Returns the value of reaction
|
Reaction |
getReactionInstance()
Returns the
Reaction associated with this FluxObjective. |
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory() |
boolean |
isSetCoefficient()
Returns whether coefficient is set
|
boolean |
isSetReaction()
Returns whether reaction is set
|
boolean |
isSetReactionInstance()
Returns whether reaction is set and is a valid
Reaction in the model. |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setCoefficient(double coefficient)
The coefficient attribute takes the value of the coefficient that the FluxObjective
takes in the context of the enclosing
Objective class. |
void |
setReaction(Reaction reaction)
Sets the
Reaction that this FluxObjective is associated with in the context
of the enclosing Objective class. |
void |
setReaction(String reaction)
Sets the reaction that this
FluxObjective is associated with in the context
of the enclosing Objective class. |
boolean |
unsetCoefficient()
Unsets the variable coefficient
|
boolean |
unsetReaction()
Unsets the variable reaction
|
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, 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, 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, isCloningInProgress, isInvalidSBMLAllowed, 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, 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, userObjectKeySetchildren, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafpublic FluxObjective()
public FluxObjective(int level,
int version)
level - the SBML levelversion - the SBML versionpublic FluxObjective(String id)
id - the idpublic FluxObjective(String id, int level, int version)
id - the idlevel - the SBML levelversion - the SBML versionpublic FluxObjective(String id, String name, int level, int version)
id - the idname - the namelevel - the SBML levelversion - the SBML versionpublic FluxObjective(FluxObjective obj)
obj - the instance to clonepublic FluxObjective clone()
clone in interface SBaseclone in class AbstractSBasepublic int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean equals(Object obj)
equals in interface SBaseequals in class AbstractSBasepublic double getCoefficient()
public String getReaction()
public Reaction getReactionInstance()
Reaction associated with this FluxObjective.Reaction associated with this FluxObjective or null if the reaction attribute is not a valid reaction id.public boolean isSetReactionInstance()
Reaction in the model.Reaction in the model.public boolean isSetReaction()
public void initDefaults()
public boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic boolean isSetCoefficient()
public boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic void setCoefficient(double coefficient)
Objective class.coefficient - the coefficient to setpublic void setReaction(Reaction reaction)
Reaction that this FluxObjective is associated with in the context
of the enclosing Objective class.reaction - the reaction to setpublic void setReaction(String reaction)
FluxObjective is associated with in the context
of the enclosing Objective class.reaction - the reaction to setpublic boolean unsetCoefficient()
true, if coefficient was set before,
otherwise falsepublic boolean unsetReaction()
true, if reaction was set before,
otherwise falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBaseCopyright © 2009–2017. All rights reserved.