1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 }