Class MMAP

All Implemented Interfaces:
Serializable, Copyable

public class MMAP extends MarkedMAP implements Serializable
A Marked Markovian Arrival Process (MMAP) MMAP is a point process where arrivals are categorized into K different types (marks). Uses the standard MMAP representation: - D0: infinitesimal generator for transitions without arrivals - D1: rate matrix for transitions generating type-1 arrivals - D2: rate matrix for transitions generating type-2 arrivals - ... - Dk: rate matrix for transitions generating type-k arrivals This class is an alias for MarkedMAP, providing a consistent naming convention with other distribution classes in LINE.
See Also:
  • Constructor Details

    • MMAP

      public MMAP()
      Default constructor creating an empty MMAP
    • MMAP

      public MMAP(MatrixCell mmap)
      Construct an MMAP from a MatrixCell. The cell is normalized to the M3A layout {D0, D1_agg, D11, ..., D1K} (see MarkedMAP(MatrixCell)); both the M3A layout and the per-type layout {D0, D11, ..., D1K} are accepted.
      Parameters:
      mmap - the process matrices
    • MMAP

      public MMAP(Matrix D0, Matrix... Dk)
      Construct an MMAP from D0 and a variable number of per-type matrices. The aggregate D1 = sum(Dk) is inserted at index 1 so the stored process follows the M3A layout {D0, D1_agg, D11, ..., D1K}.
      Parameters:
      D0 - the infinitesimal generator for transitions without arrivals
      Dk - per-type matrices; Dk[i-1] generates type-i arrivals
  • Method Details

    • getName

      public String getName()
      Returns the name of this distribution type.
      Overrides:
      getName in class Distribution
      Returns:
      "MMAP" to identify this as a Marked Markovian Arrival Process
    • getNumTypes

      public int getNumTypes()
      Get the number of arrival types (marks) in this MMAP
      Returns:
      the number of arrival types K (M3A layout: size-2)
    • getTypeMatrix

      public Matrix getTypeMatrix(int type)
      Get the D_k matrix for arrival type k
      Parameters:
      type - the arrival type (1, 2, 3, ...)
      Returns:
      D_k matrix for the specified type (M3A cell 1+type), or null if out of range
    • fromMAPs

      public static MMAP fromMAPs(Matrix D0, Matrix D1, Matrix D2)
      Factory method to create a simple 2-type MMAP from two MAPs
      Parameters:
      D0 - the shared D0 matrix (transitions without arrivals)
      D1 - rate matrix for type-1 arrivals
      D2 - rate matrix for type-2 arrivals
      Returns:
      an MMAP with two arrival types
    • toString

      public String toString()
      Overrides:
      toString in class Object