Skip to content

Commit

Permalink
Add .jar-executable
Browse files Browse the repository at this point in the history
  • Loading branch information
t-lichtenstein committed Jun 1, 2021
1 parent 922c704 commit 7d3c96b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>org.example</groupId>
<artifactId>entity-aware-case-notion-detection</artifactId>
<version>1.0-SNAPSHOT</version>

<packaging>jar</packaging>
<dependencies>
<!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
import java.util.concurrent.*;
import java.util.stream.Collectors;

public class CaseNotionDetector {
public class EntityAwareCaseNotionDetector {

public static void main(String[] args) {

// Parse command line arguments
Options options = new Options();
options.addOption("i", "input", true, "Specify location of the CSV-file representing the unlabeled event log taken as input");
options.addOption("o", "output", true, "Specify directory for the resulting XES-logs");
options.addOption("s", "separator", true, "Set column separator of the CSV-file specified as input");
options.addOption("s", "separator", true, "Set column separator of the CSV-file specified as input (default: ';')");
options.addOption("t", "threshold", true, "Set similarity threshold 0 <= t <= 1\n(default: 0.7)");
options.addOption("v", "verbose", false, "Enable detailed console output");
options.addOption("h", "help", false, "Show available options");

String inputFilePath = "";
String outputDirectoryPath = "";
String columnSeparator = ",";
String columnSeparator = ";";
double selectedSimilarityThreshold = 0.7;
boolean verbose = false;

Expand All @@ -35,7 +35,11 @@ public static void main(String[] args) {
try {
CommandLine cmd = parser.parse(options, args);
if (cmd.hasOption("h")) {
formatter.printHelp( "caseNotionDetector [OPTIONS] -i [CSV-FILE] -o [DIRECTORY]", options );
formatter.printHelp( "java -jar entity-aware-case-notion-detection.jar [OPTIONS] -i [CSV-FILE] -o [DIRECTORY]", options );
System.exit(0);
}
if (!cmd.hasOption("i") || !cmd.hasOption("o")) {
System.out.println("Please provide an input event log (-i) and an output directory (-o) via the command line arguments");
System.exit(0);
}
inputFilePath = cmd.getOptionValue("i");
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: EntityAwareCaseNotionDetector

0 comments on commit 7d3c96b

Please sign in to comment.