public abstract class LogicalOperator extends AbstractSBase implements Association
Is is only ever instantiated as one of its subclasses: And and Or.
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
LogicalOperator()
Creates a new
LogicalOperator instance. |
LogicalOperator(int level,
int version)
Creates a new
LogicalOperator instance. |
LogicalOperator(LogicalOperator association)
Creates a new
LogicalOperator instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllAssociations(List<Association> listOfAssociations)
Sets the given
ListOf<Association>. |
boolean |
addAssociation(Association association)
Adds a new
Association to the listOfAssociations. |
void |
addChild(Association child)
Identical to calling
addAssociation(Association). |
abstract LogicalOperator |
clone() |
And |
createAnd()
Creates a new
Association element and adds it to the
listOfAssociations list. |
GeneProductRef |
createGeneProductRef()
Creates a new Association element and adds it to the
listOfAssociations list. |
GeneProductRef |
createGeneProductRef(String id)
Creates a new
Association element and adds it to the
listOfAssociations list. |
Or |
createOr()
Creates a new
Association element and adds it to the
listOfAssociations list. |
boolean |
getAllowsChildren() |
Association |
getAssociation(int i)
Gets an element from the
listOfAssociations at the given index. |
int |
getAssociationCount()
Returns the number of
Associations in this LogicalOperator. |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
List<Association> |
getListOfAssociations()
Returns the
listOfAssociations. |
int |
getNumAssociations()
Returns the number of
Associations in this LogicalOperator. |
boolean |
isSetListOfAssociations()
Returns
true if listOfAssociations contains at least one element. |
boolean |
removeAllAssociations()
|
boolean |
removeAssociation(Association association)
Removes an element from the
listOfAssociations. |
Association |
removeAssociation(int i)
Removes an element from the listOfAssociations at the given index.
|
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributesaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTreeNodeChangeListener, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributesaddAllChangeListeners, 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 LogicalOperator()
LogicalOperator instance.public LogicalOperator(int level,
int version)
LogicalOperator instance.level - the SBML levelversion - the SBML versionpublic LogicalOperator(LogicalOperator association)
LogicalOperator instance.association - the instance to clonepublic void addAllAssociations(List<Association> listOfAssociations)
ListOf<Association>. If listOfAssociations
was defined before and contains some elements, they are all unset.listOfAssociations - the list of Associations to addpublic boolean addAssociation(Association association)
Association to the listOfAssociations.
The listOfAssociations is initialized if necessary.
association - the element to add to the listtrue (as specified by Collection.add(E))Collection.add(Object)public void addChild(Association child)
addAssociation(Association).child - the association to addaddAssociation(Association)public abstract LogicalOperator clone()
clone in interface SBaseclone in class AbstractSBasepublic And createAnd()
Association element and adds it to the
listOfAssociations list.Association element, which is the last
element in the listOfAssociations.public GeneProductRef createGeneProductRef()
listOfAssociations list.listOfAssociationspublic GeneProductRef createGeneProductRef(String id)
Association element and adds it to the
listOfAssociations list.id - the identifier that is to be applied to the new element.Association element, which is the last
element in the listOfAssociations.public Or createOr()
Association element and adds it to the
listOfAssociations list.Association element, which is the last
element in the listOfAssociations.public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class AbstractSBasepublic Association getAssociation(int i)
listOfAssociations at the given index.i - the index of the Association element to get.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public int getAssociationCount()
Associations in this LogicalOperator.Associations in this LogicalOperator.public TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic List<Association> getListOfAssociations()
listOfAssociations. Creates it if it does not already exist.listOfAssociations.public int getNumAssociations()
Associations in this LogicalOperator.Associations in this LogicalOperator.getAssociationCount()public boolean isSetListOfAssociations()
true if listOfAssociations contains at least one element.true if listOfAssociations contains at least one element,
otherwise false.public boolean removeAllAssociations()
true if listOfAssociations contains at least one
element,
otherwise false.public boolean removeAssociation(Association association)
listOfAssociations.association - the element to be removed from the list.true if the list contained the specified element and it was removed.List.remove(Object)public Association removeAssociation(int i)
i - the index where to remove the Association.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).Copyright © 2009–2020. All rights reserved.