程序包 mpi

类 Status

java.lang.Object
mpi.Status

public final class Status extends Object
This class represents MPI_Status.
  • 字段详细资料

    • data

      protected final long[] data
  • 构造器详细资料

    • Status

      protected Status()
      Status objects must be created only by the MPI methods.
  • 方法详细资料

    • getCount

      public int getCount(Datatype datatype) throws MPIException
      Returns the number of received entries.

      Java binding of the MPI operation MPI_GET_COUNT.

      参数:
      datatype - datatype of each item in receive buffer
      返回:
      number of received entries
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • isCancelled

      public boolean isCancelled() throws MPIException
      Tests if the communication was cancelled.

      Java binding of the MPI operation MPI_TEST_CANCELLED.

      返回:
      true if the operation was succesfully cancelled, false otherwise
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getElements

      public int getElements(Datatype datatype) throws MPIException
      Retrieves the number of basic elements from status.

      Java binding of the MPI operation MPI_GET_ELEMENTS.

      参数:
      datatype - datatype used by receive operation
      返回:
      number of received basic elements
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getElementsX

      public Count getElementsX(Datatype datatype) throws MPIException
      Retrieves the number of basic elements from status.

      Java binding of the MPI operation MPI_GET_ELEMENTS_X.

      参数:
      datatype - datatype used by receive operation
      返回:
      number of received basic elements
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • setElements

      public void setElements(Datatype datatype, int count) throws MPIException
      Sets the number of basic elements for this status object.

      Java binding of the MPI operation MPI_STATUS_SET_ELEMENTS.

      参数:
      datatype - datatype used by receive operation
      count - number of elements to associate with the status
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • setElementsX

      public void setElementsX(Datatype datatype, Count count) throws MPIException
      Sets the number of basic elements for this status object.

      Java binding of the MPI operation MPI_STATUS_SET_ELEMENTS_X.

      参数:
      datatype - datatype used by receive operation
      count - number of elements to associate with the status
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • setCancelled

      public void setCancelled(boolean flag) throws MPIException
      Sets the cancelled flag.

      Java binding of the MPI operation MPI_STATUS_SET_CANCELLED.

      参数:
      flag - if true indicates request was cancelled
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getSource

      public int getSource()
      Returns the "source" of message.

      Java binding of the MPI value MPI_SOURCE.

      返回:
      source of message
    • getTag

      public int getTag()
      Returns the "tag" of message.

      Java binding of the MPI value MPI_TAG.

      返回:
      tag of message
    • getError

      public int getError()
      Returns the MPI_ERROR of message.
      返回:
      error of message.
    • getIndex

      public int getIndex()
      Returns the index of message.
      返回:
      index of message.