Package jline.io
Class QN2JSIMG
-
- All Implemented Interfaces:
public class QN2JSIMGWrites 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);
-
-
Constructor Summary
Constructors Constructor Description QN2JSIMG()
-
Method Summary
Modifier and Type Method Description static StringwriteJSIM(Network model)Writes a Network model to JSIMG format at a temporary location. static StringwriteJSIM(Network model, String outputFileName)Writes a Network model to JSIMG format at the specified location. static StringwriteJSIM(Network model, NetworkStruct sn, String outputFileName)Writes a Network model with a specific structure to JSIMG format. static StringwriteJSIM(Network model, NetworkStruct sn, String outputFileName, SaveHandlers saveHandlers)Core implementation: Writes a Network model to JSIMG format using custom SaveHandlers. -
-
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 exportoutputFileName- 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 exportsn- The network structure to useoutputFileName- 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 exportsn- The network structure to useoutputFileName- The output file path (null for temp file)saveHandlers- The SaveHandlers instance to use for XML generation- Returns:
Path to the generated JSIMG file
-
-
-
-