Class AfterEventStation

java.lang.Object
jline.lang.state.AfterEventStation
All Implemented Interfaces:
Serializable

public class AfterEventStation extends Object implements Serializable
See Also:
  • Constructor Details

    • AfterEventStation

      public AfterEventStation()
  • Method Details

    • passAndSwap

      public static AfterEventStation.PasSwap passAndSwap(int[] c, int p, Matrix G)
      Applies the pass-and-swap mechanism (Dorsman and Gardner 2024, Sect. 2.3) triggered by the service completion of position p.
      Parameters:
      c - ordered list of 1-based class indices (c[0] oldest)
      p - 0-based position of the completing job
      G - (nclasses x nclasses) 0-based swapping-graph adjacency
    • afterEventStationPas

      public static Ret.EventResult afterEventStationPas(NetworkStruct sn, int ind, int ist, Matrix inspace, EventType event, int jobClass, int R, int V, boolean isSimulation)
      Event handler for pass-and-swap (PAS) / order-independent stations. The local state is the ordered list of 1-based class indices (oldest first), left-aligned in the first W = cap columns and right zero-padded; the trailing V columns are routing variables (carried through). Service is governed by the total rate function mu(c) (QueueNodeParam.svcRateFun, called with a row Matrix of 0-based class indices) and the swapping graph G (QueueNodeParam.swapGraph, 0-based).