Package mpi
Class Status
java.lang.Object
mpi.Status
This class represents
MPI_Status.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatus()Status objects must be created only by the MPI methods. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of received entries.intgetElements(Datatype datatype) Retrieves the number of basic elements from status.getElementsX(Datatype datatype) Retrieves the number of basic elements from status.intgetError()Returns theMPI_ERRORof message.intgetIndex()Returns the index of message.intReturns the "source" of message.intgetTag()Returns the "tag" of message.booleanTests if the communication was cancelled.voidsetCancelled(boolean flag) Sets the cancelled flag.voidsetElements(Datatype datatype, int count) Sets the number of basic elements for this status object.voidsetElementsX(Datatype datatype, Count count) Sets the number of basic elements for this status object.
-
Field Details
-
data
protected final long[] data
-
-
Constructor Details
-
Status
protected Status()Status objects must be created only by the MPI methods.
-
-
Method Details
-
getCount
Returns the number of received entries.Java binding of the MPI operation
MPI_GET_COUNT.- Parameters:
datatype- datatype of each item in receive buffer- Returns:
- number of received entries
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
isCancelled
Tests if the communication was cancelled.Java binding of the MPI operation
MPI_TEST_CANCELLED.- Returns:
- true if the operation was succesfully cancelled, false otherwise
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getElements
Retrieves the number of basic elements from status.Java binding of the MPI operation
MPI_GET_ELEMENTS.- Parameters:
datatype- datatype used by receive operation- Returns:
- number of received basic elements
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
getElementsX
Retrieves the number of basic elements from status.Java binding of the MPI operation
MPI_GET_ELEMENTS_X.- Parameters:
datatype- datatype used by receive operation- Returns:
- number of received basic elements
- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setElements
Sets the number of basic elements for this status object.Java binding of the MPI operation
MPI_STATUS_SET_ELEMENTS.- Parameters:
datatype- datatype used by receive operationcount- number of elements to associate with the status- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setElementsX
Sets the number of basic elements for this status object.Java binding of the MPI operation
MPI_STATUS_SET_ELEMENTS_X.- Parameters:
datatype- datatype used by receive operationcount- number of elements to associate with the status- Throws:
MPIException- Signals that an MPI exception of some sort has occurred.
-
setCancelled
Sets the cancelled flag.Java binding of the MPI operation
MPI_STATUS_SET_CANCELLED.- Parameters:
flag- if true indicates request was cancelled- Throws:
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.- Returns:
- source of message
-
getTag
public int getTag()Returns the "tag" of message.Java binding of the MPI value
MPI_TAG.- Returns:
- tag of message
-
getError
public int getError()Returns theMPI_ERRORof message.- Returns:
- error of message.
-
getIndex
public int getIndex()Returns the index of message.- Returns:
- index of message.
-