This is our application using Scaladb in ADB class.
Change current directory to getting-started.
$ cd docs/getting-started
Please modify "scalardb.propaties" depending on your own environment.
Please get schema-loader from scalardb web site, and put it at
ADBdemo/docs/getting-started/
First, define the schema by doing the following command:
$ java -jar scalardb-schema-loader-<version>.jar --config scalardb.properties -f sample.json --coordinator
Next, please set main class "sample.PreExec" in "build.gradle".
mainClassName = "sample.PreExec"
Then, create traffic information by doing the following command:
$ gradlew clean build run
You can define your own route by modify "PreExec.java"
Please change the mainClassName from "sample.PreExec" to "sample.MaaSMain" in "build.gradle".
Then you can start our application runs by doing the following command:
$ gradlew clean build run
Please open the following URL on your blowser
http://localhost:7070/
Please use web application by following instruction on presentation slide.
I guess there is a bug caused by the route search algorithm, what makes the program enter an infinite loop, if there is a cycle in the route.