Package mpi
Class Status
java.lang.Object
mpi.Status
This class represents
MPI_Status
.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Status()
Status objects must be created only by the MPI methods. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of received entries.int
getElements
(Datatype datatype) Retrieves the number of basic elements from status.getElementsX
(Datatype datatype) Retrieves the number of basic elements from status.int
getError()
Returns theMPI_ERROR
of message.int
getIndex()
Returns the index of message.int
Returns the "source" of message.int
getTag()
Returns the "tag" of message.boolean
Tests if the communication was cancelled.void
setCancelled
(boolean flag) Sets the cancelled flag.void
setElements
(Datatype datatype, int count) Sets the number of basic elements for this status object.void
setElementsX
(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_ERROR
of message.- Returns:
- error of message.
-
getIndex
public int getIndex()Returns the index of message.- Returns:
- index of message.
-