public class CompModelPlugin extends CompSBasePlugin
Constructor and Description |
---|
CompModelPlugin(CompModelPlugin orig)   |
CompModelPlugin(String uri,
String prefix,
CompPkgNamespaces compns)   |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptComp(SWIGTYPE_p_CompVisitor v)   |
int |
addPort(Port port)   |
int |
addSubmodel(Submodel submodel)   |
SBasePlugin |
cloneObject()
Creates and returns a deep copy of this
SBasePlugin object. |
void |
connectToChild()   |
SBase |
createObject(XMLInputStream stream)   |
Port |
createPort()   |
Submodel |
createSubmodel()   |
void |
delete()
Explicitly deletes the underlying native object.
|
String |
getDivider()   |
SBase |
getElementByMetaId(String metaid)
Returns the first child element it can find with the given
metaid , or null if no such object is found. |
SBase |
getElementBySId(String id)
Returns the first child element found that has the given
id in the model-wide SId namespace, or null if no such object is found. |
ListOfPorts |
getListOfPorts()   |
ListOfSubmodels |
getListOfSubmodels()   |
long |
getNumPorts()   |
long |
getNumSubmodels()   |
Port |
getPort(long n)   |
Port |
getPort(String id)   |
Submodel |
getSubmodel(long n)   |
Submodel |
getSubmodel(String id)   |
Port |
removePort(long index)   |
Submodel |
removeSubmodel(long index)   |
int |
setDivider(String divider)   |
addReplacedElement, clearReplacedElements, createReplacedBy, createReplacedElement, getListOfReplacedElements, getNumReplacedElements, getReplacedBy, getReplacedElement, isSetReplacedBy, logInvalidId, removeReplacedElement, setReplacedBy, unsetReplacedBy
getElementNamespace, getLevel, getListOfAllElements, getPackageName, getPackageVersion, getParentSBMLObject, getPrefix, getSBMLDocument, getURI, getVersion, setElementNamespace
public CompModelPlugin(CompModelPlugin orig)
public CompModelPlugin(String uri, String prefix, CompPkgNamespaces compns)
public boolean acceptComp(SWIGTYPE_p_CompVisitor v)
acceptComp
 in class CompSBasePlugin
public int addSubmodel(Submodel submodel)
public SBasePlugin cloneObject()
SBasePlugin
object.
cloneObject
 in class CompSBasePlugin
SBase
objectpublic void connectToChild()
connectToChild
 in class CompSBasePlugin
public SBase createObject(XMLInputStream stream)
createObject
 in class CompSBasePlugin
public Port createPort()
public Submodel createSubmodel()
public void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize()
methods for the objects. The finalize()
methods in turn call the CompModelPlugin.delete()
method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke CompModelPlugin.delete()
themselves.
delete
 in class CompSBasePlugin
public String getDivider()
public SBase getElementByMetaId(String metaid)
metaid
, or null
if no such object is found.
getElementByMetaId
 in class CompSBasePlugin
metaid
- string representing the metaid of objects to find
metaid
.public SBase getElementBySId(String id)
id
in the model-wide SId namespace, or null
if no such object is found.
getElementBySId
 in class CompSBasePlugin
id
- string representing the id of objects to find
id
.public ListOfPorts getListOfPorts()
public ListOfSubmodels getListOfSubmodels()
public long getNumPorts()
public long getNumSubmodels()
public Submodel getSubmodel(long n)
public Submodel getSubmodel(String id)
public Port removePort(long index)
public Submodel removeSubmodel(long index)
public int setDivider(String divider)