744 | | java -jar target/logconverter-2.1.3-jar-with-dependencies.jar src/test/resources/APP1646925947841.json |
745 | | }}} |
| 744 | java -jar target/logconverter-2.1.3-jar-with-dependencies.jar -s src/test/resources/APP1646925947841local.json -f CSV -o test.csv |
| 745 | }}} |
| 746 | |
| 747 | You can also convert an entire directory, like this (make sure you create the output dir and that all files in the source dir are NegoState objects) |
| 748 | {{{ |
| 749 | java -jar target/logconverter-2.1.3-jar-with-dependencies.jar -s src/test/resources/ -f CSV -o test |
| 750 | }}} |
| 751 | |
| 752 | If your output is CSV format, you get a csv file with a header {{{session,party,profile,utility |
| 753 | }}} and one row of data for each session result. |
| 754 | |
| 755 | If your output is JSON format, each SessionResult from the Session is converted to a SessionResultWithUtils, and the list of these objects is written. |
749 | | The logconverter outputs the converted json file to stdout. You may want to redirect this into a file for use in a statistical package like R. |
| 759 | You can directly import the CSV for statistical postprocessing, for instance using R: |
| 760 | |
| 761 | {{{ |
| 762 | R |
| 763 | data<-read.csv("test.csv") |
| 764 | aggregate(x=data$utility, by=list(data$party), FUN=mean) |
| 765 | }}} |
| 766 | |
| 767 | Of course you can also use any software that can read CSV to analyse the results, like Microsoft Excel, Python, Mathematica etc. |