View Javadoc

1   package org.lcsim.recon.tracking.trfbase;
2   /** An enumeration class providing BoundedStat enums
3    *
4    *@author Norman A. Graf
5    *@version 1.0
6    *
7    */
8   public class BoundedStat
9   {
10      private String _stat;
11      
12      private BoundedStat(String stat)
13      {
14          _stat = stat;
15      }
16      
17      /** String representation of BoundedStat.
18       * @return String representation of BoundedStat.
19       */
20      public String toString()
21      {
22          String className = getClass().getName();
23          int lastDot = className.lastIndexOf('.');
24          if(lastDot!=-1)className = className.substring(lastDot+1);
25          
26          return className+" "+_stat;
27      }
28      
29      /** Bounds are undefined.
30       */
31      public final static BoundedStat UNDEFINED_BOUNDS = new BoundedStat("UNDEFINED_BOUNDS");
32      /** In bounds.
33       */
34      public final static BoundedStat IN_BOUNDS = new BoundedStat("IN_BOUNDS");
35      /** Out of bounds.
36       */
37      public final static BoundedStat OUT_OF_BOUNDS = new BoundedStat("OUT_OF_BOUNDS");
38      /** Both bounds.
39       */
40      public final static BoundedStat BOTH_BOUNDS = new BoundedStat("BOTH_BOUNDS");
41      
42  }
43  
44