View Javadoc

1   /*
2     The TauP Toolkit: Flexible Seismic Travel-Time and Raypath Utilities.
3     Copyright (C) 1998-2000 University of South Carolina
4   
5     This program is free software; you can redistribute it and/or
6     modify it under the terms of the GNU General Public License
7     as published by the Free Software Foundation; either version 2
8     of the License, or (at your option) any later version.
9   
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14  
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  
19    The current version can be found at 
20    <A HREF="www.seis.sc.edu">http://www.seis.sc.edu</A>
21  
22    Bug reports and comments should be directed to 
23    H. Philip Crotwell, crotwell@seis.sc.edu or
24    Tom Owens, owens@seis.sc.edu
25  
26  */
27  
28  
29  package edu.sc.seis.TauP;
30  
31  /*** convenience class for storing the version of the TauP stuff.
32    *
33    * @version 1.1.6 Fri Apr 21 17:44:10 GMT 2006
34  
35    *
36    * @author H. Philip Crotwell
37    *
38    */
39  public class Version {
40  
41      private static int majorNum = 1;
42  
43      /**</package-summary/html">returns the major version number for the package/ *//package-summary.html">em>* returns the major version number for the package. */
44      public static int getMajorNum() {
45          return majorNum;
46      }
47  
48      private static int minorNum = 1;
49  
50      /**</package-summary/html">returns the minor version number for the package/ *//package-summary.html">em>* returns the minor version number for the package. */
51      public static int getMinorNum() {
52          return minorNum;
53      }
54  
55      private static int touchNum = 6;
56  
57      /*** returns the touch version number for the package. The touch number
58       *  is changed between versions for every release and is mainly used for
59       *  quick bug fixes that only involve special cases or very small sections
60       *  of code. */
61      public static int getTouchNum() {
62          return touchNum;
63      }
64  
65      /*** use date -u to get immediately prior to recompiling. */
66      private static String dateCreated = "Fri Apr 21 17:44:10 GMT 2006"; 
67  
68  
69      /*** returns a string with version number and date created. The format
70       *  is "majorNum.minorNum.touchNum [BETA],  date" where the BETA signifies
71       *  a beta release and data is the format output by "data -u" on
72       *  my Solaris machine, something like "Tue May  5 20:12:55 GMT 1998". */
73      public static String getVersion() {
74          return majorNum+"."+minorNum+"."+touchNum+",  "+dateCreated;
75      }
76  }