Package xdevs.core.examples.devstone
Class DevStoneSimulation
- java.lang.Object
-
- xdevs.core.examples.devstone.DevStoneSimulation
-
public class DevStoneSimulation extends Object
Class to perform DEVStone simulations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DevStoneSimulation.BenchmarkType
Enum to define the type of benchmark
-
Field Summary
Fields Modifier and Type Field Description protected String
coordinatorAsString
Coordinator used for the simulationprotected String
delayDistribution
Distribution used to compute transition delaysprotected Integer
depth
Depth of the modelprotected org.apache.commons.math3.distribution.RealDistribution
distribution
Distribution used to compute transition delaysprotected Boolean
flattened
If the model is flattenedprotected Coupled
framework
Coupled model: generator + DEVStone modelprotected String
loadXml
Path to load an XML file with the model definedprotected String
logPath
Path where the logger will be savedprotected DevStoneSimulation.BenchmarkType
model
Benchmark modelprotected Integer
numThreads
Number of threads used in the parallel coordinatorprotected String
saveXml
Path to save an XML file with the model definedprotected Long
seed
Seed for the distributionprotected DevStone
stone
DEVStone modelprotected Integer
width
Width of the model
-
Constructor Summary
Constructors Constructor Description DevStoneSimulation()
-
-
-
Field Detail
-
model
protected DevStoneSimulation.BenchmarkType model
Benchmark model
-
width
protected Integer width
Width of the model
-
depth
protected Integer depth
Depth of the model
-
delayDistribution
protected String delayDistribution
Distribution used to compute transition delays
-
seed
protected Long seed
Seed for the distribution
-
coordinatorAsString
protected String coordinatorAsString
Coordinator used for the simulation
-
numThreads
protected Integer numThreads
Number of threads used in the parallel coordinator
-
flattened
protected Boolean flattened
If the model is flattened
-
loadXml
protected String loadXml
Path to load an XML file with the model defined
-
saveXml
protected String saveXml
Path to save an XML file with the model defined
-
logPath
protected String logPath
Path where the logger will be saved
-
distribution
protected org.apache.commons.math3.distribution.RealDistribution distribution
Distribution used to compute transition delays
-
framework
protected Coupled framework
Coupled model: generator + DEVStone model
-
stone
protected DevStone stone
DEVStone model
-
-
Method Detail
-
main
public static void main(String[] args)
-
printUsage
public static void printUsage()
-
-