Class Matching
- All Implemented Interfaces:
Serializable,Cloneable,Copyable
Jobs of different open classes are paired off. The node carries an
undirected compatibility graph G between classes, set with
setCompatibility(jline.lang.JobClass, jline.lang.JobClass). On a class-r arrival:
- if jobs of some class s with G(r,s) = 1 are waiting, the OLDEST of them is matched with the arrival and both leave the node at once, each following the routing of its own class (usually to a Sink);
- otherwise the arrival joins the ordered buffer, or is dropped when the
buffer already holds the capacity set with
Station.setCap(int).
Station.setPatience(JobClass, Distribution) (ImpatienceType.RENEGING only).
This is the non-bipartite FCFM matching model of Comte (2022). Without patience it has the order-independent product form solved exactly by SolverNC (Qsys_match_fcfm). SolverCTMC and SolverSSA solve it with or without patience (any phase-type law), on the ordered word of waiting (class, patience phase) pairs; both require a finite capacity. A Matching node has no service time: per-class setService is refused.
Average measures reported for the node: QLen is the mean number of waiting class-r jobs, RespT is QLen over the accepted class-r arrival rate (0 for a job matched on arrival), Tput is the rate at which class-r jobs leave matched, and Util is 0 (no server).
Reference: Comte (2022). Stochastic non-bipartite matching models and order-independent loss queues. Stochastic Models 38(1):1-36.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jline.lang.nodes.Queue
Queue.MonoCheckResult, Queue.PermCheckResult -
Field Summary
Fields inherited from class jline.lang.nodes.Queue
delayOffTimes, setupTimesFields inherited from class jline.lang.nodes.ServiceStation
serviceProcesses, serviceWeightClassesFields inherited from class jline.lang.nodes.Station
balkingStrategies, balkingThresholds, batchRejectProb, cap, classCap, dropRule, impatienceTypes, lcdScaling, lcdScalingPeak, ljdScaling, ljdScalingPeak, lldScaling, numberOfServers, orbitImpatienceDistributions, orbitJoinProb, orbitMaxJobs, orbitPersistProb, orbitSearchProb, patienceDistributions, retrialDelayDistributions, retrialMaxAttempts, retrialPolicies, switchoverTimesFields inherited from class jline.lang.nodes.ServiceNode
schedPolicy, schedStrategy, schedStrategyParFields inherited from class jline.lang.nodes.Node
dropStrategy, input, model, nodeIndex, output, sdrDeclarations, server, statefulIdx, stationIdx -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe compatibility graph as an R x R 0/1 matrix, R the classes of the model.getCompatibility(int R) The compatibility graph as an R x R 0/1 matrix.voidsetCompatibility(JobClass a, JobClass b) Makes the two classes compatible (an undirected edge of the graph).voidsetCompatibility(JobClass a, JobClass b, boolean value) Adds (value true) or removes (value false) the undirected edge between the two classes.voidSets the whole graph from an R x R symmetric 0/1 matrix with a zero diagonal, R the number of classes of the model, in class index order.voidsetRepresentativeService(JobClass jobClass, Distribution distribution) Installs the representative per-class rate Exp(lambda(N(r))) (or Disabled) that Network.sanitize gives each class slot, so that the rate and process tables stay consistent.voidsetService(JobClass jobClass, Object distribution, double weight) voidsetService(JobClass jobClass, ServerType serverType, Distribution distribution) Sets the service time distribution for a specific job class and server type.voidsetService(JobClass jobClass, Distribution distribution) voidsetService(JobClass jobClass, Distribution distribution, double weight) voidsetService(SerializableFunction<Matrix, Double> muFun) Sets the total service rate function mu(c) of a pass-and-swap (PAS) queue.Methods inherited from class jline.lang.nodes.Queue
addServerType, checkPermInvariance, checkRateMonotonicity, containsJobClass, getBreakdownFailure, getBreakdownRepair, getDelayOffTime, getDownService, getHeteroSchedPolicy, getHeteroServiceDistributions, getImmediateFeedbackClasses, getNumServerTypes, getPollingOrder, getPollingOrderClass, getPollingOrderThreshold, getPollingTable, getPollingTableSw, getPollingTimer, getPollingTimerPreempt, getPollingTimerScope, getQuantum, getSchedPolicy, getSchedStrategy, getSchedStrategyPar, getServerParallelism, getServerType, getServerType, getServerTypes, getService, getService, getServiceRateFunction, getSetupTime, getSwapGraph, getSwitchover, getSwitchover, hasBreakdown, hasImmediateFeedback, hasImmediateFeedback, hasServerParallelism, isDelayOffEnabled, isHeterogeneous, isImmediateFeedbackAll, printSummary, setBreakdown, setBreakdown, setClassDependence, setClassDependence, setDelayOff, setDownService, setHeteroSchedPolicy, setImmediateFeedback, setImmediateFeedback, setImmediateFeedbackForClasses, setItemServiceRate, setJointDependence, setLimit, setLoadDependence, setNumberOfServers, setPollingK, setPollingOrder, setPollingOrder, setPollingTable, setPollingTable, setPollingTable, setPollingTable, setPollingTimer, setPollingTimer, setPollingTimer, setPollingTimer, setPollingTimer, setPollingTimer, setPollingType, setPollingType, setQuantum, setQuantum, setSchedStrategyPar, setServerParallelism, setServiceRateFunction, setSwapGraph, setSwitchover, setSwitchover, validateCompatibilityMethods inherited from class jline.lang.nodes.ServiceStation
getServiceProcess, hasServiceWeights, removeJobClassMethods inherited from class jline.lang.nodes.Station
getBalkingStrategy, getBalkingStrategyLocal, getBalkingThresholds, getBalkingThresholdsLocal, getBatchRejectProbability, getCap, getClassCap, getDropRule, getImpatienceType, getImpatienceTypeLocal, getLimitedClassDependence, getLimitedClassDependencePeak, getLimitedJointDependence, getLimitedJointDependencePeak, getLimitedLoadDependence, getMaxRetrialAttempts, getMaxRetrialAttemptsLocal, getNumberOfServers, getOrbitalSearch, getOrbitImpatience, getOrbitImpatienceLocal, getOrbitJoinProbability, getOrbitMaxJobs, getOrbitPersistProbability, getPatience, getPatienceLocal, getRetrialDelayDistribution, getRetrialDelayDistributionLocal, getRetrialPolicy, getServiceRates, getSourceRates, getStrategyParam, getSwitchoverTime, hasBalking, hasBalkingLocal, hasFiniteCap, hasOrbitImpatience, hasPatience, hasPatienceLocal, hasRetrial, hasRetrialLocal, hasSwitchoverTime, invalidateStruct, isReferenceStation, isServiceDefined, isServiceDefined, isServiceDisabled, isServiceDisabled, setBalking, setBalking, setBatchRejectProbability, setCap, setCapacity, setChainCapacity, setClassCap, setClassCapacity, setDropRule, setLimitedClassDependence, setLimitedClassDependence, setLimitedJointDependence, setLimitedJointDependence, setLimitedLoadDependence, setOrbit, setOrbit, setOrbit, setOrbitalSearch, setOrbitImpatience, setOrbitPersistence, setOrbitPersistence, setPatience, setPatience, setRetrial, setRetrial, setStrategyParam, setSwitchoverTimeMethods inherited from class jline.lang.nodes.StatefulNode
clearState, getState, getStatefulIndex, getStatePrior, getStateSpace, resetStateSpace, setState, setState, setStatePrior, setStateSpaceMethods inherited from class jline.lang.nodes.Node
copy, copyElement, getAttribute, getDropStrategy, getInput, getModel, getNodeIndex, getOutput, getOutputStrategies, getRoutingStrategy, getSections, getServer, getStateDepRouting, getStatefulIdx, getStationIdx, hasClassSwitching, isStateful, isStation, link, reset, resetRouting, setModel, setNodeIdx, setProbRouting, setRouting, setRouting, setRouting, setSQRouting, setStateDepRouting, setStationIdx, summary
-
Constructor Details
-
Matching
-
-
Method Details
-
setCompatibility
Makes the two classes compatible (an undirected edge of the graph). -
setCompatibility
Adds (value true) or removes (value false) the undirected edge between the two classes. -
setCompatibility
Sets the whole graph from an R x R symmetric 0/1 matrix with a zero diagonal, R the number of classes of the model, in class index order. -
getCompatibility
The compatibility graph as an R x R 0/1 matrix, R the classes of the model. -
getCompatibility
The compatibility graph as an R x R 0/1 matrix. -
setService
- Overrides:
setServicein classServiceStation
-
setService
- Overrides:
setServicein classServiceStation
-
setService
- Overrides:
setServicein classServiceStation
-
setService
Description copied from class:QueueSets the service time distribution for a specific job class and server type.Used for heterogeneous multiserver queues where different server types may have different service rates for the same job class.
- Overrides:
setServicein classQueuedistribution- the service time distribution
-
setService
Description copied from class:QueueSets the total service rate function mu(c) of a pass-and-swap (PAS) queue. An order-independent/PAS queue is parameterized by mu(c) as a whole, not by per-class service distributions; this overload of setService accepts the mu(c) function directly.- Overrides:
setServicein classQueue- Parameters:
muFun- maps the ordered state vector c (1xN row Matrix of 0-based class indices, c(0) oldest) to the scalar total service rate
-
setRepresentativeService
Installs the representative per-class rate Exp(lambda(N(r))) (or Disabled) that Network.sanitize gives each class slot, so that the rate and process tables stay consistent. Not a service time: no solver reads it as one.
-