public class FBCModelPlugin extends AbstractFBCSBasePlugin
FBCModelPlugin is the extended Model class for the FBC package.
It is extended by the addition of two children, list of FluxBound
and list of Objective
elementNamespace, extendedSBase, packageVersionlistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
FBCModelPlugin(FBCModelPlugin fbcPlugin)
Clone constructor
|
FBCModelPlugin(Model model)
Creates a new
FBCModelPlugin instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFluxBound(FluxBound fluxBound)
Deprecated.
Only defined in FBC version 1.
|
boolean |
addGeneProduct(GeneProduct geneProduct)
Adds a new
GeneProduct to the listOfGeneProducts. |
boolean |
addObjective(Objective objective)
Adds a new
Objective to the listOfObjectives. |
FBCModelPlugin |
clone() |
FluxBound |
createFluxBound()
Deprecated.
Only defined in FBC version 1.
|
FluxBound |
createFluxBound(String id)
Deprecated.
Only defined in FBC version 1.
|
GeneProduct |
createGeneProduct()
Creates a new
GeneProduct element and adds it to the ListOfGeneProducts list. |
GeneProduct |
createGeneProduct(String id)
Creates a new
GeneProduct element and adds it to the listOfGeneProducts list. |
Objective |
createObjective()
Creates a new
Objective element and adds it to the
listOfObjectives. |
Objective |
createObjective(String id)
Creates a new
Objective element and adds it to the
listOfObjectives. |
Objective |
createObjective(String id,
Objective.Type type)
Creates a new
Objective element and adds it to the
listOfObjectives. |
Objective |
createObjective(String id,
String name,
Objective.Type type)
Creates a new
Objective element and adds it to the
listOfObjectives. |
String |
getActiveObjective()
Gets the
activeObjective. |
Objective |
getActiveObjectiveInstance() |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
FluxBound |
getFluxBound(int i)
Deprecated.
Only defined in FBC version 1.
|
int |
getFluxBoundCount()
Deprecated.
Only defined in FBC version 1.
|
GeneProduct |
getGeneProduct(int i)
Gets an element from the
listOfGeneProducts at the given index. |
GeneProduct |
getGeneProduct(String geneProductId)
Gets an element from the listOfGeneProducts, with the given id.
|
int |
getGeneProductCount()
Returns the number of
GeneProducts in this FBCModelPlugin. |
ListOf<FluxBound> |
getListOfFluxBounds()
Deprecated.
Only defined in FBC version 1.
|
ListOf<GeneProduct> |
getListOfGeneProducts()
Returns the
listOfGeneProducts. |
ListOfObjectives |
getListOfObjectives()
Returns the
listOfObjectives. |
int |
getNumFluxBound()
Deprecated.
Only defined in FBC version 1.
|
int |
getNumGeneProducts()
Returns the number of
GeneProducts in this FBCModelPlugin. |
int |
getNumObjective()
Return the number of
Objectives in this FBCModelPlugin. |
Objective |
getObjective(int i)
Gets an element from the listOfObjectives at the given index.
|
int |
getObjectiveCount()
Return the number of
Objective in this FBCModelPlugin. |
Model |
getParent() |
Model |
getParentSBMLObject() |
boolean |
getStrict()
Returns the value of
strict. |
boolean |
isSetActiveObjective() |
boolean |
isSetListOfFluxBounds()
Deprecated.
Only defined in FBC version 1.
|
boolean |
isSetListOfGeneProducts()
Returns
true if listOfGeneProducts contains at least one element. |
boolean |
isSetListOfObjectives()
Returns
true if listOfObjectives is not null. |
boolean |
isSetStrict()
Returns whether
strict is set. |
boolean |
isStrict()
Returns the value of
strict. |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
boolean |
removeFluxBound(FluxBound fluxBound)
Deprecated.
Only defined in FBC version 1.
|
void |
removeFluxBound(int i)
Deprecated.
Only defined in FBC version 1.
|
boolean |
removeGeneProduct(GeneProduct geneProduct)
Removes an element from the
listOfGeneProducts. |
GeneProduct |
removeGeneProduct(int i)
Removes an element from the listOfGeneProducts at the given index.
|
GeneProduct |
removeGeneProduct(String geneProductId)
Removes an element from the
listOfGeneProducts. |
void |
removeObjective(int i)
Removes an element from the listOfObjectives at the given index.
|
boolean |
removeObjective(Objective objective)
Removes an element from the listOfObjectives.
|
void |
setActiveObjective(Objective objective) |
void |
setActiveObjective(String activeObjective)
The activeObjective refers to the id of an existing objective.
|
void |
setListOfFluxBounds(ListOf<FluxBound> listOfFluxBounds)
Deprecated.
Only defined in FBC version 1.
|
void |
setListOfGeneProducts(ListOf<GeneProduct> listOfGeneProducts)
Sets the given
ListOf<GeneProduct>. |
void |
setListOfObjectives(ListOf<Objective> listOfObjectives)
Sets the given
ListOf<Objective>. |
void |
setListOfObjectives(ListOfObjectives listOfObjectives)
Sets the given
ListOfObjectives. |
void |
setNotesKeyToUserObject(String key) |
void |
setStrict(boolean strict)
Sets the value of strict
|
boolean |
unsetListOfFluxBounds()
Deprecated.
Only defined in FBC version 1.
|
boolean |
unsetListOfGeneProducts()
|
boolean |
unsetListOfObjectives()
Returns
true if listOfObjectives contain at least one element,
otherwise false |
boolean |
unsetStrict()
Unsets the variable strict.
|
Map<String,String> |
writeXMLAttributes() |
getPackageName, getPrefix, getURIequals, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getElementNamespace, getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase, isSetPackageVersion, removeFromParent, setExtendedSBase, setNamespace, setPackageVersionaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic FBCModelPlugin(FBCModelPlugin fbcPlugin)
fbcPlugin - the instance to clonepublic FBCModelPlugin(Model model)
FBCModelPlugin instance.model - the core Model@Deprecated public boolean addFluxBound(FluxBound fluxBound)
FluxBound to the listOfFluxBounds.
The listOfFluxBounds is initialized if necessary.
fluxBound - the element to add to the listtrue (as specified by Collection.add(E))public boolean addGeneProduct(GeneProduct geneProduct)
GeneProduct to the listOfGeneProducts.
The listOfGeneProducts is initialized if necessary.
geneProduct - the element to add to the listtrue (as specified by Collection.add(E))Collection.add(Object)public boolean addObjective(Objective objective)
Objective to the listOfObjectives.
The listOfObjectives is initialized if necessary.
objective - the element to add to the listtrue (as specified by Collection.add(E))public FBCModelPlugin clone()
clone in interface SBasePluginclone in class AbstractSBasePlugin@Deprecated public FluxBound createFluxBound()
FluxBound element and adds it to the listOfFluxBounds list.FluxBound element@Deprecated public FluxBound createFluxBound(String id)
FluxBound element and adds it to the ListOfFluxBounds listid - the idFluxBound elementpublic GeneProduct createGeneProduct()
GeneProduct element and adds it to the ListOfGeneProducts list.GeneProduct elementpublic GeneProduct createGeneProduct(String id)
GeneProduct element and adds it to the listOfGeneProducts list.id - the idGeneProduct element.public Objective createObjective()
Objective element and adds it to the
listOfObjectives.Objective element or null if the
operation fails.createObjective(String)public Objective createObjective(String id)
Objective element and adds it to the
listOfObjectives.id - the identifier for the Objective of type SId, can be
null.Objective element or null if the
operation fails.createObjective(String, Objective.Type)public Objective createObjective(String id, Objective.Type type)
Objective element and adds it to the
listOfObjectives.id - the identifier for the Objective of type SId, can be
null.type - the type of the Objective, i.e., maximize or minimize.Objective element or null if the
operation fails.createObjective(String, String, Objective.Type)public Objective createObjective(String id, String name, Objective.Type type)
Objective element and adds it to the
listOfObjectives.public String getActiveObjective()
activeObjective.
If the activeObjective is not defined, an empty String is returned.
activeObjective or "".public Objective getActiveObjectiveInstance()
public boolean getAllowsChildren()
public TreeNode getChildAt(int index)
public int getChildCount()
@Deprecated public FluxBound getFluxBound(int i)
i - the index where to get the FluxBoundIndexOutOfBoundsException - if the index is out of bound (index < 0 || index > list.size)@Deprecated public int getFluxBoundCount()
FluxBound in this FBCModelPlugin.FluxBound in this FBCModelPlugin.public GeneProduct getGeneProduct(int i)
listOfGeneProducts at the given index.i - the index of the GeneProduct element to get.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public GeneProduct getGeneProduct(String geneProductId)
geneProductId - the id of the GeneProduct element to get.null.public int getGeneProductCount()
GeneProducts in this FBCModelPlugin.GeneProducts in this FBCModelPlugin.@Deprecated public ListOf<FluxBound> getListOfFluxBounds()
public ListOf<GeneProduct> getListOfGeneProducts()
listOfGeneProducts. Creates it if it is not already existing.listOfGeneProducts.public ListOfObjectives getListOfObjectives()
listOfObjectives. Creates it if it is not already
existing.@Deprecated public int getNumFluxBound()
FluxBound in this FBCModelPlugin.FluxBound in this FBCModelPlugin.getFluxBoundCount()public int getNumGeneProducts()
GeneProducts in this FBCModelPlugin.GeneProducts in this FBCModelPlugin.getGeneProductCount()public int getNumObjective()
Objectives in this FBCModelPlugin.Objectives in this FBCModelPlugin.getObjectiveCount()public Objective getObjective(int i)
i - the index where to get the ObjectiveIndexOutOfBoundsException - if the index is out of bound (index < 0 || index > list.size)public int getObjectiveCount()
Objective in this FBCModelPlugin.Objective in this FBCModelPlugin.public Model getParent()
getParent in interface TreeNodegetParent in class AbstractTreeNodepublic Model getParentSBMLObject()
getParentSBMLObject in interface SBasePlugingetParentSBMLObject in class AbstractSBasePluginpublic boolean isSetActiveObjective()
@Deprecated public boolean isSetListOfFluxBounds()
true if listOfFluxBounds contains at least one element.true if listOfFluxBounds contains at least one element,
otherwise falsepublic boolean isSetListOfGeneProducts()
true if listOfGeneProducts contains at least one element.true if listOfGeneProducts contains at least one element,
otherwise false.public boolean isSetListOfObjectives()
true if listOfObjectives is not null.true if listOfObjectives is not null,
otherwise falsepublic boolean isSetStrict()
strict is set.strict is set.@Deprecated public boolean removeFluxBound(FluxBound fluxBound)
fluxBound - the element to be removed from the listtrue if the list contained the specified elementList.remove(Object)@Deprecated public void removeFluxBound(int i)
i - the index where to remove the FluxBoundIndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public boolean removeGeneProduct(GeneProduct geneProduct)
listOfGeneProducts.geneProduct - the element to be removed from the list.true if the list contained the specified element and it was removed.List.remove(Object)public GeneProduct removeGeneProduct(int i)
i - the index where to remove the GeneProduct.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public GeneProduct removeGeneProduct(String geneProductId)
listOfGeneProducts.geneProductId - the id of the element to be removed from the list.null.public void removeObjective(int i)
i - the index where to remove the ObjectiveIndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public boolean removeObjective(Objective objective)
objective - the element to be removed from the listtrue if the list contained the specified elementList.remove(Object)public void setActiveObjective(Objective objective)
objective - public void setActiveObjective(String activeObjective)
activeObjective - @Deprecated public void setListOfFluxBounds(ListOf<FluxBound> listOfFluxBounds)
ListOf<FluxBound>. If listOfFluxBounds was defined before and contained some elements, they are all unset.
listOfFluxBounds - public void setListOfGeneProducts(ListOf<GeneProduct> listOfGeneProducts)
ListOf<GeneProduct>. If listOfGeneProducts
was defined before and contains some elements, they are all unset.listOfGeneProducts - public void setListOfObjectives(ListOf<Objective> listOfObjectives)
ListOf<Objective>.
If the given list is an instance of ListOfObjectives, a call of
this method is identical to directly calling
setListOfObjectives(ListOfObjectives).
Otherwise, a new ListOfObjectives will be created from the given
ListOf.
Note that in the second case there is no active objective defined.
listOfObjectives - public void setListOfObjectives(ListOfObjectives listOfObjectives)
ListOfObjectives. If listOfObjectives was defined before and contained some elements, they are all unset.
listOfObjectives - public void setNotesKeyToUserObject(String key)
key - public void setStrict(boolean strict)
strict - the value of strict to be set.@Deprecated public boolean unsetListOfFluxBounds()
true if listOfFluxBounds contain at least one
element, otherwise falsepublic boolean unsetListOfGeneProducts()
true if listOfGeneProducts contains at least one element,
otherwise false.public boolean unsetListOfObjectives()
true if listOfObjectives contain at least one element,
otherwise falsetrue if listOfObjectives contain at least one element,
otherwise falsepublic boolean unsetStrict()
true if strict was set before, otherwise false.public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginCopyright © 2009–2018. All rights reserved.