public class Selector extends AbstractNamedSBase implements UniqueNamedSBase
A selector can be reused in various places of a model, to restrict the application of a procedure to a certain set of topologies and states. Selectors can be used to refine the initial conditions of a species, for instance to specify the initial distribution of different states and topologies. They can also be used in a reaction to decide if a this reaction happens, or to modulate its velocity, in function of the state or topology of a reactant.
A selector defines the list of components composing the mask, that are species type existing under a given state (that can be an ensemble of elementary states). In addition to the components, the selector lists the possible or mandatory bonds, as well as the components that must not be bound. It is to be noted that a selector must not necessarily be the most parsimonious. One can use the selectors to describe the fine-grained topology of complexes, even if this topology is not used to decide upon particular reactions.
ignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Modifier and Type | Method and Description |
|---|---|
void |
addBond(Bond bond)
Adds a Bond.
|
void |
addSpeciesTypeState(SpeciesTypeState speciesTypeState)
Adds a SpeciesTypeState.
|
void |
addUnboundBindingSite(BindingSiteReference unboundBindingSite)
Adds an unboundBindingSite.
|
Selector |
clone() |
Bond |
createBond()
|
SpeciesTypeState |
createSpeciesTypeState()
Creates a new
SpeciesTypeState inside this Selector and returns it. |
SpeciesTypeState |
createSpeciesTypeState(String id)
Creates a new
SpeciesTypeState inside this Selector and returns it. |
BindingSiteReference |
createUnboundBindingSite()
Creates a new
BindingSiteReference inside this Selector list
of unbound binding site and returns it. |
Bond |
getBond(int i)
Gets the ith
Bond. |
Bond |
getBond(String id)
Gets the
Bond that has the given id. |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
ListOf<Bond> |
getListOfBonds()
Returns the listOfBonds
|
ListOf<SpeciesTypeState> |
getListOfSpeciesTypeStates()
Returns the listOfSpeciesTypeStates
|
ListOf<BindingSiteReference> |
getListOfUnboundBindingSites()
Returns the listOfUnboundBindingSites
|
SpeciesTypeState |
getSpeciesTypeState(int i)
Gets the ith
SpeciesTypeState. |
SpeciesTypeState |
getSpeciesTypeState(String id)
Gets the
SpeciesTypeState that has the given id. |
BindingSiteReference |
getUnboundBindingSite(int i)
Gets the ith unbound binding site (
BindingSiteReference). |
BindingSiteReference |
getUnboundBindingSite(String id)
Gets the unbound binding site
BindingSiteReference that has the given speciesTypeState id. |
void |
initDefaults() |
boolean |
isIdMandatory() |
boolean |
isSetListOfBonds()
Returns
true if the listOfBond is set. |
boolean |
isSetListOfSpeciesTypeStates()
Returns
true if the listOfSpeciesTypeState is set. |
boolean |
isSetListOfUnboundBindingSites()
Returns
true if the listOfUnBoundBindingSite is set. |
boolean |
unsetListOfBonds()
Sets the
listOfBonds to null. |
boolean |
unsetListOfSpeciesTypeStates()
Sets the listOfSpeciesTypeStates to null
|
boolean |
unsetListOfUnboundBindingSites()
Sets the listOfUnboundBindingSites to null
|
Map<String,String> |
writeXMLAttributes() |
equals, getId, getName, hashCode, isSetId, isSetName, isValidId, readAttribute, setId, setName, toString, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic Selector()
public Selector(Selector selector)
selector - public Selector clone()
clone in interface SBaseclone in class AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBasepublic ListOf<SpeciesTypeState> getListOfSpeciesTypeStates()
public void addSpeciesTypeState(SpeciesTypeState speciesTypeState)
speciesTypeState - the SpeciesTypeState to addpublic SpeciesTypeState createSpeciesTypeState()
SpeciesTypeState inside this Selector and returns it.
SpeciesTypeState object created
addSpeciesTypeState(SpeciesTypeState r)public SpeciesTypeState createSpeciesTypeState(String id)
SpeciesTypeState inside this Selector and returns it.id - the id of the new element to createSpeciesTypeState object createdpublic SpeciesTypeState getSpeciesTypeState(int i)
SpeciesTypeState.i - SpeciesTypeStateIndexOutOfBoundsException - if the index is invalid.public SpeciesTypeState getSpeciesTypeState(String id)
SpeciesTypeState that has the given id.id - SpeciesTypeState that has the given id or null if
no SpeciesTypeState are found that match id.public boolean isSetListOfSpeciesTypeStates()
true if the listOfSpeciesTypeState is set.true if the listOfSpeciesTypeState is set.public boolean unsetListOfSpeciesTypeStates()
true is successfulpublic ListOf<Bond> getListOfBonds()
public void addBond(Bond bond)
bond - the Bond to addpublic Bond getBond(int i)
Bond.i - BondIndexOutOfBoundsException - if the index is invalid.public boolean isSetListOfBonds()
true if the listOfBond is set.true if the listOfBond is set.public boolean unsetListOfBonds()
listOfBonds to null.true is successfulpublic ListOf<BindingSiteReference> getListOfUnboundBindingSites()
public void addUnboundBindingSite(BindingSiteReference unboundBindingSite)
unboundBindingSite - the UnboundBindingSite to addpublic BindingSiteReference createUnboundBindingSite()
BindingSiteReference inside this Selector list
of unbound binding site and returns it.BindingSiteReference object createdpublic BindingSiteReference getUnboundBindingSite(int i)
BindingSiteReference).i - BindingSiteReferenceIndexOutOfBoundsException - if the index is invalid.public BindingSiteReference getUnboundBindingSite(String id)
BindingSiteReference that has the given speciesTypeState id.id - BindingSiteReference that has the given speciesTypeState id or null if
no BindingSiteReference are found that match id.public boolean isSetListOfUnboundBindingSites()
true if the listOfUnBoundBindingSite is set.true if the listOfUnBoundBindingSite is set.public boolean unsetListOfUnboundBindingSites()
true is successfulpublic void initDefaults()
public TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractNamedSBaseCopyright © 2009–2016. All rights reserved.