Class PNMLWriter

java.lang.Object
common.xml.PNMLWriter
All Implemented Interfaces:
CommonConstants, PNMLConstants, EngineNodeConstants

public class PNMLWriter extends Object implements PNMLConstants, CommonConstants

Title: PNML Writer

Description: Writes model information to a PNML file. This class provides methods for model export.

Author:
Lulai Zhu Date: 25-01-2017 Time: 12.00.00
  • Field Details

  • Constructor Details

    • PNMLWriter

      public PNMLWriter()
  • Method Details

    • checkModel

      public static int checkModel(CommonModel model)
      Checks if an internal model can be exported to a PNML file
      Parameters:
      model - data structure of the model
      Returns:
      integer indicating the result of the check
    • exportModel

      public static boolean exportModel(File file, CommonModel model) throws Exception
      Exports an internal model to a PNML file
      Parameters:
      file - file that the model is exported to
      model - data structure of the model
      Returns:
      true if the model was exported, false otherwise
      Throws:
      Exception