Skip to content

Program: Transaction Simulator

hkanezashi edited this page Apr 25, 2019 · 6 revisions

Transaction simulator is a Java application to simulate banking transactions based on the generated transaction network and account information, and output transaction log data.

Requirements

Put all jar files of the following libraries to jars directory.

git clone https://github.com/EdgarLopezPhD/PaySim.git
cd PaySim
git checkout 62a29b77c28bd03e717a67c8ab975c671ba0080d
mkdir bin jars
cp /path/to/commons-math-3-3.6.1*.jar /path/to/mason.18.jar jars/
javac -d bin -cp "jars/*" src/paysim/*.java
cd bin
jar cf paysim.jar paysim

Then, run the following command to compile.

sh scripts/build_AMLSim.sh

How to run

sh scripts/run_AMLSim.sh [SimulationName] [Steps]
  • SimulationName: Simulation name
  • Steps: Number of steps per simulation

Example:

sh scripts/run_AMLSim.sh sample 150

After running this script, the transaction log file can be found at outputs/sample/sample_log.csv.

Clone this wiki locally