Class LINE
-
- All Implemented Interfaces:
public class LINE extends SolverAuto
LINE solver - Java/Kotlin implementation equivalent to MATLAB LINE.m
This class serves as an alias for SolverAuto and provides a static factory method for creating solver instances based on the chosen method, matching the MATLAB interface.
Copyright (c) 2012-2025, Imperial College London All rights reserved.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
CANDIDATE_CTMC
public final static int
CANDIDATE_FLUID
public final static int
CANDIDATE_JMT
public final static int
CANDIDATE_MAM
public final static int
CANDIDATE_MVA
public final static int
CANDIDATE_NC
public final static int
CANDIDATE_SSA
public final static String
METHOD_AI
public final static String
METHOD_DEFAULT
public final static String
METHOD_HEURISTIC
public final static String
METHOD_NN
public Network
model
public NetworkStruct
sn
public SolverAvgHandles
avgHandles
public SolverTranHandles
tranHandles
public Model
model
public String
name
public SolverOptions
options
public SolverResult
result
public boolean
enableChecks
public Random
random
-
Method Summary
Modifier and Type Method Description static LINE
create(Network model)
Convenience method - create LINE solver with default settings static LINE
create(Network model, String method)
Convenience method - create LINE solver with method static NetworkSolver
load(String chosenMethod, Network model, Array<Object> varargin)
Static factory method to create and configure a solver based on the chosen method This matches the MATLAB LINE. static Network
load(String filename)
Loads a Network model from a file. static Network
load(String filename, boolean verbose)
Loads a Network model from a file with optional verbose output. -
Methods inherited from class jline.solvers.auto.SolverAuto
getAvg, getAvgArvRChain, getAvgChain, getAvgChainTable, getAvgNode, getAvgNodeTable, getAvgQLenChain, getAvgRespTChain, getAvgSys, getAvgSysRespT, getAvgSysTable, getAvgSysTput, getAvgTable, getAvgTputChain, getAvgUtilChain, getCandidateSolverNames, getCdfRespT, getProb, getProbAggr, getProbNormConstAggr, getProbSys, getProbSysAggr, getSelectedSolverName, getTranAvg, getTranCdfPassT, getTranCdfRespT, getTranProb, getTranProbAggr, getTranProbSys, getTranProbSysAggr, runAnalyzer, sample, sampleAggr, sampleSys, sampleSysAggr, supports
-
Methods inherited from class jline.solvers.NetworkSolver
avg, avg, avg, avgArvR, avgArvRChain, avgArvRHandles, avgChain, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgHandles, avgNode, avgNodeArvRChain, avgNodeChain, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeQLenChain, avgNodeResidTChain, avgNodeRespTChain, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTputChain, avgNodeUtilChain, avgQLen, avgQLenChain, avgQLenHandles, avgResidT, avgResidTChain, avgResidTHandles, avgRespT, avgRespTChain, avgRespTHandles, avgSys, avgSysRespT, avgSysTable, avgSysTable, avgSysTable, avgSysTput, avgTable, avgTable, avgTable, avgTable, avgTable, avgTable, avgTput, avgTputChain, avgTputHandles, avgUtil, avgUtilChain, avgUtilHandles, avgWaitT, cdfPassT, cdfPassT, cdfRespT, cdfRespT, getAllSolvers, getAvg, getAvg, getAvgArvR, getAvgArvRHandles, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgHandles, getAvgNodeArvRChain, getAvgNodeChain, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeQLenChain, getAvgNodeResidTChain, getAvgNodeRespTChain, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTputChain, getAvgNodeUtilChain, getAvgQLen, getAvgQLenHandles, getAvgResidT, getAvgResidTChain, getAvgResidTHandles, getAvgRespT, getAvgRespTHandles, getAvgSys, getAvgSys, getAvgSysTable, getAvgSysTable, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTput, getAvgTputHandles, getAvgUtil, getAvgUtilHandles, getAvgWaitT, getCdfPassT, getCdfPassT, getCdfRespT, getModel, getProb, getProb, getProbAggr, getProbAggr, getProbMarg, getProbMarg, getStageTable, getStageTable, getTranCdfPassT, getTranCdfRespT, getTranHandles, hasAvgResults, hasDistribResults, hasTranResults, initHandles, model, print, prob, prob, probAggr, probAggr, probMarg, probMarg, probNormConstAggr, probSys, probSysAggr, runAnalyzerChecks, sample, sampleAggr, sampleSys, sampleSysAggr, setAvgHandles, setAvgResults, setDistribResults, setLang, setModel, setTranAvgResults, setTranHandles, setTranProb, stageTable, tranAvg, tranCdfPassT, tranCdfPassT, tranCdfRespT, tranCdfRespT, tranHandles
-
Methods inherited from class jline.solvers.Solver
defaultOptions, getName, getOptions, getResults, hasResults, isJavaAvailable, isValidOption, listValidOptions, parseOptions, parseOptions, reset, resetRandomGeneratorSeed, setChecks, setOptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
create
static LINE create(Network model)
Convenience method - create LINE solver with default settings
-
create
static LINE create(Network model, String method)
Convenience method - create LINE solver with method
-
load
static NetworkSolver load(String chosenMethod, Network model, Array<Object> varargin)
Static factory method to create and configure a solver based on the chosen method This matches the MATLAB LINE.load() static method functionality
- Parameters:
chosenMethod
- The solver method to usemodel
- The network modelvarargin
- Variable arguments for solver options- Returns:
Configured solver instance
-
load
static Network load(String filename)
Loads a Network model from a file. Detects the file format and loads the appropriate model type.
- Parameters:
filename
- The path to the file to load- Returns:
The loaded Network or LayeredNetwork model
-
load
static Network load(String filename, boolean verbose)
Loads a Network model from a file with optional verbose output. Detects the file format and loads the appropriate model type.
- Parameters:
filename
- The path to the file to loadverbose
- Whether to print verbose loading information- Returns:
The loaded Network or LayeredNetwork model
-
-
-
-