SBW JavaScript host object

Top   Previous   Next

SBW plug-in allows customer to explore available SBW modules, their services and methods.

SBW host object provides tight integration between SBW and BioUML JavaScript. Customer can write sophisticated scripts for analyses and simulation of SBML models.

 

sbw host object functions

 

· help � prints description of the specified SBW object.

     Example:

        sbw.help(�BROKER�);

 

· list � prints list of all subelements for the specified SBW object, for example code below will print list of all methods for NOM service:

     Example:

        sbw.list("e;edu.caltech.NOM/NOM"e;);

   

· getService � returns service object for the specified SBW object. Getting service instance you can invoke any service method according to its SBW signature string.

     Example:

               nom = sbw.getService("e;edu.caltech.NOM/NOM"e;); 

    descr = nom.getBuiltinFunctionInfo("e;usir"e;)[0];

 

· loadModel � load SBML model with the given name from the specified BioUML module or file. To read SBML model as String for further analyses there is read method.

     Example of load model from the repository:

               model = sbw.loadModel("e;SBML model reposytory"e;,  // module name

                          "e;CellCycle-1991Gol.xml"e;); // model name 

           nom.loadModel( model.read() );

 

     Example of load of model from file:

               model = sbw.loadModel("e;file"e;,             // should be "e;file"e; 

                          "e;c:/my_model.xml"e;); // model file name