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

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

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

Author:
Laurent Baduel
See Also:
Serialized Form

Constructor Summary
ProActiveSPMDGroupManager()
           
 
Method Summary
 void addToBarrierTags(java.lang.String barrierID)
          Adds the barrier ID into the list of barrier ID used to tag messages.
 void addToCurrentBarriers(java.lang.String barrierName, BarrierState bs)
          Set a BarrierState for the specified barrier
 boolean checkExecution(java.util.LinkedList barrierTags)
          Check if the tags given in parameter contains none of the tags of the current barriers
 BarrierState getBarrierStateFor(java.lang.String barrierName)
          Return a BarrierState object representing the current state of a barrier.
 java.util.LinkedList getBarrierTags()
          Return the list of barrier tags
 java.lang.Object getSPMDGroup()
          Returns the SPMD group of the active object.
 boolean isCurrentBarriersEmpty()
          Check if there is active barriers
 boolean isTagsListEmpty()
          Check if the list of barrier tags is empty
 void remove(java.lang.String barrierName)
          Remove the informations (BarrierState and tag) of the specified barrier (invoked when the barrier is over).
 void setAwaitedBarrierCalls(java.lang.String barrierName, int nbCalls)
          Set the number of awaited barrier calls to release the specified barrier
 void setSPMDGroup(java.lang.Object o)
          Set the SPMD group for the active object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProActiveSPMDGroupManager

public ProActiveSPMDGroupManager()
Method Detail

setSPMDGroup

public void setSPMDGroup(java.lang.Object o)
Set the SPMD group for the active object.

Parameters:
o - - the new SPMD group

getSPMDGroup

public java.lang.Object getSPMDGroup()
Returns the SPMD group of the active object.

Returns:
the SPMD group of the active object

addToBarrierTags

public void addToBarrierTags(java.lang.String barrierID)
Adds the barrier ID into the list of barrier ID used to tag messages.

Parameters:
barrierID - the barrier name

getBarrierStateFor

public BarrierState getBarrierStateFor(java.lang.String barrierName)
Return a BarrierState object representing the current state of a barrier.

Parameters:
barrierName - the name of the barrier
Returns:
the state of the specified barrier

setAwaitedBarrierCalls

public void setAwaitedBarrierCalls(java.lang.String barrierName,
                                   int nbCalls)
Set the number of awaited barrier calls to release the specified barrier

Parameters:
barrierName - the name of the barrier
nbCalls - the number of awaited calls

addToCurrentBarriers

public void addToCurrentBarriers(java.lang.String barrierName,
                                 BarrierState bs)
Set a BarrierState for the specified barrier

Parameters:
barrierName - the name of the barrier
bs - a state for the barrier

remove

public void remove(java.lang.String barrierName)
Remove the informations (BarrierState and tag) of the specified barrier (invoked when the barrier is over).

Parameters:
barrierName - the name of the barrier

isTagsListEmpty

public boolean isTagsListEmpty()
Check if the list of barrier tags is empty

Returns:
true if the the list is empty, false if it is not

getBarrierTags

public java.util.LinkedList getBarrierTags()
Return the list of barrier tags

Returns:
a LinkedList containing the barrier tags

checkExecution

public boolean checkExecution(java.util.LinkedList barrierTags)
Check if the tags given in parameter contains none of the tags of the current barriers

Parameters:
barrierTags - a list of Tag
Returns:
true if barrierTags contains no tags of the current barriers, false if barrierTags contains at least one tag of the current barriers

isCurrentBarriersEmpty

public boolean isCurrentBarriersEmpty()
Check if there is active barriers

Returns:
true if there is no active barrier, false if there is at least one active barrier


Copyright 2001-2005 INRIA All Rights Reserved.