Module omix.api
Package omix.plugin

Interface ModelReader


public interface ModelReader
By implementing this interface, a plugin can realize a model reading procedure.
Since:
Omix 1.4.20
Author:
Dr. Peter Droste, Omix Visualization
  • Method Summary

    Modifier and Type Method Description
    void readModel​(Model model, InputUtilities utilities)
    This method is called when the plugin has requested a model reading procedure
    by calling: ApplicationAccessManager.requestOpenDocumentProcedure(ModelReader) or ApplicationAccessManager#requestImportDocumentProcedure(ModelReader) DocumentAccessManager#requestImportDocumentProcedure(ModelReader) The method will run in an extra thread!
  • Method Details

    • readModel

      void readModel​(Model model, InputUtilities utilities) throws IOException
      This method is called when the plugin has requested a model reading procedure
      by calling: The method will run in an extra thread! All user interaction during the model read process have to be wrapped by a ThreadAffineUtility invoke method.
      Parameters:
      model - a writable model for composing the network
      utilities - several input utilities
      Throws:
      IOException - if a error occurs. the exception is caught and the exception message is shown in an error dialog window.