69 строки
1.5 KiB
Java
69 строки
1.5 KiB
Java
/*
|
|
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
|
* reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*
|
|
*
|
|
* This file is almost a complete re-write for Open MPI compared to the
|
|
* original mpiJava package. Its license and copyright are listed below.
|
|
* See <path to ompi/mpi/java/README> for more information.
|
|
*
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
*
|
|
* File : Version.java
|
|
* Author : Nathaniel Graham
|
|
* Created : Thu Jul 23 09:25 2015
|
|
*/
|
|
|
|
package mpi;
|
|
|
|
/**
|
|
* Version and Subversion for MPI
|
|
*/
|
|
public final class Version
|
|
{
|
|
private final int version;
|
|
private final int subVersion;
|
|
|
|
protected Version(int version, int subVersion)
|
|
{
|
|
this.version = version;
|
|
this.subVersion = subVersion;
|
|
}
|
|
|
|
/**
|
|
* Gets the MPI version.
|
|
* @return MPI version
|
|
*/
|
|
public int getVersion()
|
|
{
|
|
return version;
|
|
}
|
|
|
|
/**
|
|
* Gets the MPI subversion.
|
|
* @return MPI subversion
|
|
*/
|
|
public int getSubVersion()
|
|
{
|
|
return subVersion;
|
|
}
|
|
|
|
} // Version
|