biouml.model
Interface DiagramImporter

All Known Implementing Classes:
CellMLImporter, GinMLImporter, SbmlImporter

public interface DiagramImporter

General interface to import digaram, for example from SBML or CellML file.


Method Summary
 boolean accept(java.io.File file)
          Returns true if the specified file can be imported.
 void doImport(Module module, java.io.File file, java.lang.String diagramName)
          Imports diagram from the spcified file into the specified module.
 

Method Detail

accept

public boolean accept(java.io.File file)
Returns true if the specified file can be imported.

Parameters:
file - - file with data that will be imported to the diagram

doImport

public void doImport(Module module,
                     java.io.File file,
                     java.lang.String diagramName)
              throws java.lang.Exception
Imports diagram from the spcified file into the specified module.

Parameters:
module - - module where the imported diagram will be located
file - - data file to be impored (for example file with SBML or CellML model)
diagramName - - name of the diagram in the module.
Throws:
java.lang.Exception


Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.