Package jline.api.snc

Class Snc_env_tokenbucket

java.lang.Object
jline.api.snc.Snc_env_tokenbucket

public final class Snc_env_tokenbucket extends Object
Deterministic token-bucket arrival envelope.

A flow policed by a (b,r) token bucket satisfies A(s,t) <= b+r*(t-s) with probability one, so the envelope is constant in theta. This is the deterministic network calculus arrival curve read as a degenerate MGF envelope, so it mixes freely with the stochastic ones.

Port of matlab/src/api/snc/snc_env_tokenbucket.m.

  • Method Details

    • snc_env_tokenbucket

      public static double[] snc_env_tokenbucket(double b, double r)
      Parameters:
      b - bucket depth, units of work
      r - token rate, work per slot
      Returns:
      {b, r}
    • snc_env_tokenbucket

      public static double[] snc_env_tokenbucket(double b, double r, double theta)
      Parameters:
      b - bucket depth
      r - token rate
      theta - Chernoff parameter, accepted and ignored
      Returns:
      {b, r}
    • of

      public static SncEnvelope of(double b, double r)
      Parameters:
      b - bucket depth
      r - token rate
      Returns:
      the envelope as a function of theta