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 classDevStoneSimulation.BenchmarkTypeEnum to define the type of benchmark
-
Field Summary
Fields Modifier and Type Field Description protected StringcoordinatorAsStringCoordinator used for the simulationprotected StringdelayDistributionDistribution used to compute transition delaysprotected IntegerdepthDepth of the modelprotected org.apache.commons.math3.distribution.RealDistributiondistributionDistribution used to compute transition delaysprotected BooleanflattenedIf the model is flattenedprotected CoupledframeworkCoupled model: generator + DEVStone modelprotected StringloadXmlPath to load an XML file with the model definedprotected StringlogPathPath where the logger will be savedprotected DevStoneSimulation.BenchmarkTypemodelBenchmark modelprotected IntegernumThreadsNumber of threads used in the parallel coordinatorprotected StringsaveXmlPath to save an XML file with the model definedprotected LongseedSeed for the distributionprotected DevStonestoneDEVStone modelprotected IntegerwidthWidth 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()
-
-