Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Pool.java

00001 package gov.nasa.arc.ase.ltl;
00002 
00003 // Written by Dimitra Giannakopoulou, 19 Jan 2001
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       //            System.out.println("Value of last_assigned " +last_assigned);
00014       return (last_assigned ++);
00015     }
00016     else 
00017     {
00018       //            System.out.println("Value of last_assigned " + last_assigned);
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 }

Generated at Thu Feb 7 06:52:08 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001