public class Objective
extends org.sbml.jsbml.AbstractNamedSBase
implements org.sbml.jsbml.UniqueNamedSBase
Objective class.| Modifier and Type | Class and Description |
|---|---|
static class |
Objective.Type |
| Constructor and Description |
|---|
Objective()
Creates an Objective instance
|
Objective(int level,
int version)
Creates a Objective instance with a level and version.
|
Objective(Objective obj)
Clone constructor
|
Objective(String id)
Creates a Objective instance with an id.
|
Objective(String id,
int level,
int version)
Creates a Objective instance with an id, level, and version.
|
Objective(String id,
String name,
int level,
int version)
Creates a Objective instance with an id, name, level, and version.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFluxObjective(FluxObjective fluxObjective)
Adds a new
FluxObjective to the listOfFluxObjectives. |
Objective |
clone() |
FluxObjective |
createFluxObjective()
Creates a new
FluxObjective element and adds it to the ListOfFluxObjectives list |
FluxObjective |
createFluxObjective(String id)
Creates a new
FluxObjective element and adds it to the ListOfFluxObjectives list |
FluxObjective |
createFluxObjective(String id,
String name) |
boolean |
equals(Object obj) |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
int |
getFluxObjectiveCount() |
org.sbml.jsbml.ListOf<FluxObjective> |
getListOfFluxObjectives()
Returns the listOfFluxObjectives
|
int |
getNumFluxObjectives()
Deprecated.
|
Objective.Type |
getType()
Returns the type.
|
int |
hashCode() |
boolean |
isIdMandatory() |
boolean |
isSetListOfFluxObjectives() |
boolean |
isSetType()
Returns whether type is set
|
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
boolean |
removeFluxObjective(FluxObjective fluxObjective)
Removes an element from the listOfFluxObjectives.
|
void |
removeFluxObjective(int i)
Removes an element from the listOfFluxObjectives at the given index.
|
void |
removeFluxObjective(String id)
Removes an element from the listOfFluxObjectives with the given id.
|
void |
setListOfFluxObjectives(org.sbml.jsbml.ListOf<FluxObjective> listOfFluxObjectives)
This list houses the actual fluxes to partake in this objective function,
which are encoded by
FluxObjective
Sets the given ListOf<FluxObjective>. |
void |
setType(Objective.Type type)
Sets the value of type
|
void |
setType(String type)
The required type attribute contains a
Objective.Type which represents the sense
of the optimality constraint and can take one of two values, minimize or maximize. |
boolean |
unsetListOfFluxObjectives()
Unsets the
listOfFluxObjectives. |
boolean |
unsetType()
Unsets the variable type
|
Map<String,String> |
writeXMLAttributes() |
getId, getName, isSetId, isSetName, isValidId, setId, setName, toString, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, 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, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, 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, 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 Objective()
public Objective(int level,
int version)
level - version - public Objective(Objective obj)
obj - public Objective(String id)
id - public Objective(String id, int level, int version)
id - level - version - public boolean addFluxObjective(FluxObjective fluxObjective)
FluxObjective to the listOfFluxObjectives.
The listOfFluxObjectives is initialized if necessary.
fluxObjective - the element to add to the listtrue (as specified by Collection.add(E))public Objective clone()
clone in interface org.sbml.jsbml.SBaseclone in class org.sbml.jsbml.AbstractSBasepublic FluxObjective createFluxObjective()
FluxObjective element and adds it to the ListOfFluxObjectives listFluxObjective elementpublic FluxObjective createFluxObjective(String id)
FluxObjective element and adds it to the ListOfFluxObjectives listid - the id for the new FluxObjectiveFluxObjective elementpublic FluxObjective createFluxObjective(String id, String name)
id - name - public boolean equals(Object obj)
equals in interface org.sbml.jsbml.SBaseequals in class org.sbml.jsbml.AbstractNamedSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class org.sbml.jsbml.AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class org.sbml.jsbml.AbstractSBasepublic int getFluxObjectiveCount()
public org.sbml.jsbml.ListOf<FluxObjective> getListOfFluxObjectives()
@Deprecated public int getNumFluxObjectives()
getFluxObjectiveCount()public Objective.Type getType()
public int hashCode()
hashCode in interface org.sbml.jsbml.SBasehashCode in class org.sbml.jsbml.AbstractNamedSBasepublic boolean isIdMandatory()
isIdMandatory in interface org.sbml.jsbml.NamedSBasepublic boolean isSetListOfFluxObjectives()
public boolean isSetType()
public boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface org.sbml.jsbml.SBasereadAttribute in class org.sbml.jsbml.AbstractNamedSBasepublic boolean removeFluxObjective(FluxObjective fluxObjective)
fluxObjective - the element to be removed from the listtrue if the list contained the specified elementList.remove(Object)public void removeFluxObjective(int i)
i - the index where to remove the FluxObjectiveIndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public void removeFluxObjective(String id)
id - the id of the FluxObjective to remove.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public void setListOfFluxObjectives(org.sbml.jsbml.ListOf<FluxObjective> listOfFluxObjectives)
FluxObjective
Sets the given ListOf<FluxObjective>. If listOfFluxObjectives
was defined before and contains some elements, they are all unset.listOfFluxObjectives - public void setType(String type)
Objective.Type which represents the sense
of the optimality constraint and can take one of two values, minimize or maximize.
Sets the type from a String.type - the type to setpublic void setType(Objective.Type type)
type - public boolean unsetListOfFluxObjectives()
listOfFluxObjectives.
Returns true, if listOfFluxObjectives contain at least one element,
otherwise false
true, if listOfFluxObjectives contain at least one element,
otherwise falsepublic boolean unsetType()
true, if type was set before,
otherwise falseCopyright © 2009–2016. All rights reserved.