java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, Association
, SBase
, TreeNodeWithChangeSupport
public abstract class LogicalOperator extends AbstractSBase implements Association
Is is only ever instantiated as one of its subclasses: And
and Or
.
JSBML_WRONG_SBO_TERM
Constructor | 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 | Description |
---|---|---|
void |
addAllAssociations(java.util.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() |
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
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(java.lang.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
Association s in this LogicalOperator . |
javax.swing.tree.TreeNode |
getChildAt(int index) |
|
int |
getChildCount() |
|
java.util.List<Association> |
getListOfAssociations() |
Returns the
listOfAssociations . |
int |
getNumAssociations() |
Returns the number of
Association s in this LogicalOperator . |
boolean |
isSetListOfAssociations() |
Returns
true if listOfAssociations contains at least one element. |
boolean |
removeAllAssociations() |
|
Association |
removeAssociation(int i) |
Removes an element from the listOfAssociations at the given index.
|
boolean |
removeAssociation(Association association) |
Removes an element from the
listOfAssociations . |
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, 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, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributes
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
addCVTerm, 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, hasExtension, 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, writeXMLAttributes
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
public 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(java.util.List<Association> listOfAssociations)
ListOf<Association>
. If listOfAssociations
was defined before and contains some elements, they are all unset.listOfAssociations
- the list of Association
s 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()
SBase
SBase
with the same
properties
like this one.clone
in interface SBase
clone
in class AbstractSBase
public 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.listOfAssociations
public GeneProductRef createGeneProductRef(java.lang.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 javax.swing.tree.TreeNode
getAllowsChildren
in class AbstractSBase
public Association getAssociation(int i)
listOfAssociations
at the given index.i
- the index of the Association
element to get.java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public int getAssociationCount()
Association
s in this LogicalOperator
.Association
s in this LogicalOperator
.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.List<Association> getListOfAssociations()
listOfAssociations
. Creates it if it does not already exist.listOfAssociations
.public int getNumAssociations()
Association
s in this LogicalOperator
.Association
s 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
.java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).