Package jline.io

Class QN2JSIMG

  • All Implemented Interfaces:

    
    public class QN2JSIMG
    
                        

    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);
    
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      QN2JSIMG()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String writeJSIM(Network model) Writes a Network model to JSIMG format at a temporary location.
      static String writeJSIM(Network model, String outputFileName) Writes a Network model to JSIMG format at the specified location.
      static String writeJSIM(Network model, NetworkStruct sn, String outputFileName) Writes a Network model with a specific structure to JSIMG format.
      static String writeJSIM(Network model, NetworkStruct sn, String outputFileName, SaveHandlers saveHandlers) Core implementation: Writes a Network model to JSIMG format using custom SaveHandlers.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QN2JSIMG

        QN2JSIMG()
    • Method Detail

      • writeJSIM

         static String writeJSIM(Network model)

        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

      • writeJSIM

         static String writeJSIM(Network model, String outputFileName)

        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

      • writeJSIM

         static String writeJSIM(Network model, NetworkStruct sn, String outputFileName)

        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

      • writeJSIM

         static String writeJSIM(Network model, NetworkStruct sn, String outputFileName, SaveHandlers saveHandlers)

        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