Package jline.io

Class QN2JSIMG

java.lang.Object
jline.io.QN2JSIMG

public class QN2JSIMG extends Object
Writes a LINE Network model to JMT JSIMG format.

This class provides static utility methods for exporting queueing network models to JMT's JSIM graphical format (.jsimg files). The JSIMG format is compatible with JMT's simulation and analysis tools.

Example usage:

 Network model = new Network("example");
 // ... define model ...
 String filename = QN2JSIMG.writeJSIM(model);
 
See Also:
  • Constructor Details

    • QN2JSIMG

      public QN2JSIMG()
  • Method Details

    • writeJSIM

      public static String writeJSIM(Network model) throws ParserConfigurationException
      Writes a Network model to JSIMG format at a temporary location.
      Parameters:
      model - The Network model to export
      Returns:
      Path to the generated JSIMG file
      Throws:
      ParserConfigurationException - if XML parsing fails
    • writeJSIM

      public static String writeJSIM(Network model, String outputFileName) throws ParserConfigurationException
      Writes a Network model to JSIMG format at the specified location.
      Parameters:
      model - The Network model to export
      outputFileName - The output file path (null for temp file)
      Returns:
      Path to the generated JSIMG file
      Throws:
      ParserConfigurationException - if XML parsing fails
    • writeJSIM

      public static String writeJSIM(Network model, NetworkStruct sn, String outputFileName) throws ParserConfigurationException
      Writes a Network model with a specific structure to JSIMG format.
      Parameters:
      model - The Network model to export
      sn - The network structure to use
      outputFileName - The output file path (null for temp file)
      Returns:
      Path to the generated JSIMG file
      Throws:
      ParserConfigurationException - if XML parsing fails
    • writeJSIM

      public static String writeJSIM(Network model, NetworkStruct sn, String outputFileName, SaveHandlers saveHandlers) throws ParserConfigurationException
      Core implementation: Writes a Network model to JSIMG format using custom SaveHandlers.
      Parameters:
      model - The Network model to export
      sn - The network structure to use
      outputFileName - The output file path (null for temp file)
      saveHandlers - The SaveHandlers instance to use for XML generation
      Returns:
      Path to the generated JSIMG file
      Throws:
      ParserConfigurationException - if XML parsing fails