public class QualModelPlugin
extends org.sbml.jsbml.ext.AbstractSBasePlugin
QualModelPlugin adds two lists, one for holding
QualitativeSpecies and the other for holding
Transitions.| Constructor and Description |
|---|
QualModelPlugin(org.sbml.jsbml.Model model)
Creates a new
QualModelPlugin instance |
QualModelPlugin(QualModelPlugin qualitativeModel)
Clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addQualitativeSpecies(QualitativeSpecies qualitativeSpecies)
Adds a
QualitativeSpecies to the model. |
boolean |
addSpecies(QualitativeSpecies spec)
Adds a
QualitativeSpecies instance to the listOfSpecies of this Model. |
void |
addTransition(Transition transition) |
QualModelPlugin |
clone() |
boolean |
containsQualitativeSpecies(QualitativeSpecies qs)
|
QualitativeSpecies |
createQualitativeSpecies()
Creates a new
QualitativeSpecies inside this QualModelPlugin and returns it. |
QualitativeSpecies |
createQualitativeSpecies(String id)
Creates a new
QualitativeSpecies inside this QualModelPlugin and returns it. |
QualitativeSpecies |
createQualitativeSpecies(String id,
org.sbml.jsbml.Compartment c)
Creates a new
Species inside this Model and returns it. |
QualitativeSpecies |
createQualitativeSpecies(String id,
org.sbml.jsbml.Compartment compartment,
boolean constant)
Creates a new
QualitativeSpecies inside this QualModelPlugin and returns it. |
QualitativeSpecies |
createQualitativeSpecies(String id,
String compartment,
boolean constant)
Creates a new
QualitativeSpecies inside this QualModelPlugin and returns it. |
QualitativeSpecies |
createQualitativeSpecies(String id,
String metaId,
org.sbml.jsbml.Species species)
Creates a new
QualitativeSpecies, based on an existing Species,
adds it to this QualModelPlugin and returns it. |
Transition |
createTransition()
Creates a new
Transition inside this QualModelPlugin and returns it. |
Transition |
createTransition(String id)
Creates a new
Transition inside this QualModelPlugin and returns it. |
Transition |
createTransition(String id,
Input in,
Output out)
Creates a new
Transition inside this QualModelPlugin and returns it. |
boolean |
getAllowsChildren() |
org.sbml.jsbml.SBase |
getChildAt(int childIndex) |
int |
getChildCount() |
org.sbml.jsbml.ListOf<QualitativeSpecies> |
getListOfQualitativeSpecies() |
org.sbml.jsbml.ListOf<Transition> |
getListOfTransitions() |
org.sbml.jsbml.Model |
getModel()
Returns the
Model |
int |
getNumQualitativeSpecies()
Returns the number of
QualitativeSpecies of this QualModelPlugin. |
int |
getNumTransitions()
Returns the number of
Transition of this QualModelPlugin. |
String |
getPackageName() |
org.sbml.jsbml.SBMLDocument |
getParent() |
org.sbml.jsbml.SBMLDocument |
getParentSBMLObject() |
String |
getPrefix() |
QualitativeSpecies |
getQualitativeSpecies(int i)
Gets the ith
QualitativeSpecies. |
QualitativeSpecies |
getQualitativeSpecies(String id)
Gets the
QualitativeSpecies that has the given id. |
int |
getQualitativeSpeciesCount()
Returns the number of
QualitativeSpecies objects in this QualModelPlugin. |
Transition |
getTransition(int i)
Gets the ith
Transition. |
Transition |
getTransition(String id)
Gets the
Transition that has the given id. |
int |
getTransitionCount()
Returns the number of
Transition objects in this QualModelPlugin. |
String |
getURI() |
boolean |
isSetListOfQualitativeSpecies()
Returns
true if the listOfQualitativeSpecies is set. |
boolean |
isSetListOfTransitions()
Returns
true if the listOfTransitions is set. |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
boolean |
removeQualitativeSpecies(QualitativeSpecies qualitativeSpecies) |
boolean |
removeTransition(Transition transition) |
void |
setListOfQualitativeSpecies(org.sbml.jsbml.ListOf<QualitativeSpecies> listOfQualitativeSpecies)
QualModelPlugin may contain at most one listOfQualitativeSpecies
which must contain at least on QualitativeSpecies. |
void |
setListOfTransitions(org.sbml.jsbml.ListOf<Transition> listOfTransitions)
QualModelPlugin can contain at most one listOfTransitions which must contain
at least one Transition. |
boolean |
unsetListOfQualitativeSpecies() |
boolean |
unsetListOfTransitions() |
Map<String,String> |
writeXMLAttributes() |
equals, 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, 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 QualModelPlugin(org.sbml.jsbml.Model model)
QualModelPlugin instancemodel - the Model to extendspublic QualModelPlugin(QualModelPlugin qualitativeModel)
qualitativeModel - the QualModelPlugin to be clonedpublic String getPackageName()
public String getPrefix()
public String getURI()
public org.sbml.jsbml.SBMLDocument getParent()
public org.sbml.jsbml.SBMLDocument getParentSBMLObject()
getParentSBMLObject in interface org.sbml.jsbml.ext.SBasePlugingetParentSBMLObject in class org.sbml.jsbml.ext.AbstractSBasePluginpublic void addQualitativeSpecies(QualitativeSpecies qualitativeSpecies)
QualitativeSpecies to the model.qualitativeSpecies - the qualitativeSpecies to add.public void addTransition(Transition transition)
transition - public QualModelPlugin clone()
clone in interface org.sbml.jsbml.ext.SBasePluginclone in class org.sbml.jsbml.ext.AbstractSBasePluginpublic boolean getAllowsChildren()
public org.sbml.jsbml.SBase getChildAt(int childIndex)
public int getChildCount()
public Transition createTransition()
Transition inside this QualModelPlugin and returns it.
Transition object created
addTransition(Transition r)public Transition createTransition(String id)
Transition inside this QualModelPlugin and returns it.id - the id of the new element to createTransition object createdpublic Transition createTransition(String id, Input in, Output out)
Transition inside this QualModelPlugin and returns it.id - the id of the new element to createin - out - Transition object createdpublic QualitativeSpecies createQualitativeSpecies()
QualitativeSpecies inside this QualModelPlugin and returns it.
QualitativeSpecies object created
addSpecies(QualitativeSpecies s)public QualitativeSpecies createQualitativeSpecies(String id)
QualitativeSpecies inside this QualModelPlugin and returns it.id - the id of the new element to createQualitativeSpecies object createdpublic QualitativeSpecies createQualitativeSpecies(String id, String compartment, boolean constant)
QualitativeSpecies inside this QualModelPlugin and returns it.id - the id of the new element to createcompartment - constant - QualitativeSpecies object createdpublic QualitativeSpecies createQualitativeSpecies(String id, org.sbml.jsbml.Compartment compartment, boolean constant)
QualitativeSpecies inside this QualModelPlugin and returns it.id - the id of the new element to createcompartment - constant - QualitativeSpecies object createdpublic QualitativeSpecies createQualitativeSpecies(String id, String metaId, org.sbml.jsbml.Species species)
QualitativeSpecies, based on an existing Species,
adds it to this QualModelPlugin and returns it.id - the id of the new element to createmetaId - the metaId of the new element to createspecies - a template to copy fields fromQualitativeSpecies object createdpublic boolean addSpecies(QualitativeSpecies spec)
QualitativeSpecies instance to the listOfSpecies of this Model.spec - true if the QualitativeSpecies was added successfully.public QualitativeSpecies createQualitativeSpecies(String id, org.sbml.jsbml.Compartment c)
Species inside this Model and returns it.id - the id of the new element to createc - the Compartment of the new SpeciesSpecies object createdpublic org.sbml.jsbml.ListOf<QualitativeSpecies> getListOfQualitativeSpecies()
public org.sbml.jsbml.ListOf<Transition> getListOfTransitions()
public boolean removeTransition(Transition transition)
transition - to remove from the listOfTransitionsTRUE if the operation was successfulpublic boolean removeQualitativeSpecies(QualitativeSpecies qualitativeSpecies)
qualitativeSpecies - to remove from the listOfQualitativeSpeciestrue if the operation was successfulpublic org.sbml.jsbml.Model getModel()
ModelModelpublic int getNumQualitativeSpecies()
QualitativeSpecies of this QualModelPlugin.QualitativeSpecies of this QualModelPlugin.getQualitativeSpeciesCount()public int getNumTransitions()
Transition of this QualModelPlugin.Transition of this QualModelPlugin.getTransitionCount()public QualitativeSpecies getQualitativeSpecies(int i)
QualitativeSpecies.i - QualitativeSpeciesIndexOutOfBoundsException - is the index is invalid.public QualitativeSpecies getQualitativeSpecies(String id)
QualitativeSpecies that has the given id.id - QualitativeSpecies that has the given id or null if
no QualitativeSpecies are found that match id.public int getQualitativeSpeciesCount()
QualitativeSpecies objects in this QualModelPlugin.QualitativeSpecies objects in this QualModelPlugin.public boolean containsQualitativeSpecies(QualitativeSpecies qs)
qs - true if qs is already part of this QualModelPluginpublic Transition getTransition(int i)
Transition.i - Transition.IndexOutOfBoundsException - is the index is invalid.public Transition getTransition(String id)
Transition that has the given id.id - Transition that has the given id or null if
no Transition are found that match id.public int getTransitionCount()
Transition objects in this QualModelPlugin.Transition objects in this QualModelPlugin.public boolean isSetListOfQualitativeSpecies()
true if the listOfQualitativeSpecies is set.true if the listOfQualitativeSpecies is set.public boolean isSetListOfTransitions()
true if the listOfTransitions is set.true if the listOfTransitions is set.public void setListOfQualitativeSpecies(org.sbml.jsbml.ListOf<QualitativeSpecies> listOfQualitativeSpecies)
QualModelPlugin may contain at most one listOfQualitativeSpecies
which must contain at least on QualitativeSpecies.listOfQualitativeSpecies - public void setListOfTransitions(org.sbml.jsbml.ListOf<Transition> listOfTransitions)
QualModelPlugin can contain at most one listOfTransitions which must contain
at least one Transition.
slistOfTransitions - public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface org.sbml.jsbml.ext.SBasePluginwriteXMLAttributes in class org.sbml.jsbml.ext.AbstractSBasePluginpublic boolean unsetListOfTransitions()
true is successfulpublic boolean unsetListOfQualitativeSpecies()
true is successfulCopyright © 2009–2016. All rights reserved.