ScaMATA is a library of algorithms which aim at allocating some tasks to some agents.
We have implemented our prototype with the Scala programming language and the Akka toolkit. The latter, which is based on the actor model, allows us to fill the gap between the specification and its implementation.
In order to run the demonstration you need:
-
the Java virtual machine JVM 1.8.0_60.
In order to compile the code you need:
-
the programming language Scala 2.12.4;
-
the interactive build tool SBT 0.13.
java -jar ScaIA-assembly-X.Y.jar org.scaia.util.asia.MATASolver -c -d -v examples/toy4x4.txt examples/toy4x4Result.txt
Usage:
Usage: java -jar ScaMATA-assembly-X.Y.jar [-v] inputFilename outputFilename
The following options are available:
-v: verbose
-d: distributed (false by default)
-f: LF (LCmax by default)
-c: LC (LCmax by default)
Add to ~/.sbt/0.13/global.sbt
resolvers += "Artima Maven Repository" at "http://repo.artima.com/releases"
Compile
sbt compile
then
sbt "run org.scamata.util.MATASolver -v -d examples/toy4x4.txt examples/toy4x4Cmax.txt"
and eventually
sbt assembly
Copyright (C) Maxime MORGE 2018
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program.
If not, see http://www.gnu.org/licenses/.