Interface IModelCodec


  • public interface IModelCodec
    Codec for reading/writing model files.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CODEC_TYPE_BDI
      BDI agent model codec.
      static java.lang.String CODEC_TYPE_GPMN
      GPMN intermediate model codec.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.mxgraph.model.mxIGraphModel readModel​(java.io.File file)
      Loads the model from a file.
      void writeModel​(java.io.File file, com.mxgraph.view.mxGraph graph)
      Writes the model to a file.
    • Field Detail

      • CODEC_TYPE_GPMN

        static final java.lang.String CODEC_TYPE_GPMN
        GPMN intermediate model codec.
        See Also:
        Constant Field Values
      • CODEC_TYPE_BDI

        static final java.lang.String CODEC_TYPE_BDI
        BDI agent model codec.
        See Also:
        Constant Field Values
    • Method Detail

      • writeModel

        void writeModel​(java.io.File file,
                        com.mxgraph.view.mxGraph graph)
                 throws java.io.IOException
        Writes the model to a file.
        Parameters:
        file - The target file.
        graph - The visual graph.
        model - The GPMN intermediate model.
        Throws:
        java.io.IOException
      • readModel

        com.mxgraph.model.mxIGraphModel readModel​(java.io.File file)
                                           throws java.lang.Exception
        Loads the model from a file.
        Parameters:
        file - The model file.
        graph - The visual graph.
        Throws:
        java.lang.Exception