Package mpi
Class Status
- java.lang.Object
-
- mpi.Status
-
public final class Status extends java.lang.ObjectThis class representsMPI_Status.
-
-
Field Summary
Fields Modifier and Type Field Description protected long[]data
-
Constructor Summary
Constructors Modifier Constructor Description protectedStatus()Status objects must be created only by the MPI methods.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount(Datatype datatype)Returns the number of received entries.intgetElements(Datatype datatype)Retrieves the number of basic elements from status.CountgetElementsX(Datatype datatype)Retrieves the number of basic elements from status.intgetError()Returns theMPI_ERRORof message.intgetIndex()Returns the index of message.intgetSource()Returns the "source" of message.intgetTag()Returns the "tag" of message.booleanisCancelled()Tests 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.
-
-
-
Method Detail
-
getCount
public int getCount(Datatype datatype) throws MPIException
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
public boolean isCancelled() throws MPIExceptionTests 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
public int getElements(Datatype datatype) throws MPIException
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
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.- 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
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.- 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
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.- 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
public void setCancelled(boolean flag) throws MPIExceptionSets 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.
-
-