public class FbcExtension extends SBMLExtension
Constructor and Description |
---|
FbcExtension()
Creates a new
FbcExtension instance. |
FbcExtension(FbcExtension orig)
Copy constructor for
FbcExtension . |
Modifier and Type | Method and Description |
---|---|
FbcExtension |
cloneObject()
Creates and returns a deep copy of this
FbcExtension object. |
void |
delete()
Explicitly deletes the underlying native object.
|
static long |
getDefaultLevel()
Returns the default SBML Level used by this libSBML package extension.
|
static long |
getDefaultPackageVersion()
Returns the default version of the SBML Level 3 package implemented
by this libSBML extension.
|
static long |
getDefaultVersion()
Returns the default SBML Version used by this libSBML package extension.
|
long |
getLevel(String uri)
Returns the SBML Level for the given URI of this package.
|
String |
getName()
Returns the name of this SBML Level 3 package ('fbc').
|
static String |
getPackageName()
Returns the nickname of the SBML Level 3 package implemented by
this libSBML extension.
|
long |
getPackageVersion(String uri)
Returns the SBML Level 3 package version for the given URI of this
package.
|
SBMLNamespaces |
getSBMLExtensionNamespaces(String uri)
Returns an
FbcPkgNamespaces object. |
String |
getStringFromTypeCode(int typeCode)
Takes a type code of the &ldquofbc&rdquo package and returns a string
describing the code.
|
String |
getURI(long sbmlLevel,
long sbmlVersion,
long pkgVersion)
Returns a string representing the SBML XML namespace of this
SBML Level 3 package.
|
long |
getVersion(String uri)
Returns the Version within the SBML Level for the given URI of this
package.
|
static String |
getXmlnsL3V1V1()
Returns the XML namespace URI of the SBML Level 3 package
implemented by this libSBML extension.
|
static String |
getXmlnsL3V1V2()
Returns the XML namespace URI of the SBML Level 3 package
implemented by this libSBML extension.
|
getNumOfSBasePlugins, getNumOfSupportedPackageURI, getSupportedPackageURI, isEnabled, isInUse, isSupported, setEnabled
public FbcExtension()
FbcExtension
instance.public FbcExtension(FbcExtension orig)
FbcExtension
.
orig
- the FbcExtension
instance to copy.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 FbcExtension.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 FbcExtension.delete()
themselves.
delete
 in class SBMLExtension
public static String getPackageName()
public static long getDefaultLevel()
public static long getDefaultVersion()
public static long getDefaultPackageVersion()
public static String getXmlnsL3V1V1()
public static String getXmlnsL3V1V2()
public FbcExtension cloneObject()
FbcExtension
object.
cloneObject
 in class SBMLExtension
FbcExtension
object.public String getName()
getName
 in class SBMLExtension
public String getURI(long sbmlLevel, long sbmlVersion, long pkgVersion)
The namespace URI constructed by this method corresponds to the
combination of the Level and Version of SBML, and the Version of the
SBML Level 3 package. (At the time of this writing, the only SBML
Level that supports packages is Level 3, so the value of
sbmlLevel
is necessarily always 3
.)
getURI
 in class SBMLExtension
sbmlLevel
- the level of SBMLsbmlVersion
- the version of SBMLpkgVersion
- the version of package
public long getLevel(String uri)
getLevel
 in class SBMLExtension
uri
- a URI that represents a version of this package.
0
if the
given URI is invalid.public long getVersion(String uri)
getVersion
 in class SBMLExtension
uri
- a URI that represents a version of this package.
0
if the given URI is invalid.public long getPackageVersion(String uri)
getPackageVersion
 in class SBMLExtension
uri
- a URI that represents one of the valid versions of this
package.
0
if the given URI is invalid.public SBMLNamespaces getSBMLExtensionNamespaces(String uri)
FbcPkgNamespaces
object.
getSBMLExtensionNamespaces
 in class SBMLExtension
uri
- a URI that represents one of the valid versions of the
&ldquofbc&rdquo package
uri
, or
null
if the URI is not defined in the &ldquofbc&rdquo package.public String getStringFromTypeCode(int typeCode)
getStringFromTypeCode
 in class SBMLExtension
typeCode
- a libSBML type code defined by the libSBML extension
implementing support for the SBML Level 3 &ldquofbc&rdquo package.
typeCode
.
If the type code is unrecognized for this implementation of the libSBML
&ldquofbc&rdquo package, the string returned will be
'(Unknown SBML Fbc Type)'
.