Package jline.gen
Class NetworkGenerator
java.lang.Object
jline.gen.NetworkGenerator
A generator object that generates queueing network models
based on user specification. Characteristics of generated
models can be configured via the generator's properties.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with default settingsNetworkGenerator(String schedStrat, String routingStrat, String distribution, String cclassJobLoad, boolean hasVaryingServiceRates, boolean hasMultiServerQueues, boolean hasRandomCSNodes, boolean hasMultiChainCS, boolean initializeStates, Function<Integer, Matrix> topologyFcn) Constructor with all options including state initializationNetworkGenerator(String schedStrat, String routingStrat, String distribution, String cclassJobLoad, boolean hasVaryingServiceRates, boolean hasMultiServerQueues, boolean hasRandomCSNodes, boolean hasMultiChainCS, Function<Integer, Matrix> topologyFcn) Constructor with custom settings -
Method Summary
Modifier and TypeMethodDescriptionstatic MatrixcyclicGraph(int numVertices) Generate a cyclic graph topologygenerate()Main function to call.generate(int numQueues) static voidinitDefaultStates(Network model) Initialize default states for all nodes in the network Based on MATLAB's initDefaultCustom functionbooleanbooleanbooleanbooleanbooleanstatic MatrixrandGraph(int numVertices) Generate a random strongly connected graph topology This implements the algorithm from MATLAB's randGraph functionvoidsetCclassJobLoad(String load) voidsetDistribution(String distrib) voidsetInitializeStates(boolean initializeStates) voidsetRoutingStrat(String strat) voidsetSchedStrat(String strat) setSeed(long seed) Reseeds this generator's internal random source for reproducible generation.voidsetTopologyFcn(Function<Integer, Matrix> fcn)
-
Constructor Details
-
NetworkGenerator
public NetworkGenerator()Constructor with default settings -
NetworkGenerator
public NetworkGenerator(String schedStrat, String routingStrat, String distribution, String cclassJobLoad, boolean hasVaryingServiceRates, boolean hasMultiServerQueues, boolean hasRandomCSNodes, boolean hasMultiChainCS, Function<Integer, Matrix> topologyFcn) Constructor with custom settings -
NetworkGenerator
public NetworkGenerator(String schedStrat, String routingStrat, String distribution, String cclassJobLoad, boolean hasVaryingServiceRates, boolean hasMultiServerQueues, boolean hasRandomCSNodes, boolean hasMultiChainCS, boolean initializeStates, Function<Integer, Matrix> topologyFcn) Constructor with all options including state initialization
-
-
Method Details
-
setSeed
Reseeds this generator's internal random source for reproducible generation. Note: therandGraphtopology uses a separate static random source; use a deterministic topology (e.g.cyclicGraph) for fully reproducible output.- Parameters:
seed- the seed value- Returns:
- this generator (for chaining)
-
generate
Main function to call. Returns a generated QN model according to specified properties of the NetworkGenerator object -
generate
-
generate
-
generate
-
generate
-
setSchedStrat
-
setRoutingStrat
-
setDistribution
-
setCclassJobLoad
-
setTopologyFcn
-
getSchedStrat
-
getRoutingStrat
-
getDistribution
-
getCclassJobLoad
-
isHasVaryingServiceRates
public boolean isHasVaryingServiceRates() -
isHasMultiServerQueues
public boolean isHasMultiServerQueues() -
isHasRandomCSNodes
public boolean isHasRandomCSNodes() -
isHasMultiChainCS
public boolean isHasMultiChainCS() -
isInitializeStates
public boolean isInitializeStates() -
setInitializeStates
public void setInitializeStates(boolean initializeStates) -
randGraph
Generate a random strongly connected graph topology This implements the algorithm from MATLAB's randGraph function -
cyclicGraph
Generate a cyclic graph topology -
initDefaultStates
Initialize default states for all nodes in the network Based on MATLAB's initDefaultCustom function
-