Class Erlang

java.lang.Object
math.Erlang

public class Erlang extends Object

Name: Erlang

Description: This class provides methods to compute Erlang-B and Erlang-C formulas with a numerically stable algorithm.

Date: 13/apr/07 Time: 10:43:39

Version:
1.0
Author:
Bertoli Marco
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    erlangB(double traffic, int servers)
    Computes Erlang-B formula (probability of blocking) with a recursive method to avoid numeric instability
    static double
    erlangC(double traffic, int servers)
    Computes Erlang-C formula (probability of queueing) basing on Erlang-B evaluation

    Methods inherited from class Object

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

    • Erlang

      public Erlang()
  • Method Details

    • erlangB

      public static double erlangB(double traffic, int servers) throws IllegalArgumentException
      Computes Erlang-B formula (probability of blocking) with a recursive method to avoid numeric instability
      Parameters:
      traffic - The total traffic offered (in erlangs) that is arrival rate * service demand. Must be greater than zero.
      servers - number of servers. Must be greater than one.
      Returns:
      computed value
      Throws:
      IllegalArgumentException - if traffic <= 0 or servers <= 0
    • erlangC

      public static double erlangC(double traffic, int servers) throws IllegalArgumentException
      Computes Erlang-C formula (probability of queueing) basing on Erlang-B evaluation
      Parameters:
      traffic - The total traffic offered (in erlangs) that is arrival rate * service demand. Must be greater than zero.
      servers - number of servers. Must be greater than one.
      Returns:
      computed value
      Throws:
      IllegalArgumentException - if traffic <= 0 or servers <= 0