Package jline.solvers.lqns
Class SolverLQNS
java.lang.Object
jline.solvers.Solver
jline.solvers.lqns.SolverLQNS
- Direct Known Subclasses:
LQNS
Solver interface to the LQNS external tool for Layered Queueing Network analysis.
SolverLQNS provides integration with the external LQNS (Layered Queueing Network Solver) command-line tool developed at Carleton University. This solver enables high-performance analysis of complex layered queueing networks through native C++ implementations.
Key LQNS integration capabilities:
- External tool integration via command-line interface
- LQN model serialization to LQNS XML format
- High-performance native solver algorithms
- Result parsing and integration back to LINE
- Support for complex software system models
Requirements: This solver requires the 'lqns' and 'lqsim' command-line tools to be installed and available in the system PATH. Tools can be obtained from: http://www.sce.carleton.ca/rads/lqns/
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEnhanced LayeredNetworkAvgTable with detailed metrics support -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSolverLQNS(LayeredNetwork lqnmodel) SolverLQNS(LayeredNetwork lqnmodel, SolverOptions options) -
Method Summary
Modifier and TypeMethodDescriptionstatic SolverOptionsReturns the default solver options for the LQNS solver.getAvg()final LayeredNetworkAvgTableprotected SolverResultstatic FeatureSetReturns the feature set supported by the LQNS solverGet raw average tables with detailed metrics for nodes and calls.static booleanlistValidMethods(Network model) parseXMLResults(String filename) voidExecutes the solver algorithm to analyze the model.voidrunAnalyzer(SolverOptions options) booleanChecks if this solver supports the given network model.Methods inherited from class jline.solvers.Solver
getName, getOptions, getResults, hasResults, isJavaAvailable, isValidOption, listValidOptions, parseOptions, parseOptions, reset, resetRandomGeneratorSeed, runAnalyzerChecks, setChecks, setOptions
-
Constructor Details
-
SolverLQNS
-
SolverLQNS
-
-
Method Details
-
getFeatureSet
Returns the feature set supported by the LQNS solver- Returns:
- the feature set supported by the LQNS solver
-
isAvailable
public static boolean isAvailable() -
getAvg
-
getAvgTable
-
getEnsembleAvg
-
getStruct
-
listValidMethods
-
listValidMethods
-
parseXMLResults
- Throws:
IOException
-
runAnalyzer
Description copied from class:SolverExecutes the solver algorithm to analyze the model. This abstract method must be implemented by concrete solver classes.- Specified by:
runAnalyzerin classSolver- Throws:
IllegalAccessException- if access to required resources is deniedParserConfigurationException- if XML parsing configuration fails
-
runAnalyzer
public void runAnalyzer(SolverOptions options) throws IllegalAccessException, ParserConfigurationException -
supports
Description copied from class:SolverChecks if this solver supports the given network model. Default implementation returns true; subclasses should override to provide specific feature validation. -
getRawAvgTables
Get raw average tables with detailed metrics for nodes and calls. This method provides more detailed metrics than getAvgTable(), including phase-specific utilization and service times, processor metrics, and call waiting times. Returns two tables aligned with MATLAB's getRawAvgTables: - NodeAvgTable: Node, NodeType, Utilization, Phase1Utilization, Phase2Utilization, Phase1ServiceTime, Phase2ServiceTime, Throughput, ProcWaiting, ProcUtilization - CallAvgTable: SourceNode, TargetNode, Type, Waiting- Returns:
- Array containing [NodeAvgTable, CallAvgTable] with detailed metrics
-
defaultOptions
Returns the default solver options for the LQNS solver.- Returns:
- Default solver options with SolverType.LQNS
-