Class SolverSSA

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ExecutorService getThreadPool()
      void setThreadPool(ExecutorService threadPool)
      int getNumThreads()
      void setNumThreads(int numThreads)
      EventCache getEventCache()
      void setEventCache(EventCache eventCache)
      static FeatureSet getFeatureSet() Returns the feature set supported by the SSA solver
      NetworkStruct getStruct()
      List<String> listValidMethods()
      List<String> listValidMethods(Network model)
      void runAnalyzer() Executes the solver algorithm to analyze the model.
      void setParallelism(int numThreads)
      boolean supports(Network model) Checks if this solver supports the given network model.
      SampleNodeState sample(Node node, Integer numSamples, boolean markActivePassive) Sample node state evolution using SSA simulation
      SampleNodeState sample(Node node, int numSamples) Sample node state evolution using SSA simulation
      SampleNodeState sample(Node node) Sample node state evolution using SSA simulation using default sample count
      SampleNodeState sampleAggr(Node node, Integer numSamples, boolean markActivePassive) Sample aggregated node state evolution using SSA simulation
      SampleNodeState sampleAggr(Node node, int numSamples) Sample aggregated node state evolution using SSA simulation
      SampleNodeState sampleAggr(Node node) Sample aggregated node state evolution using SSA simulation using default sample count
      Ret.SampleResult sampleSys(int numSamples) Sample system-wide state evolution using SSA simulation
      SampleSysState sampleSys() Sample system-wide state evolution using SSA simulation using default sample count
      Ret.SampleResult sampleSysAggr(int numSamples) Sample aggregated system-wide state evolution using SSA simulation
      SampleSysState sampleSysAggr() Sample aggregated system-wide state evolution using SSA simulation using default sample count
      double getProb(Node node, Matrix state) Get probability for a specific node state
      double getProb(Node node) Get probability for a specific node state using the node's default state
      double getProbAggr(Node node, Matrix state) Get aggregated probability for a specific node state
      double getProbAggr(Node node) Get aggregated probability for a specific node state using the node's default state
      Ret.ProbabilityResult getProbSys() Get system-wide probability for the current system state
      Ret.ProbabilityResult getProbSysAggr() Get aggregated system-wide probability for the current system state
      static SolverOptions defaultOptions() 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

      • getFeatureSet

         static FeatureSet getFeatureSet()

        Returns the feature set supported by the SSA solver

        Returns:

        - the feature set supported by the SSA solver

      • runAnalyzer

         void runAnalyzer()

        Executes the solver algorithm to analyze the model. This abstract method must be implemented by concrete solver classes.

      • 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 from
        numSamples - 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 from
        numSamples - 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 from
        numSamples - 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 from
        numSamples - 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 for
        state - 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 for
        state - 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

      • 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