Package jline.solvers.ssa
Class SolverSSA
java.lang.Object
jline.solvers.Solver
jline.solvers.NetworkSolver
jline.solvers.ssa.SolverSSA
- Direct Known Subclasses:
SSA
-
Field Summary
FieldsFields inherited from class jline.solvers.NetworkSolver
avgHandles, model, sn, tranHandles -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SolverOptionsReturns the default solver options for the SSA solver.static FeatureSetReturns the feature set supported by the SSA solverintGet marginal probability for a specific node state (by node index).doubleGet probability for a specific node state using the node's default statedoubleGet probability for a specific node statedoublegetProbAggr(Node node) Get aggregated probability for a specific node state using the node's default statedoublegetProbAggr(Node node, Matrix state) Get aggregated probability for a specific node stateGet system-wide probability for the current system stateGet aggregated system-wide probability for the current system stateGet the active streaming collector (for use by Solver_ssa.kt).listValidMethods(Network model) voidExecutes the solver algorithm to analyze the model.Sample node state evolution using SSA simulation using default sample countSample node state evolution using SSA simulationSample node state evolution using SSA simulationsampleAggr(Node node) Sample aggregated node state evolution using SSA simulation using default sample countsampleAggr(Node node, int numEvents) Sample aggregated node state evolution using SSA simulationsampleAggr(Node node, Integer numEvents, boolean markActivePassive) Sample aggregated node state evolution using SSA simulationSample system-wide state evolution using SSA simulation using default sample countsampleSys(int numEvents) Sample system-wide state evolution using SSA simulationSample aggregated system-wide state evolution using SSA simulation using default sample countsampleSysAggr(int numEvents) Sample aggregated system-wide state evolution using SSA simulationvoidsetEventCache(EventCache eventCache) voidsetNumThreads(int numThreads) voidsetParallelism(int numThreads) voidsetThreadPool(ExecutorService threadPool) stream(Node node, Integer numEvents, StreamingOptions streamingOptions) Sample node state with real-time streaming to OTLP receiver.stream(Node node, StreamingOptions streamingOptions) Sample node state with real-time streaming to OTLP receiver.streamAggr(Node node, Integer numEvents, StreamingOptions streamingOptions) Sample aggregated node state with real-time streaming to OTLP receiver.streamAggr(Node node, StreamingOptions streamingOptions) Sample aggregated node state with real-time streaming to OTLP receiver.booleanChecks if this solver supports the given network model.Methods inherited from class jline.solvers.NetworkSolver
aCT, aCT, aCT, aCT, aCT, aCT, aNCT, aNCT, aNCT, aNCT, aNCT, aNCT, aNT, aNT, aNT, aNT, aNT, aNT, aST, aST, aST, aT, aT, aT, aT, aT, aT, avg, avg, avg, avgArvR, avgArvRChain, avgArvRHandles, avgChain, avgChainT, avgChainT, avgChainT, avgChainT, avgChainT, avgChainT, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgHandles, avgNode, avgNodeArvRChain, avgNodeChain, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeQLenChain, avgNodeResidTChain, avgNodeRespTChain, avgNodeT, avgNodeT, avgNodeT, avgNodeT, avgNodeT, avgNodeT, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTputChain, avgNodeUtilChain, avgQLen, avgQLenChain, avgQLenHandles, avgResidT, avgResidTChain, avgResidTHandles, avgRespT, avgRespTChain, avgRespTHandles, avgSys, avgSysRespT, avgSysT, avgSysT, avgSysT, avgSysTable, avgSysTable, avgSysTable, avgSysTput, avgT, avgT, avgT, avgT, avgT, avgT, avgTable, avgTable, avgTable, avgTable, avgTable, avgTable, avgTput, avgTputChain, avgTputHandles, avgUtil, avgUtilChain, avgUtilHandles, avgWaitT, cdfPassT, cdfPassT, cdfRespT, cdfRespT, chainAvgT, chainAvgT, chainAvgT, chainAvgT, chainAvgT, chainAvgT, getAllSolvers, getAvg, getAvg, getAvg, getAvgArvR, getAvgArvRChain, getAvgArvRHandles, getAvgChain, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgHandles, getAvgNode, getAvgNodeArvRChain, getAvgNodeChain, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeQLenChain, getAvgNodeResidTChain, getAvgNodeRespTChain, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTputChain, getAvgNodeUtilChain, getAvgQLen, getAvgQLenChain, getAvgQLenHandles, getAvgResidT, getAvgResidTChain, getAvgResidTHandles, getAvgRespT, getAvgRespTChain, getAvgRespTHandles, getAvgSys, getAvgSys, getAvgSys, getAvgSysRespT, getAvgSysTable, getAvgSysTable, getAvgSysTable, getAvgSysTput, getAvgT, getAvgT, getAvgT, getAvgT, getAvgT, getAvgT, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTput, getAvgTputChain, getAvgTputHandles, getAvgUtil, getAvgUtilChain, getAvgUtilHandles, getAvgWaitT, getCdfPassT, getCdfPassT, getCdfRespT, getCdfRespT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getDeadlineTable, getModel, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getProb, getProbAggr, getProbAggr, getProbMarg, getProbMarg, getProbNormConstAggr, getStageT, getStageT, getStageTable, getStageTable, getSysAvgT, getSysAvgT, getSysAvgT, getTranAvg, getTranCdfPassT, getTranCdfPassT, getTranCdfRespT, getTranCdfRespT, getTranHandles, hasAvgResults, hasDistribResults, hasTranResults, initHandles, model, nodeAvgT, nodeAvgT, nodeAvgT, nodeAvgT, nodeAvgT, nodeAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, print, prob, prob, probAggr, probAggr, probMarg, probMarg, probNormConstAggr, probSys, probSysAggr, runAnalyzerChecks, sample, sampleAggr, setAvgHandles, setAvgResults, setDistribResults, setLang, setModel, setTranAvgResults, setTranHandles, setTranProb, stageT, stageTable, sysAvgT, sysAvgT, sysAvgT, tranAvg, tranCdfPassT, tranCdfPassT, tranCdfRespT, tranCdfRespT, tranHandlesMethods inherited from class jline.solvers.Solver
getName, getOptions, getResults, hasResults, isJavaAvailable, isValidOption, listValidOptions, parseOptions, parseOptions, reset, resetRandomGeneratorSeed, setChecks, setOptions
-
Field Details
-
threadPool
-
numThreads
public int numThreads -
eventCache
-
-
Constructor Details
-
SolverSSA
-
SolverSSA
-
SolverSSA
-
SolverSSA
-
-
Method Details
-
getFeatureSet
Returns the feature set supported by the SSA solver- Returns:
- - the feature set supported by the SSA solver
-
getEventCache
-
setEventCache
-
getNumThreads
public int getNumThreads() -
setNumThreads
public void setNumThreads(int numThreads) -
getStruct
-
getThreadPool
-
setThreadPool
-
listValidMethods
-
listValidMethods
-
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 failsIOException- if I/O operations fail
-
setParallelism
public void setParallelism(int numThreads) -
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. -
sample
public SampleNodeState sample(Node node, Integer numEvents, boolean markActivePassive) throws Exception Sample node state evolution using SSA simulation- Parameters:
node- The node to sample fromnumEvents- Number of samples to generate (overrides solver options if provided)markActivePassive- Whether to mark events as active/passive- Returns:
- SampleNodeState containing the sampling results
- Throws:
Exception- if sampling fails
-
sample
Sample node state evolution using SSA simulation- Parameters:
node- The node to sample fromnumEvents- Number of samples to generate- Returns:
- SampleNodeState containing the sampling results
- Throws:
Exception- if sampling fails
-
sample
Sample node state evolution using SSA simulation using default sample count- Parameters:
node- The node to sample from- Returns:
- SampleNodeState containing the sampling results
- Throws:
Exception- if sampling fails
-
sampleAggr
public SampleNodeState sampleAggr(Node node, Integer numEvents, boolean markActivePassive) throws Exception Sample aggregated node state evolution using SSA simulation- Parameters:
node- The node to sample fromnumEvents- Number of samples to generate (overrides solver options if provided)markActivePassive- Whether to mark events as active/passive- Returns:
- SampleNodeState containing the aggregated sampling results
- Throws:
Exception- if sampling fails
-
sampleAggr
Sample aggregated node state evolution using SSA simulation- Parameters:
node- The node to sample fromnumEvents- Number of samples to generate- Returns:
- SampleNodeState containing the aggregated sampling results
- Throws:
Exception- if sampling fails
-
sampleAggr
Sample aggregated node state evolution using SSA simulation using default sample count- Parameters:
node- The node to sample from- Returns:
- SampleNodeState containing the aggregated sampling results
- Throws:
Exception- if sampling fails
-
stream
Sample node state with real-time streaming to OTLP receiver. Streams phase-detailed state information during simulation.- Parameters:
node- The node to sample fromstreamingOptions- Configuration for streaming (endpoint, mode, frequency)- Returns:
- SampleNodeState containing the sampling results
- Throws:
Exception- if sampling fails
-
stream
public SampleNodeState stream(Node node, Integer numEvents, StreamingOptions streamingOptions) throws Exception Sample node state with real-time streaming to OTLP receiver. Streams phase-detailed state information during simulation.- Parameters:
node- The node to sample fromnumEvents- Number of samples to generatestreamingOptions- Configuration for streaming (endpoint, mode, frequency)- Returns:
- SampleNodeState containing the sampling results
- Throws:
Exception- if sampling fails
-
streamAggr
Sample aggregated node state with real-time streaming to OTLP receiver. Streams state information aggregated by job class during simulation.- Parameters:
node- The node to sample fromstreamingOptions- Configuration for streaming (endpoint, mode, frequency)- Returns:
- SampleNodeState containing the aggregated sampling results
- Throws:
Exception- if sampling fails
-
streamAggr
public SampleNodeState streamAggr(Node node, Integer numEvents, StreamingOptions streamingOptions) throws Exception Sample aggregated node state with real-time streaming to OTLP receiver. Streams state information aggregated by job class during simulation.- Parameters:
node- The node to sample fromnumEvents- Number of samples to generatestreamingOptions- Configuration for streaming (endpoint, mode, frequency)- Returns:
- SampleNodeState containing the aggregated sampling results
- Throws:
Exception- if sampling fails
-
getStreamingCollector
Get the active streaming collector (for use by Solver_ssa.kt). Returns null if streaming is not active.- Returns:
- The active Collector, or null
-
sampleSys
Sample system-wide state evolution using SSA simulation- Overrides:
sampleSysin classNetworkSolver- Parameters:
numEvents- Number of samples to generate- Returns:
- SampleSysState containing the system-wide sampling results
- Throws:
Exception- if sampling fails
-
sampleSys
Sample system-wide state evolution using SSA simulation using default sample count- Returns:
- SampleSysState containing the system-wide sampling results
- Throws:
Exception- if sampling fails
-
sampleSysAggr
Sample aggregated system-wide state evolution using SSA simulation- Overrides:
sampleSysAggrin classNetworkSolver- Parameters:
numEvents- Number of samples to generate- Returns:
- SampleSysState containing the aggregated system-wide sampling results
- Throws:
Exception- if sampling fails
-
sampleSysAggr
Sample aggregated system-wide state evolution using SSA simulation using default sample count- Returns:
- SampleSysState containing the aggregated system-wide sampling results
- Throws:
Exception- if sampling fails
-
getProb
Get probability for a specific node state- Parameters:
node- The node to get probability forstate- The state vector (optional - uses node's default state if null)- Returns:
- Probability of being in the specified state
- Throws:
Exception- if probability calculation fails
-
getProb
Get probability for a specific node state using the node's default state- Parameters:
node- The node to get probability for- Returns:
- Probability of being in the node's default state
- Throws:
Exception- if probability calculation fails
-
getProb
Get marginal probability for a specific node state (by node index). This overrides the base NetworkSolver method to use SSA sampling.- Overrides:
getProbin classNetworkSolver- Parameters:
node- The node index to get probability forstate- The state vector (optional - uses node's default state if null)- Returns:
- Probability result for being in the specified state
-
getProbAggr
Get aggregated probability for a specific node state- Parameters:
node- The node to get probability forstate- The state vector (optional - uses node's default state if null)- Returns:
- Aggregated probability of being in the specified state
- Throws:
Exception- if probability calculation fails
-
getProbAggr
Get aggregated probability for a specific node state using the node's default state- Parameters:
node- The node to get probability for- Returns:
- Aggregated probability of being in the node's default state
- Throws:
Exception- if probability calculation fails
-
getProbSys
Get system-wide probability for the current system state- Overrides:
getProbSysin classNetworkSolver- Returns:
- Probability of being in the system state
- Throws:
Exception- if probability calculation fails
-
getProbSysAggr
Get aggregated system-wide probability for the current system state- Overrides:
getProbSysAggrin classNetworkSolver- Returns:
- Aggregated probability of being in the system state
- Throws:
Exception- if probability calculation fails
-
defaultOptions
Returns the default solver options for the SSA solver.- Returns:
- Default solver options with SolverType.SSA
-