root/ompi/mpi/java/java/ShiftParms.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. getRankSource
  2. getRankDest

   1 /*
   2  * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2005 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2015      Los Alamos National Security, LLC. All rights
  13  *                         reserved.
  14  * $COPYRIGHT$
  15  *
  16  * Additional copyrights may follow
  17  *
  18  * $HEADER$
  19  *
  20  *
  21  * This file is almost a complete re-write for Open MPI compared to the
  22  * original mpiJava package. Its license and copyright are listed below.
  23  * See <path to ompi/mpi/java/README> for more information.
  24  *
  25  *
  26  *  Licensed under the Apache License, Version 2.0 (the "License");
  27  *  you may not use this file except in compliance with the License.
  28  *  You may obtain a copy of the License at
  29  *
  30  *     http://www.apache.org/licenses/LICENSE-2.0
  31  *
  32  *  Unless required by applicable law or agreed to in writing, software
  33  *  distributed under the License is distributed on an "AS IS" BASIS,
  34  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  35  *  See the License for the specific language governing permissions and
  36  *  limitations under the License.
  37  *
  38  *
  39  * File         : ShiftParms.java
  40  * Author       : Xinying Li
  41  * Created      : Thu Apr  9 12:22:15 1998
  42  * Revision     : $Revision: 1.1 $
  43  * Updated      : $Date: 1998/08/26 18:50:05 $
  44  * Copyright: Northeast Parallel Architectures Center
  45  *            at Syracuse University 1998
  46  */
  47 
  48 package mpi;
  49 
  50 /**
  51  * Source and destination ranks for "shift" communication.
  52  */
  53 public final class ShiftParms
  54 {
  55         private final int rankSource;
  56         private final int rankDest;
  57 
  58         protected ShiftParms(int rankSource, int rankDest)
  59         {
  60                 this.rankSource = rankSource;
  61                 this.rankDest   = rankDest;
  62         }
  63 
  64         /**
  65          * Gets the source rank.
  66          * @return source rank
  67          */
  68         public int getRankSource()
  69         {
  70                 return rankSource;
  71         }
  72 
  73         /**
  74          * Gets the destination rank.
  75          * @return destination rank
  76          */
  77         public int getRankDest()
  78         {
  79                 return rankDest;
  80         }
  81 
  82 } // ShiftParms

/* [<][>][^][v][top][bottom][index][help] */