Package jline.examples.java.advanced
Class CyclicPollingModel
java.lang.Object
jline.examples.java.advanced.CyclicPollingModel
Examples of models with polling
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain method for testing and demonstrating cyclic polling examples.static NetworkM[2]/M[2]/1-Exhaustive polling system with deterministic arrivals and immediate switchover.static NetworkM[2]/M[2]/1-Gated polling system example.static NetworkM[2]/M[2]/1-Gated polling system with switchover times.static NetworkM[2]/M[2]/1-K-Limited polling system with mixed switchover.
-
Constructor Details
-
CyclicPollingModel
public CyclicPollingModel()
-
-
Method Details
-
polling_exhaustive_exp
M[2]/M[2]/1-Gated polling system example. This example demonstrates a polling system with: - 2 job classes - Exponential arrivals and service times - Exhaustive polling strategy- Returns:
- network model with polling queue
-
polling_gated
M[2]/M[2]/1-Gated polling system with switchover times. This example demonstrates a polling system with: - 2 job classes - Exponential arrivals and service times - Gated polling strategy - Exponential switchover times between classes- Returns:
- network model with gated polling and switchover times
-
polling_klimited
M[2]/M[2]/1-K-Limited polling system with mixed switchover. This example demonstrates a polling system with: - 2 job classes - Exponential arrivals and service times - K-Limited polling strategy with K=1 - Mixed switchover times (Exponential for class 1, Immediate for class 2) The setPollingType method now accepts an optional K parameter for K-LIMITED polling.- Returns:
- network model with K-limited polling and mixed switchover
-
polling_exhaustive_det
M[2]/M[2]/1-Exhaustive polling system with deterministic arrivals and immediate switchover. This example demonstrates a polling system with: - 2 job classes - Deterministic arrivals and service times - Exhaustive polling strategy - Immediate (zero-time) switchover between classes- Returns:
- network model with exhaustive polling and immediate switchover
-
main
Main method for testing and demonstrating cyclic polling examples.- Parameters:
args- command line arguments (not used)
-