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

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

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

Author:
Laurent Baduel
See Also:
Serialized Form

Constructor Summary
MethodBarrier(java.lang.String[] methodNames)
          Constructor
 
Method Summary
 boolean barrierOver()
          Tests if the barrier is achived or not.
 boolean checkMethod(java.lang.String methodName)
          Tests if this barrier wait for the specified method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodBarrier

public MethodBarrier(java.lang.String[] methodNames)
Constructor

Parameters:
methodNames - - the names of the methods awaited to release the barrier
Method Detail

barrierOver

public boolean barrierOver()
Tests if the barrier is achived or not.

Returns:
true if the barrier is ready to be released

checkMethod

public boolean checkMethod(java.lang.String methodName)
Tests if this barrier wait for the specified method. In that case tag, the method no more awaited and return true.

Parameters:
methodName - a method name
Returns:
true if the method was awaited by this barrier, else false


Copyright ? October 2004 INRIA All Rights Reserved.