ADVANCED INFORMATION

TECHNOLOGY SOLUTIONS _____

 

Home         Products         Services         Free Quote         Site Map          Advanced Search          Contact .

 

 Strategic Outsourcing             Scientific Solutions              Business Applications           Software Tools .

 

 Talk to a representative > .

Home
Abstract
Quickstart
Presentations
Achitecture
Meta Model
Diagram Markup Language
Extension Points
SBML Support
BioUML Download
Release Notes
Development Roadmap
Cyclonet Project
Team: Systems Modeling
What is SBML?
SBML User Guide
SBML Implemtation Notes
SBML Diagram Layout Extensions
SBML Diagram

In this section:

<< | >>

In this sub-section:

\\

 

Sample GUI's >>>>>

Testimonial Laurent Favre, CEO, AlternativeSoft AG - http://www.alternativesoft.com/

"We have been working with [ITC Software] for more than 2 years now. We started with contract basis work and finally came to ODC which is completely dedicated for our tasks. High team stability, good proficiency and efficient administration support are the factors which bring high value to our collaboration."  ..../more

 

TED Ideas worth spreading.

Inspired talks by the
world's greatest
thinkers and doers >>

 

Climate Change >


> Decision Theory
 

 

 

Framework for Systems Biology

 

SMBL Plug-in


Extensions for Diagram Layout

SBML do not defines standard approach to store diagram layout. For this purpose they suggest to use <annotation> element where tools can store all needed information in they particular format. An example of such tool is JDesigner.

The similar approach was suggested by European Media Laboratory. Moreover, SBML Diagram Working Group was organized to develop a mechanism so that layouts created in one modeling environment can be used in another modeling in a relatively straightforward manner. More information about the group is available on their forum.

Following  to this approach we are storing diagram layout as part of <annotation> element with namespace xmlns:biouml="http://www.biouml.org/ns" using fragments of our Diagram Markup Language.

We are also reusing functions of biouml.model.util.DiagramXmlWriter and DiagramXmlReader to read/write diagram layout for SBML models. 

Further details:

bulletcompartment layout information
bulletnode layout information
bulletedge layout information
bulletimplementation notes
bulletusage example


Compartment layout information

Element <compartmentInfo> is used to store compartment location, size, shape and color.

<compartmentInfo> is part of <annotation> for <compartment> element.

DTD for compartment layout information:

<!ELEMENT compartmentInfo>
<!-- "shape" attribute possible values are: 
 0-rectangle; 1-round rectangle; 2-oval -->
<!ATTLIST compartmentInfo
  kernel                CDATA #REQUIRED
  x                     CDATA #REQUIRED
  y                     CDATA #REQUIRED
  width                 CDATA #REQUIRED
  height                CDATA #REQUIRED
  title                 CDATA 
  shape                 CDATA "0"
  color                 CDATA "255, 255, 255"
>


Node layout information

Element <nodeInfo> is used to store node title and location. <image> element is reserved to store description of image that can be used as node view, this feature is under construction and will be completed in BioUML v. 0.7.2.

<nodeInfo> is part of <annotation> for <specie> and <reaction> SBML elements that are mapped into BioUML nodes.

DTD for node layout information:

<!ELEMENT nodeInfo (image?)>
<!ATTLIST nodeInfo
  title                 CDATA 
  x                     CDATA
  y                     CDATA
>

<!ELEMENT image>
<!ATTLIST image 
  src                   CDATA		#REQUIRED 
  width                 CDATA	
  height                CDATA
  hideTitle             CDATA		"false"
>	 

Element <specieInfo> is used to store specie type and allows SbmlDiagramViewBuilder to generate corresponding node view.

Possible specie type values are: molecule-substance, molecule-gene, molecule-RNA or molecule-protein.

DTD for additional specie information:

<!ELEMENT specieInfo>
<!ATTLIST specieInfo
  type                  CDATA 
>


Edge layout information

Currently element <edgeInfo> is used to store edge title, edge start and end points. Currently this feature is under construction and will be completed in BioUML v. 0.7.2 that will allow application to store complex line path for graph edge.

<edgeInfo> is part of <annotation> for <specieReference> SBML elements that is mapped into BioUML edge diagram element.

DTD for edge layout information:

<!ELEMENT edgeInfo>
<!ATTLIST edgeInfo
  title                 CDATA  
  inPort                CDATA
  outPort               CDATA
>


Implementation notes

Constants for elements and namespaces to diagram layout information are declared at biouml.plugins.sbml.SbmlConstants:

    public static final String BIOUML_XMLNS_ATTR                = "xmlns:biouml";
    public static final String BIOUML_XMLNS_VALUE               = "http://www.biouml.org/ns";
    public static final String BIOUML_COMPARTMENT_INFO_ELEMENT  = "biouml:compartmentInfo";
    public static final String BIOUML_NODE_INFO_ELEMENT         = "biouml:nodeInfo";
    public static final String BIOUML_EDGE_INFO_ELEMENT         = "biouml:edgeInfo";

SbmlDiagramWriter uses methods provided by biouml.model.util.DiagramXmlWriter to write diagram layout information:

  • writeCompartmentInfo - writes compartment location, size, shape and color.

  • writeNodeInfo -  writes node title and location.

  • isEdgeInfoInformative - indicates whether information about edge is informative and should be written.

  • writeEdgeInfo - writes edge title, edge start and end points.

SbmlDiagramReader uses methods provided by biouml.model.util.DiagramXmlReader to read diagram layout information:

  • readCompartmentInfo - reads compartment location, size, shape and color.
  • readNodeInfo -  reads node title and location.
  • readEdgeInfo - reads edge title, edge start and end points.


Usage example

...


[Abstract] [Quickstart] [Presentations] [Achitecture] [Meta Model] [Diagram Markup Language] [Extension Points] [SBML Support] [BioUML Download] [Release Notes] [Development Roadmap] [Cyclonet Project] [Team: Systems Modeling]
 

  Issue Online Request for Proposal .

 
Home    Site Map    FREE Quote    Advanced Search     About us      Meet the Team      Legal    Investors   Contact

© 2002-2008  ITC Software. All rights reserved. This site was last updated on 10/22/2008

Product and company names mentioned herein may be trademarks of their respective owners. info(at)itcsoftware.com
      

web metrics
 


Recommend this page: