00001 package gov.nasa.arc.ase.ltl;
00002
00003
00004 class Pool
00005 {
00006 private static int last_assigned = 0;
00007 private static boolean stopped = false;
00008
00009 public static int assign()
00010 {
00011 if (!stopped)
00012 {
00013
00014 return (last_assigned ++);
00015 }
00016 else
00017 {
00018
00019 return (last_assigned);
00020 }
00021 }
00022 public static void reset_static()
00023 {
00024 last_assigned = 0;
00025 stopped = false;
00026 }
00027 public static void stop()
00028 {
00029 stopped = true;
00030 last_assigned--;
00031 }
00032 }