Interface IThreadedTCSolver

All Known Implementing Classes:
MultiThreadTCSolver, SingleThreadTCSolver

public interface IThreadedTCSolver
The solver interface for tree convolution solvers.
Author:
Ben Homer, 2014.
  • Field Details

    • normalisationConstantTimer

      static final Timer normalisationConstantTimer
      Timer for computing normalisation constant.
    • throughputTimer

      static final Timer throughputTimer
      Timer for computing throughputs.
    • queueLengthTimer

      static final Timer queueLengthTimer
      Timer for computing mean queue lengths.
  • Method Details

    • computeG

      BigRational computeG(Node node, PopulationVector pv)
      Compute G using postorder tree traversal.
      Parameters:
      node - The current node to compute the normalisation constant G for.
      pv - The population vector to be used during the computation.
      Returns:
      The normalisation constant G at the given node, calculated using the specified population vector.
    • calculateThroughputs

      BigRational[] calculateThroughputs(PopulationVector p)
      Calculates per class throughputs using methods outlined in LamLien83 paper.
      Parameters:
      p - The full population vector.
      Returns:
      The per class throughputs as an array of BigRationals.
    • calculateMeanQueueLengths

      BigRational[][] calculateMeanQueueLengths(PopulationVector p)
      Calculates per class and per station mean queue lengths using methods outlined in LamLien83 paper.
      Parameters:
      p - The full population vector.
      Returns:
      The per class per station mean queue lengths as a 2D array of BigRationals.