summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-17 15:22:19 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-07-17 15:22:19 +0200
commitd48380bd87dcef4b095b2a4e578d4461e68df73c (patch)
tree0ddbcbdd54d329b5130041d7a5fd25a8c1ca3875 /cfg-to-paths/src/Parameters.java
parent0f0af24525c614ebef7e7f8130ffced38d2da59a (diff)
Working on a way to CTL over DAG in Kodkod.
Diffstat (limited to 'cfg-to-paths/src/Parameters.java')
-rw-r--r--cfg-to-paths/src/Parameters.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/cfg-to-paths/src/Parameters.java b/cfg-to-paths/src/Parameters.java
new file mode 100644
index 0000000..8d0331b
--- /dev/null
+++ b/cfg-to-paths/src/Parameters.java
@@ -0,0 +1,55 @@
+public class Parameters
+{
+ private final String levels_dir;
+ private final String model_file;
+ private final boolean are_valid;
+
+ public static void print_usage ()
+ {
+ System.out.println
+ (
+ "Instr-to-kodkod\n"
+ + "USAGE:\n"
+ + "\tjava Main <LEVELS_DIR> <INSTRUCTIONS>\n"
+ + "PARAMETERS:\n"
+ + "\t<LEVELS_DIR>\tDirectory containing the level definitions.\n"
+ + "\t<INSTRUCTIONS>\tInstruction file describing the model.\n"
+ + "NOTES:\n"
+ + "\tThe properties to be verified still have to be hand coded in the"
+ + "source files (in Main.java)."
+ );
+ }
+
+ public Parameters (String... args)
+ {
+ if (args.length != 2)
+ {
+ print_usage();
+
+ levels_dir = new String();
+ model_file = new String();
+ are_valid = false;
+ }
+ else
+ {
+ levels_dir = args[0];
+ model_file = args[1];
+ are_valid = true;
+ }
+ }
+
+ public String get_levels_directory ()
+ {
+ return levels_dir;
+ }
+
+ public String get_model_file ()
+ {
+ return model_file;
+ }
+
+ public boolean are_valid ()
+ {
+ return are_valid;
+ }
+}