Package jline.io
Class QN2JSIMG
java.lang.Object
jline.io.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);
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringWrites a Network model to JSIMG format at a temporary location.static StringWrites 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.
-
Constructor Details
-
QN2JSIMG
public QN2JSIMG()
-
-
Method Details
-
writeJSIM
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 exportoutputFileName- 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 exportsn- The network structure to useoutputFileName- 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 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
- Throws:
ParserConfigurationException- if XML parsing fails
-