org.objectweb.proactive.core.group.spmd
Class BarrierState

java.lang.Object
  extended byorg.objectweb.proactive.core.group.spmd.BarrierState
All Implemented Interfaces:
java.io.Serializable

public class BarrierState
extends java.lang.Object
implements java.io.Serializable

This class describes the state of a barrier.

Author:
Laurent Baduel
See Also:
Serialized Form

Constructor Summary
BarrierState()
           
 
Method Summary
 int getAwaitedCalls()
          Returns the number of awaited calls to finish the barrier
 int getReceivedCalls()
          Returns the number of received calls to finish the barrier
 void incrementReceivedCalls()
          Increments the number of received calls to finish the barrier
 void setAwaitedCalls(int nbCalls)
          Sets the number of calls need to finish the barrier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarrierState

public BarrierState()
Method Detail

getAwaitedCalls

public int getAwaitedCalls()
Returns the number of awaited calls to finish the barrier

Returns:
the number of awaited calls to finish the barrier

getReceivedCalls

public int getReceivedCalls()
Returns the number of received calls to finish the barrier

Returns:
the number of received calls to finish the barrier

setAwaitedCalls

public void setAwaitedCalls(int nbCalls)
Sets the number of calls need to finish the barrier

Parameters:
nbCalls - the number of calls need to finish the barrier

incrementReceivedCalls

public void incrementReceivedCalls()
Increments the number of received calls to finish the barrier



Copyright ? April 2005 INRIA All Rights Reserved.