Class SolverSSA
-
- All Implemented Interfaces:
public class SolverSSA extends NetworkSolver
-
-
Field Summary
Fields Modifier and Type Field Description public ExecutorServicethreadPoolpublic intnumThreadspublic EventCacheeventCachepublic Networkmodelpublic NetworkStructsnpublic SolverAvgHandlesavgHandlespublic SolverTranHandlestranHandlespublic Modelmodelpublic Stringnamepublic SolverOptionsoptionspublic SolverResultresultpublic booleanenableCheckspublic Randomrandom
-
Method Summary
Modifier and Type Method Description ExecutorServicegetThreadPool()voidsetThreadPool(ExecutorService threadPool)intgetNumThreads()voidsetNumThreads(int numThreads)EventCachegetEventCache()voidsetEventCache(EventCache eventCache)static FeatureSetgetFeatureSet()Returns the feature set supported by the SSA solver NetworkStructgetStruct()List<String>listValidMethods()List<String>listValidMethods(Network model)voidrunAnalyzer()Executes the solver algorithm to analyze the model. voidsetParallelism(int numThreads)booleansupports(Network model)Checks if this solver supports the given network model. SampleNodeStatesample(Node node, Integer numSamples, boolean markActivePassive)Sample node state evolution using SSA simulation SampleNodeStatesample(Node node, int numSamples)Sample node state evolution using SSA simulation SampleNodeStatesample(Node node)Sample node state evolution using SSA simulation using default sample count SampleNodeStatesampleAggr(Node node, Integer numSamples, boolean markActivePassive)Sample aggregated node state evolution using SSA simulation SampleNodeStatesampleAggr(Node node, int numSamples)Sample aggregated node state evolution using SSA simulation SampleNodeStatesampleAggr(Node node)Sample aggregated node state evolution using SSA simulation using default sample count Ret.SampleResultsampleSys(int numSamples)Sample system-wide state evolution using SSA simulation SampleSysStatesampleSys()Sample system-wide state evolution using SSA simulation using default sample count Ret.SampleResultsampleSysAggr(int numSamples)Sample aggregated system-wide state evolution using SSA simulation SampleSysStatesampleSysAggr()Sample aggregated system-wide state evolution using SSA simulation using default sample count doublegetProb(Node node, Matrix state)Get probability for a specific node state doublegetProb(Node node)Get probability for a specific node state using the node's default state doublegetProbAggr(Node node, Matrix state)Get aggregated probability for a specific node state doublegetProbAggr(Node node)Get aggregated probability for a specific node state using the node's default state Ret.ProbabilityResultgetProbSys()Get system-wide probability for the current system state Ret.ProbabilityResultgetProbSysAggr()Get aggregated system-wide probability for the current system state static SolverOptionsdefaultOptions()Returns the default solver options for the SSA solver. -
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, 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, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTput, getAvgTputChain, getAvgTputHandles, getAvgUtil, getAvgUtilChain, getAvgUtilHandles, getAvgWaitT, getCdfPassT, getCdfPassT, getCdfRespT, getCdfRespT, getModel, getProb, getProb, getProbAggr, getProbAggr, getProbMarg, getProbMarg, getProbNormConstAggr, getStageTable, getStageTable, getTranAvg, getTranCdfPassT, getTranCdfPassT, getTranCdfRespT, getTranCdfRespT, getTranHandles, hasAvgResults, hasDistribResults, hasTranResults, initHandles, model, print, prob, prob, probAggr, probAggr, probMarg, probMarg, probNormConstAggr, probSys, probSysAggr, runAnalyzerChecks, sample, sampleAggr, setAvgHandles, setAvgResults, setDistribResults, setLang, setModel, setTranAvgResults, setTranHandles, setTranProb, stageTable, tranAvg, tranCdfPassT, tranCdfPassT, tranCdfRespT, tranCdfRespT, tranHandles -
Methods inherited from class jline.solvers.Solver
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
-
getThreadPool
ExecutorService getThreadPool()
-
setThreadPool
void setThreadPool(ExecutorService threadPool)
-
getNumThreads
int getNumThreads()
-
setNumThreads
void setNumThreads(int numThreads)
-
getEventCache
EventCache getEventCache()
-
setEventCache
void setEventCache(EventCache eventCache)
-
getFeatureSet
static FeatureSet getFeatureSet()
Returns the feature set supported by the SSA solver
- Returns:
- the feature set supported by the SSA solver
-
getStruct
NetworkStruct getStruct()
-
listValidMethods
List<String> listValidMethods()
-
listValidMethods
List<String> listValidMethods(Network model)
-
runAnalyzer
void runAnalyzer()
Executes the solver algorithm to analyze the model. This abstract method must be implemented by concrete solver classes.
-
setParallelism
void setParallelism(int numThreads)
-
supports
boolean supports(Network model)
Checks if this solver supports the given network model. Default implementation returns true; subclasses should override to provide specific feature validation.
- Parameters:
model- the network model to check- Returns:
true if the model is supported, false otherwise
-
sample
SampleNodeState sample(Node node, Integer numSamples, boolean markActivePassive)
Sample node state evolution using SSA simulation
- Parameters:
node- The node to sample fromnumSamples- Number of samples to generate (overrides solver options if provided)markActivePassive- Whether to mark events as active/passive- Returns:
SampleNodeState containing the sampling results
-
sample
SampleNodeState sample(Node node, int numSamples)
Sample node state evolution using SSA simulation
- Parameters:
node- The node to sample fromnumSamples- Number of samples to generate- Returns:
SampleNodeState containing the sampling results
-
sample
SampleNodeState sample(Node node)
Sample node state evolution using SSA simulation using default sample count
- Parameters:
node- The node to sample from- Returns:
SampleNodeState containing the sampling results
-
sampleAggr
SampleNodeState sampleAggr(Node node, Integer numSamples, boolean markActivePassive)
Sample aggregated node state evolution using SSA simulation
- Parameters:
node- The node to sample fromnumSamples- 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
-
sampleAggr
SampleNodeState sampleAggr(Node node, int numSamples)
Sample aggregated node state evolution using SSA simulation
- Parameters:
node- The node to sample fromnumSamples- Number of samples to generate- Returns:
SampleNodeState containing the aggregated sampling results
-
sampleAggr
SampleNodeState sampleAggr(Node node)
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
-
sampleSys
Ret.SampleResult sampleSys(int numSamples)
Sample system-wide state evolution using SSA simulation
- Parameters:
numSamples- Number of samples to generate- Returns:
SampleSysState containing the system-wide sampling results
-
sampleSys
SampleSysState sampleSys()
Sample system-wide state evolution using SSA simulation using default sample count
- Returns:
SampleSysState containing the system-wide sampling results
-
sampleSysAggr
Ret.SampleResult sampleSysAggr(int numSamples)
Sample aggregated system-wide state evolution using SSA simulation
- Parameters:
numSamples- Number of samples to generate- Returns:
SampleSysState containing the aggregated system-wide sampling results
-
sampleSysAggr
SampleSysState sampleSysAggr()
Sample aggregated system-wide state evolution using SSA simulation using default sample count
- Returns:
SampleSysState containing the aggregated system-wide sampling results
-
getProb
double getProb(Node node, Matrix state)
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
-
getProb
double getProb(Node node)
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
-
getProbAggr
double getProbAggr(Node node, Matrix state)
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
-
getProbAggr
double getProbAggr(Node node)
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
-
getProbSys
Ret.ProbabilityResult getProbSys()
Get system-wide probability for the current system state
- Returns:
Probability of being in the system state
-
getProbSysAggr
Ret.ProbabilityResult getProbSysAggr()
Get aggregated system-wide probability for the current system state
- Returns:
Aggregated probability of being in the system state
-
defaultOptions
static SolverOptions defaultOptions()
Returns the default solver options for the SSA solver.
- Returns:
Default solver options with SolverType.SSA
-
-
-
-