In[96]:=

newModel[id→ "example_Of_Compartment_Type", name→ "Example of -compartmentType in the Model Builder", <br />level→ 2, version→ 2] ;

addCompartmentType[typea, metaid→ "_type_a"] ;

addCompartmentType[typeb, metaid→ "_type_b"] ;

addCompartment["cell", compartmentType→ "typea"] ;

addCompartment["nucleus", compartmentType→ "typeb"] ;

In[101]:=

XMLOut/@getCompartmentTypes[]

Out[101]=

{<compartmentType id=\"typea\" metaid=\"_type_a\"/>, <compartmentType id=\"typeb\" metaid=\"_type_b\"/>}

In[102]:=

modifyCompartmentType[typea, metaid→ "_a_cell_"] ;

modifyCompartmentType[typeb, metaid→ "_a_cellular_nucleus"] ;

In[104]:=

getCompartmentType[2]

Out[104]=

XMLElement[compartmentType, {id→typeb, metaid→_a_cellular_nucleus}, {}]

In[105]:=

getCompartment[1]

Out[105]=

XMLElement[compartment, {id→cell, name→cell, spatialDimensions→3, units→volume, compartmentType→typea}, {}]

In[106]:=

getCompartment[2]//XMLOut

Out[106]=

<compartment id=\"nucleus\" name=\"nucleus\" spatialDimensions=\"3\" units=\"volume\" compartmentType=\"typeb\"/>

In[107]:=

getCompartment["cell"]//XMLOut

Out[107]=

<compartment id=\"cell\" name=\"cell\" spatialDimensions=\"3\" units=\"volume\" compartmentType=\"typea\"/>

In[108]:=

createModel[]

Out[108]=

In[109]:=

loadSimulator[verbose→ True] ;

File Name:Internal Model<br />SBML Level 2 Version 2

Function Definitions

----- None -----

Unit Definitions (Excluding Built-in Units)

----- None -----

CompartmentTypes

ID MetaID Name
typea —a—cell— ···
typeb —a—cellular—nucleus ···

SpeciesTypes

----- None -----

Compartments

ID MetaID Name CompartmentType Dimension Size Units Derived Units Outside Constant
cell ··· cell typea 3 ··· volume litre ··· True
nucleus ··· nucleus typeb 3 ··· volume litre ··· True

Species

----- None -----

Global Parameters

----- None -----

Initial Assignments

----- None -----

Rules

----- None -----

Constraints

----- None -----

Reactions

----- None -----

Events

----- None -----


Created by Mathematica  (September 25, 2006) Valid XHTML 1.1!