ibis.mpj
Class Status

java.lang.Object
  extended by ibis.mpj.Status

public class Status
extends Object

Holds status information of requests and prequests.


Constructor Summary
Status()
           
 
Method Summary
 int getCount(Datatype datatype)
           
 int getElements(Datatype datatype)
           
 int getIndex()
          This method con be applied to any status object returned by Request.waitAny, Request.testAny, Request.waitSome, or Request.testSome.
 int getSize()
           
 int getSource()
           
 int getTag()
           
 boolean testCancelled()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Status

public Status()
Method Detail

getSource

public int getSource()
              throws MPJException
Returns:
source of the received message
Throws:
MPJException

getTag

public int getTag()
           throws MPJException
Returns:
tag of the received message
Throws:
MPJException

getIndex

public int getIndex()
             throws MPJException
This method con be applied to any status object returned by Request.waitAny, Request.testAny, Request.waitSome, or Request.testSome.

Returns:
index of the operation that completed
Throws:
MPJException

getSize

public int getSize()
            throws MPJException
Throws:
MPJException

getCount

public int getCount(Datatype datatype)
             throws MPJException
Parameters:
datatype - datatype of each item in receive buffer
Returns:
number of received entries
Throws:
MPJException

testCancelled

public boolean testCancelled()
                      throws MPJException
Throws:
MPJException

getElements

public int getElements(Datatype datatype)
                throws MPJException
Throws:
MPJException


The Ibis project