예제 #1
0
 public static String getInput(String s) {
   return inputMap.get(s);
 }
예제 #2
0
 public static void setExecStatus(String newStatus, boolean override) {
   String oldStatus = outputMap.get("exec.status");
   if (oldStatus == null || oldStatus.equals("running")) override = true;
   if (override) putOutput("exec.status", newStatus);
 }
예제 #3
0
 // Getting input and writing output
 public static boolean getBooleanInput(String s) {
   String t = inputMap.get(s, "0");
   return t.equals("true") || t.equals("1");
 }