org.sbml.jsbml.ext.multi
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.
Modifier and Type | Field and Description |
---|---|
private ListOf<Bond> |
listOfBonds |
private ListOf<SpeciesTypeState> |
listOfSpeciesTypeStates |
private ListOf<BindingSiteReference> |
listOfUnboundBindingSites |
private static long |
serialVersionUID
Generated serial version identifier.
|
ignoredExtensions, ignoredXMLElements
listOfListeners, 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()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
Bond |
createBond()
|
SpeciesTypeState |
createSpeciesTypeState()
Creates a new
SpeciesTypeState inside this Selector and returns it. |
SpeciesTypeState |
createSpeciesTypeState(java.lang.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(java.lang.String id)
Gets the
Bond that has the given id. |
javax.swing.tree.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(java.lang.String id)
Gets the
SpeciesTypeState that has the given id. |
BindingSiteReference |
getUnboundBindingSite(int i)
Gets the ith unbound binding site (
BindingSiteReference ). |
BindingSiteReference |
getUnboundBindingSite(java.lang.String id)
Gets the unbound binding site
BindingSiteReference that has the given speciesTypeState id. |
void |
initDefaults() |
boolean |
isIdMandatory()
This method can be used to query if the identifier of this
NamedSBase is required to be defined (i.e., not null )
in the definition of SBML. |
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
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
equals, getId, getName, hashCode, isSetId, isSetName, isValidId, readAttribute, setId, setName, toString, unsetId, unsetName
addCVTerm, 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, unsetSBOTerm
addAllChangeListeners, 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, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, isSetId, isSetName, setId, setName, unsetId, unsetName
addCVTerm, 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, unsetSBOTerm
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
private ListOf<SpeciesTypeState> listOfSpeciesTypeStates
private ListOf<BindingSiteReference> listOfUnboundBindingSites
public Selector()
public Selector(Selector selector)
selector
- public Selector clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class AbstractSBase
public boolean isIdMandatory()
NamedSBase
NamedSBase
is required to be defined (i.e., not null
)
in the definition of SBML.isIdMandatory
in interface NamedSBase
true
if the identifier of this element must be set in
order to create a valid SBML representation. false
otherwise, i.e., if the identifier can be understood as an optional
attribute.public 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(java.lang.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
- SpeciesTypeState
java.lang.IndexOutOfBoundsException
- if the index is invalid.public SpeciesTypeState getSpeciesTypeState(java.lang.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 void addBond(Bond bond)
bond
- the Bond to addpublic Bond getBond(int i)
Bond
.i
- Bond
java.lang.IndexOutOfBoundsException
- 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.id
- the id of the new element to createBindingSiteReference
object createdpublic BindingSiteReference getUnboundBindingSite(int i)
BindingSiteReference
).i
- BindingSiteReference
java.lang.IndexOutOfBoundsException
- if the index is invalid.public BindingSiteReference getUnboundBindingSite(java.lang.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 javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSBase
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBase
SBase
that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractNamedSBase
Map
containing the XML attributes of this object.