public class ListOfObjectives extends ListOf<Objective>
ListOfObjectives adds an additional required attribute: 'activeObjective'.ListOf.TypelistOf, listType, otherListNameignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
ListOfObjectives()
Creates a new
ListOfObjectives instance. |
ListOfObjectives(int level,
int version)
Creates a new
ListOfObjectives instance. |
ListOfObjectives(ListOf<Objective> listOf)
Creates a new
ListOfObjectives instance. |
ListOfObjectives(ListOfObjectives listOf)
Creates a new
ListOfObjectives instance. |
| Modifier and Type | Method and Description |
|---|---|
ListOf<Objective> |
clone() |
String |
getActiveObjective()
Returns the value of activeObjective
|
Objective |
getActiveObjectiveInstance()
Returns the active
Objective. |
String |
getElementName() |
boolean |
isSetActiveObjective()
Returns whether activeObjective is set
|
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setActiveObjective(Objective activeObjective)
Sets the value of
activeObjective to the id of the given Objective. |
void |
setActiveObjective(String activeObjective)
Sets the active objective.
|
boolean |
unsetActiveObjective()
Unsets the variable activeObjective
|
Map<String,String> |
writeXMLAttributes() |
add, add, addAll, addAll, append, clear, contains, containsAll, equals, filterList, firstHit, get, get, getAllowsChildren, getChildAt, getChildCount, getFirst, getLast, getOtherListName, getSBaseListType, indexOf, initListOf, isDebugMode, isEmpty, iterator, lastIndexOf, listIterator, listIterator, newInstance, remove, remove, remove, remove, removeAll, removeAll, removeFirst, retainAll, set, setDebugMode, setListOf, setOtherListName, setPackageName, setSBaseListType, setSBaseListType, size, subList, toArray, toArray, unsetSBaseListTypeaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, 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, hashCode, notify, notifyAll, wait, wait, waithashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamremoveTreeNodeChangeListeneraddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic ListOfObjectives()
ListOfObjectives instance.public ListOfObjectives(int level,
int version)
ListOfObjectives instance.level - the SBML levelversion - the SBML versionpublic ListOfObjectives(ListOfObjectives listOf)
ListOfObjectives instance.listOf - the instance to clonepublic ListOfObjectives(ListOf<Objective> listOf)
ListOfObjectives instance.listOf - the instance to clonepublic String getActiveObjective()
public Objective getActiveObjectiveInstance()
Objective.Objective or null if none can be found.public String getElementName()
getElementName in interface SBasegetElementName in class ListOf<Objective>public boolean isSetActiveObjective()
public boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic void setActiveObjective(String activeObjective)
This attribute refers to an id of an existing Objective. This attribute
exists so that if multiple objectives are defined in a single model, the model will
always be well-defined, i.e., there is a single objective function which defines
a single optimum.
activeObjective - the value of activeObjectivepublic void setActiveObjective(Objective activeObjective)
activeObjective to the id of the given Objective.activeObjective - an Objective that will be set as the active objective.setActiveObjective(String)public boolean unsetActiveObjective()
true, if activeObjective was set before,
otherwise falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBaseCopyright © 2009–2018. All rights reserved.