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

Sch.java

00001 package gov.nasa.arc.ase.jpf;
00002 
00003 public class Sch {
00004   int process;
00005   int transition;
00006   int random;
00007 
00008   public Sch() {
00009     process = 0;
00010     transition = 0;
00011     random = 0;
00012   }  
00013   private Sch(int p, int t, int r) {
00014     process = p;
00015     transition = t;
00016     random = r;
00017   }  
00018   public Sch copy() {
00019     return new Sch(process, transition, random);
00020   }  
00021   public int getNextProcess() {
00022     random = 0;
00023     transition = 0;
00024     return process++;
00025   }  
00026   public int getNextRandom() {
00027     return random++;
00028   }  
00029   public int getNextTransition() {
00030     random = 0;
00031     return transition++;
00032   }  
00033   public int getProcess() {
00034     return process;
00035   }  
00036   public int getRandom() {
00037     return random;
00038   }  
00039   public int getTransition() {
00040     return transition;
00041   }  
00042   public void setNextRandom(int r) {
00043     random = r;
00044   }  
00045   public String toString() {
00046     return "@" + process + "," + transition + "r" + random;
00047   }  
00048 }

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