Package jline.api
Class SN
java.lang.Object
jline.api.SN
APIs to process NetworkStruct objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsnDeaggregateChainResults
(NetworkStruct sn, Matrix Lchain, Matrix ST, Matrix STchain, Matrix Vchain, Matrix alpha, Matrix Qchain, Matrix Uchain, Matrix Rchain, Matrix Tchain, Matrix Cchain, Matrix Xchain) Calculate class-based performance metrics for a queueing network based on performance measures of its chainsstatic Matrix
snGetAvgArvRFromTput
(NetworkStruct sn, Matrix TN, Matrix TH) Calculates the average arrival rates at each station from the network throughputs.static Ret.snGetDemandsChain
Calculate new queueing network parameters after aggregating classes into chainsCalculate the parameters at class and chain level for a queueing network modelstatic Ret.snGetProductFormParams
Calculate the parameters at class level for a queueing network modelstatic Map<StatefulNode,
Matrix> Aggregates the state of the network.static boolean
Checks if the network uses class-switchingstatic boolean
Checks if the network has one or more closed classesstatic boolean
static boolean
static boolean
static boolean
Checks if the network uses fork and/or join nodesstatic boolean
static boolean
static boolean
static boolean
snHasHomogeneousScheduling
(NetworkStruct sn, SchedStrategy strategy) Checks if the network uses an identical scheduling strategy at every stationstatic boolean
static boolean
static boolean
static boolean
static boolean
static boolean
Checks if the network has a station with load-dependent service processstatic boolean
Checks if the network has both open and closed classesstatic boolean
static boolean
static boolean
static boolean
Checks if the network has one or more stations with multiclass heterogeneous FCFS and exponential servicestatic boolean
Checks if the network has one or more stations with multiclass heterogeneous FCFSstatic boolean
static boolean
Checks if the network has one or more open classesstatic boolean
Checks if the network uses class prioritiesstatic boolean
Checks if the network has a known product-form solutionstatic boolean
Checks if the network satisfies product-form assumptions except multiclass heterogeneous FCFSstatic boolean
snHasPS
(NetworkStruct sn) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
Checks if the network model is closed.static boolean
Checks if the network is a mixed model.static boolean
Checks if the network is an open model.static boolean
Checks if the network state is valid.static void
Prints the routing matrix of the network for all classes.static void
snPrintRoutingMatrix
(NetworkStruct sn, JobClass onlyclass) Prints the routing matrix of the network, optionally for a specific job class.static NetworkStruct
snRefreshVisits
(NetworkStruct sn, Matrix chains, Matrix rt, Matrix rtnodes) Reculate the visits to each node
-
Constructor Details
-
SN
public SN()
-
-
Method Details
-
snRefreshVisits
public static NetworkStruct snRefreshVisits(NetworkStruct sn, Matrix chains, Matrix rt, Matrix rtnodes) Reculate the visits to each node- Parameters:
sn
- - NetworkStruct object for the queueing network model. The object will be updated by the method.chains
- - chain membership for each classrt
- - routing table among stationsrtnodes
- - routing table among nodes- Returns:
- updated sn structure
-
snGetProductFormChainParams
Calculate the parameters at class and chain level for a queueing network model- Parameters:
sn
- - NetworkStruct object for the queueing network model.- Returns:
- queueing network parameters
-
snGetProductFormParams
Calculate the parameters at class level for a queueing network model- Parameters:
sn
- - NetworkStruct object for the queueing network model.- Returns:
- queueing network parameters
-
snGetDemandsChain
Calculate new queueing network parameters after aggregating classes into chains- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- chain parameters
-
snDeaggregateChainResults
public static Ret.snDeaggregateChainResults snDeaggregateChainResults(NetworkStruct sn, Matrix Lchain, Matrix ST, Matrix STchain, Matrix Vchain, Matrix alpha, Matrix Qchain, Matrix Uchain, Matrix Rchain, Matrix Tchain, Matrix Cchain, Matrix Xchain) Calculate class-based performance metrics for a queueing network based on performance measures of its chains- Parameters:
sn
- - NetworkStruct object for the queueing network modelLchain
- - service demands per chainST
- - mean service times per classSTchain
- - mean service times per chainVchain
- - mean visits per chainalpha
- - class aggregation coefficientsQchain
- - mean queue-lengths per chainUchain
- - mean utilization per chainRchain
- - mean response time per chainTchain
- - mean throughput per chainCchain
- - mean system response time per chainXchain
- - mean system throughput per chain- Returns:
- chain performance metrics
-
snHasHomogeneousScheduling
Checks if the network uses an identical scheduling strategy at every station- Parameters:
sn
- - NetworkStruct object for the queueing network modelstrategy
- - Scheduling strategy- Returns:
- boolean
-
snHasPriorities
Checks if the network uses class priorities- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasForkJoin
Checks if the network uses fork and/or join nodes- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasProductFormExceptMultiClassHeterExpFCFS
Checks if the network satisfies product-form assumptions except multiclass heterogeneous FCFS- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasLoadDependence
Checks if the network has a station with load-dependent service process- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasClassSwitching
Checks if the network uses class-switching- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasProductForm
Checks if the network has a known product-form solution- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasMultiClassHeterFCFS
Checks if the network has one or more stations with multiclass heterogeneous FCFS- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasMultiClassHeterExpFCFS
Checks if the network has one or more stations with multiclass heterogeneous FCFS and exponential service- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasFCFS
-
snHasPS
-
snHasDPS
-
snHasGPS
-
snHasPSPRIO
-
snHasDPSPRIO
-
snHasGPSPRIO
-
snHasINF
-
snHasSIRO
-
snHasHOL
-
snHasLCFS
-
snHasLCFSPR
-
snHasSEPT
-
snHasLEPT
-
snHasSJF
-
snHasLJF
-
snHasMultiClassFCFS
-
snHasMultiServer
-
snHasSingleChain
-
snHasMultiChain
-
snHasSingleClass
-
snHasMultiClass
-
snHasClosedClasses
Checks if the network has one or more closed classes- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasMixedClasses
Checks if the network has both open and closed classes- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snHasOpenClasses
Checks if the network has one or more open classes- Parameters:
sn
- - NetworkStruct object for the queueing network model- Returns:
- boolean
-
snIsClosedModel
Checks if the network model is closed.- Parameters:
sn
- the NetworkStruct object representing the network- Returns:
- true if the network has finite jobs and no infinite jobs, false otherwise
-
snIsMixedModel
Checks if the network is a mixed model.- Parameters:
sn
- the NetworkStruct object for the queueing network model- Returns:
- true if the network has mixed classes, false otherwise
-
snIsOpenModel
Checks if the network is an open model.- Parameters:
sn
- the NetworkStruct object for the queueing network model- Returns:
- true if the network has infinite jobs and no finite jobs, false otherwise
-
snPrintRoutingMatrix
Prints the routing matrix of the network for all classes.- Parameters:
sn
- the NetworkStruct object for the queueing network model
-
snPrintRoutingMatrix
Prints the routing matrix of the network, optionally for a specific job class.- Parameters:
sn
- the NetworkStruct object for the queueing network modelonlyclass
- the specific job class to filter the routing matrix output, or null for all classes
-
snGetAvgArvRFromTput
Calculates the average arrival rates at each station from the network throughputs.- Parameters:
sn
- the NetworkStruct object for the queueing network modelTN
- the matrix of throughputsTH
- the matrix of other relevant parameters (may be null)- Returns:
- a matrix of average arrival rates
-
snIsStateValid
Checks if the network state is valid.- Parameters:
sn
- the NetworkStruct object for the queueing network model- Returns:
- true if the state is valid, false otherwise
-
snGetStateAggr
Aggregates the state of the network.- Parameters:
sn
- the NetworkStruct object for the queueing network model- Returns:
- a map of stateful nodes to their aggregated state matrices
-