Package jline.io

Class Ret.SampleResult

  • All Implemented Interfaces:

    
    public class Ret.SampleResult
    
                        

    Unified result type for sampling and simulation in queueing network solvers.

    This class provides a standardized interface for returning sampled trajectories from various sampling methods including:

    • Discrete-event simulation
    • Perfect sampling
    • Time-averaged sampling
    • Single-node or system-wide sampling

    The state trajectory can be either a single matrix (for node-specific sampling) or a list of matrices (for system-wide sampling), allowing flexible representation of different sampling scenarios.

    • 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
      Matrix getStateMatrix() Gets the state trajectory as a matrix (for single-node sampling).
      List<Matrix> getSystemStateList() Gets the system state trajectories as a list of matrices (for system-wide sampling).
      boolean isSystemWide() Checks if this is a system-wide sampling result.
      boolean hasValidSamples() Checks if this result contains valid sample data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ret.SampleResult

        Ret.SampleResult()
        Default constructor.
      • Ret.SampleResult

        Ret.SampleResult(String handle, Matrix t, Matrix state, Matrix event, boolean isAggregate, Integer nodeIndex, int numSamples)
        Constructor for single-node sampling results.
        Parameters:
        handle - the sampling method handle
        t - time points
        state - state trajectory matrix
        event - event sequence
        isAggregate - whether states are aggregated
        nodeIndex - the node index
        numSamples - number of samples
      • Ret.SampleResult

        Ret.SampleResult(String handle, Matrix t, List<Matrix> systemState, Matrix event, boolean isAggregate, int numSamples)
        Constructor for system-wide sampling results.
        Parameters:
        handle - the sampling method handle
        t - time points
        systemState - list of state trajectories (one per node)
        event - event sequence
        isAggregate - whether states are aggregated
        numSamples - number of samples
    • Method Detail

      • getStateMatrix

         Matrix getStateMatrix()

        Gets the state trajectory as a matrix (for single-node sampling).

        Returns:

        the state trajectory matrix

      • getSystemStateList

         List<Matrix> getSystemStateList()

        Gets the system state trajectories as a list of matrices (for system-wide sampling).

        Returns:

        the list of state trajectory matrices

      • isSystemWide

         boolean isSystemWide()

        Checks if this is a system-wide sampling result.

        Returns:

        true if this is a system-wide sampling result

      • hasValidSamples

         boolean hasValidSamples()

        Checks if this result contains valid sample data.

        Returns:

        true if the result contains valid samples