From 49159a9772ae809f7028fd8876e5f6edfc4f4020 Mon Sep 17 00:00:00 2001 From: Stefan Derkits Date: Tue, 14 May 2013 23:55:10 +0200 Subject: [PATCH] put ScenarioType in own file --- src/at/ac/tuwien/lsdc/JobGenerator.java | 5 +---- src/at/ac/tuwien/lsdc/types/ScenarioType.java | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 src/at/ac/tuwien/lsdc/types/ScenarioType.java diff --git a/src/at/ac/tuwien/lsdc/JobGenerator.java b/src/at/ac/tuwien/lsdc/JobGenerator.java index 9c35d96..66b2e0e 100644 --- a/src/at/ac/tuwien/lsdc/JobGenerator.java +++ b/src/at/ac/tuwien/lsdc/JobGenerator.java @@ -8,6 +8,7 @@ import java.util.Random; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import at.ac.tuwien.lsdc.types.ScenarioType; import au.com.bytecode.opencsv.CSVWriter; public class JobGenerator { @@ -15,10 +16,6 @@ public class JobGenerator { .getLogger(JobGenerator.class); private static final String USAGE = "JobGenerator needs exactly 3 parameters: Szenario, count, targetFile"; - private enum ScenarioType { - A, B, C - }; - private static ScenarioType scenario; private static int count; private static File targetFile; diff --git a/src/at/ac/tuwien/lsdc/types/ScenarioType.java b/src/at/ac/tuwien/lsdc/types/ScenarioType.java new file mode 100644 index 0000000..67d6a27 --- /dev/null +++ b/src/at/ac/tuwien/lsdc/types/ScenarioType.java @@ -0,0 +1,5 @@ +package at.ac.tuwien.lsdc.types; + +public enum ScenarioType { + A, B, C +} -- 2.43.0