/xdevs.java

Version of the xDEVS simulator for Java projects

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

xDEVS: Java implementation

This is the Java implementation of the xDEVS simulation engine (OpenJDK>=11). It has been configured as a Maven project.

Quick start

  • clone the git repository:
    git clone git@github.com:iscar-ucm/xdevs.java.git
        
  • the easiest way to test the repository is compiling and running a DevStone benchmark:
    mvn clean
    mvn compile
    mvn package
        
  • now we can run a DEVStone model, for instance:
    rm -rf logger.log
    java -cp target/xdevs-3.0.0-jar-with-dependencies.jar xdevs.core.examples.devstone.DevStoneSimulation --model=HO --width=150 --depth=150 --coordinator=Coordinator
    tail logger.log 
    [INFO-main|00:00:02.582]: MODEL,MAXEVENTS,WIDTH,DEPTH,NUM_DELT_INTS,NUM_DELT_EXTS,NUM_OF_EVENTS,SIMULATION_TIME,MODEL_CREATION_TIME,ENGINE_SETUP_TIME 
    [INFO-main|00:00:02.661]: HO,1,150,150,1665076,1665076,1665076,2.439,0.114,0.029