public class FBCModelPlugin extends AbstractSBasePlugin
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 ObjectiveextendedSBase, packageVersionlistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
FBCModelPlugin(FBCModelPlugin obj)
Clone constructor
|
FBCModelPlugin(Model model) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFluxBound(FluxBound fluxBound)
Adds a new
FluxBound to the listOfFluxBounds. |
boolean |
addObjective(Objective objective)
Adds a new
Objective to the listOfObjectives. |
FBCModelPlugin |
clone() |
FluxBound |
createFluxBound()
Creates a new FluxBound element and adds it to the ListOfFluxBounds list
|
FluxBound |
createFluxBound(String id)
Creates a new
FluxBound element and adds it to the ListOfFluxBounds list |
Objective |
createObjective()
Creates a new Objective element and adds it to the ListOfObjectives list
|
Objective |
createObjective(String id)
Creates a new
Objective element and adds it to the ListOfObjectives list |
String |
getActiveObjective()
Gets the
activeObjective. |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
String |
getElementNamespace() |
FluxBound |
getFluxBound(int i)
Gets an element from the listOfFluxBounds at the given index.
|
int |
getFluxBoundCount()
Return the number of
FluxBound in this FBCModelPlugin. |
ListOf<FluxBound> |
getListOfFluxBounds()
Returns the listOfFluxBounds.
|
ListOfObjectives |
getListOfObjectives()
Returns the
listOfObjectives. |
int |
getNumFluxBound()
Return the number of
FluxBound in this FBCModelPlugin. |
int |
getNumObjective()
Return the number of
FluxBound 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. |
String |
getPackageName() |
Model |
getParent() |
Model |
getParentSBMLObject() |
String |
getPrefix() |
String |
getURI() |
boolean |
isSetListOfFluxBounds()
Returns
true if listOfFluxBounds contains at least one element. |
boolean |
isSetListOfObjectives()
Returns
true if listOfObjectives is not null. |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
boolean |
removeFluxBound(FluxBound fluxBound)
Removes an element from the listOfFluxBounds.
|
void |
removeFluxBound(int i)
Removes an element from the listOfFluxBounds at the given index.
|
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)
Sets the given
ListOf<FluxBound>. |
void |
setListOfObjectives(ListOf<Objective> listOfObjectives)
Sets the given
ListOf<Objective>. |
void |
setListOfObjectives(ListOfObjectives listOfObjectives)
Sets the given
ListOfObjectives. |
void |
setNotesKeyToUserObject(String key) |
boolean |
unsetListOfFluxBounds()
|
boolean |
unsetListOfObjectives()
Returns
true if listOfObjectives contain at least one element,
otherwise false |
Map<String,String> |
writeXMLAttributes() |
equals, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase, removeFromParent, setExtendedSBaseaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, 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 obj)
public FBCModelPlugin(Model model)
model - public String getElementNamespace()
public String getPackageName()
public String getPrefix()
public String getURI()
public Model getParent()
getParent in interface TreeNodegetParent in class AbstractTreeNodepublic Model getParentSBMLObject()
getParentSBMLObject in interface SBasePlugingetParentSBMLObject in class AbstractSBasePluginpublic 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)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)public FBCModelPlugin clone()
clone in interface SBasePluginclone in class AbstractSBasePluginpublic FluxBound createFluxBound()
public FluxBound createFluxBound(String id)
FluxBound element and adds it to the ListOfFluxBounds listFluxBound elementpublic Objective createObjective()
public Objective createObjective(String id)
Objective element and adds it to the ListOfObjectives listObjective elementpublic String getActiveObjective()
activeObjective.
If the activeObjective is not defined, an empty String is returned.
activeObjective or "".public boolean getAllowsChildren()
public TreeNode getChildAt(int index)
public int getChildCount()
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)public int getFluxBoundCount()
FluxBound in this FBCModelPlugin.FluxBound in this FBCModelPlugin.public ListOf<FluxBound> getListOfFluxBounds()
public ListOfObjectives getListOfObjectives()
listOfObjectives. Creates it if it is not already
existing.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 int getNumFluxBound()
FluxBound in this FBCModelPlugin.FluxBound in this FBCModelPlugin.getFluxBoundCount()public int getNumObjective()
FluxBound in this FBCModelPlugin.FluxBound in this FBCModelPlugin.getObjectiveCount()public boolean isSetListOfFluxBounds()
true if listOfFluxBounds contains at least one element.true if listOfFluxBounds contains at least one element,
otherwise falsepublic boolean isSetListOfObjectives()
true if listOfObjectives is not null.true if listOfObjectives is not null,
otherwise falsepublic boolean removeFluxBound(FluxBound fluxBound)
fluxBound - the element to be removed from the listtrue if the list contained the specified elementList#remove(Object)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 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(String activeObjective)
activeObjective - public void setActiveObjective(Objective objective)
objective - public void setListOfFluxBounds(ListOf<FluxBound> listOfFluxBounds)
ListOf<FluxBound>. If listOfFluxBounds was defined before and contained some elements, they are all unset.
listOfFluxBounds - public void setListOfObjectives(ListOfObjectives listOfObjectives)
ListOfObjectives. If listOfObjectives was defined before and contained some elements, they are all unset.
listOfObjectives - 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 boolean unsetListOfFluxBounds()
true if listOfFluxBounds contain at least one
element, otherwise falsepublic boolean unsetListOfObjectives()
true if listOfObjectives contain at least one element,
otherwise falsetrue if listOfObjectives contain at least one element,
otherwise falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginpublic void setNotesKeyToUserObject(String key)
Copyright © 2009–2016. All rights reserved.