Package jline.lang.state
Class AfterEventStation
java.lang.Object
jline.lang.state.AfterEventStation
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResult of a pass-and-swap transition: the new ordered list and the departing class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Ret.EventResultafterEventStationPas(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.static AfterEventStation.PasSwappassAndSwap(int[] c, int p, Matrix G) Applies the pass-and-swap mechanism (Dorsman and Gardner 2024, Sect.
-
Constructor Details
-
AfterEventStation
public AfterEventStation()
-
-
Method Details
-
passAndSwap
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 jobG- (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).
-