public class QualModelPlugin extends AbstractSBasePlugin
QualModelPlugin adds two lists, one for holding
QualitativeSpecies and the other for holding
Transitions.elementNamespace, extendedSBase, packageVersionlistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
QualModelPlugin(Model model)
Creates a new
QualModelPlugin instance |
QualModelPlugin(QualModelPlugin qualitativeModel)
Clone constructor
|
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, 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 QualModelPlugin(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 SBMLDocument getParent()
getParent in interface TreeNodegetParent in class AbstractTreeNodepublic SBMLDocument getParentSBMLObject()
getParentSBMLObject in interface SBasePlugingetParentSBMLObject in class 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 SBasePluginclone in class AbstractSBasePluginpublic boolean getAllowsChildren()
public 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, 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, 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, Compartment c)
public ListOf<QualitativeSpecies> getListOfQualitativeSpecies()
public 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 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(ListOf<QualitativeSpecies> listOfQualitativeSpecies)
QualModelPlugin may contain at most one listOfQualitativeSpecies
which must contain at least on QualitativeSpecies.listOfQualitativeSpecies - public void setListOfTransitions(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 SBasePluginwriteXMLAttributes in class AbstractSBasePluginpublic boolean unsetListOfTransitions()
true is successfulpublic boolean unsetListOfQualitativeSpecies()
true is successfulCopyright © 2009–2017. All rights reserved.