View Javadoc

1   package org.lcsim.recon.tracking.trfutil;
2   /**
3    * Returns an integer value for a Status object.
4    *@version 1.0
5    * @author  Norman A. graf
6    */
7   public class StatusInt
8   {
9       private int _status;
10      private int _value;
11      
12      /** Creates a new instance of StatusDouble */
13      public StatusInt(int status, int value)
14      {
15          _status = status;
16          _value = value;
17      }
18      
19      /**
20       * Return the status for this Status-Value pair.
21       * @return the integer status.
22       */
23      public int status()
24      {
25          return _status;
26      }
27      
28      /**
29       * Return the value for this Status-Value pair.
30       * @return the Object value.
31       */
32      public int value()
33      {
34          return _value;
35      }
36      
37      /**
38       * String representation of this object.
39       * @return a String representation of this object.
40       */
41      public String toString()
42      {
43          return _value+" has status: "+_status;
44      }
45      
46      
47  }