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

Author:
Laurent Baduel
See Also:
Serialized Form

Constructor Summary
BarrierState()
          Constructor
 
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
 boolean isLocalyCalled()
          Return true if the local barrier call was performed
 void setAwaitedCalls(int nbCalls)
          Sets the number of calls need to finish the barrier
 void tagLocalyCalled()
          Set the localy call state to true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarrierState

public BarrierState()
Constructor

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


tagLocalyCalled

public void tagLocalyCalled()
Set the localy call state to true


isLocalyCalled

public boolean isLocalyCalled()
Return true if the local barrier call was performed

Returns:
true if the local barrier call was performed, else return false


Copyright ? October 2004 INRIA All Rights Reserved.