1 /*
2 * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
3 * reserved.
4 * $COPYRIGHT$
5 *
6 * Additional copyrights may follow
7 *
8 * $HEADER$
9 *
10 *
11 * This file is almost a complete re-write for Open MPI compared to the
12 * original mpiJava package. Its license and copyright are listed below.
13 * See <path to ompi/mpi/java/README> for more information.
14 *
15 *
16 * Licensed under the Apache License, Version 2.0 (the "License");
17 * you may not use this file except in compliance with the License.
18 * You may obtain a copy of the License at
19 *
20 * http://www.apache.org/licenses/LICENSE-2.0
21 *
22 * Unless required by applicable law or agreed to in writing, software
23 * distributed under the License is distributed on an "AS IS" BASIS,
24 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 * See the License for the specific language governing permissions and
26 * limitations under the License.
27 *
28 *
29 * File : Version.java
30 * Author : Nathaniel Graham
31 * Created : Thu Jul 23 09:25 2015
32 */
33
34 package mpi;
35
36 /**
37 * Version and Subversion for MPI
38 */
39 public final class Version
40 {
41 private final int version;
42 private final int subVersion;
43
44 protected Version(int version, int subVersion)
45 {
46 this.version = version;
47 this.subVersion = subVersion;
48 }
49
50 /**
51 * Gets the MPI version.
52 * @return MPI version
53 */
54 public int getVersion()
55 {
56 return version;
57 }
58
59 /**
60 * Gets the MPI subversion.
61 * @return MPI subversion
62 */
63 public int getSubVersion()
64 {
65 return subVersion;
66 }
67
68 } // Version