public class Objective extends AbstractNamedSBase implements UniqueNamedSBase
Objective class.| Modifier and Type | Class and Description |
|---|---|
static class |
Objective.Type |
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| 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) |
FluxObjective |
createFluxObjective(String id,
String name,
double coefficient,
Reaction reaction) |
FluxObjective |
createFluxObjective(String id,
String name,
double coefficient,
String rId) |
boolean |
equals(Object obj) |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
int |
getFluxObjectiveCount() |
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(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() |
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, 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, 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 SBaseclone in class 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 element or null if
the operation failed.public FluxObjective createFluxObjective(String id, String name)
id - name - FluxObjective element or null if
the operation failed.public FluxObjective createFluxObjective(String id, String name, double coefficient, Reaction reaction)
id - name - the name of the flux objective to be created, can be null.coefficient - reaction - FluxObjective element or null if
the operation failed.public FluxObjective createFluxObjective(String id, String name, double coefficient, String rId)
id - name - coefficient - rId - FluxObjective element or null if
the operation failed.public boolean equals(Object obj)
equals in interface SBaseequals in class AbstractSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic int getFluxObjectiveCount()
public ListOf<FluxObjective> getListOfFluxObjectives()
@Deprecated public int getNumFluxObjectives()
getFluxObjectiveCount()public Objective.Type getType()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic boolean isSetListOfFluxObjectives()
public boolean isSetType()
public boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic 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(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 falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBaseCopyright © 2009–2017. All rights reserved.