org.objectweb.proactive.branchnbound
Class ProActiveBranchNBound

java.lang.Object
  extended by org.objectweb.proactive.branchnbound.ProActiveBranchNBound

public class ProActiveBranchNBound
extends java.lang.Object

This class contains all static methods to get Manager for solving the Branch and Bound porblem with a given root task.

The returned Manager is a ProActive Active Object. This object aims to configure and to handle the computation.

Author:
Alexandre di Costanzo Created on Apr 20, 2005
See Also:
Manager

Constructor Summary
ProActiveBranchNBound()
           
 
Method Summary
static Manager newBnB(Task root, Node managerNode, Node[][] nodes, java.lang.String queueType)
          Create a new activate Manager with the given root task.
static Manager newBnB(Task root, Node managerNode, Node[] nodes, java.lang.String queueType)
          Create a new activate Manager with the given root task.
static Manager newBnB(Task root, VirtualNode[] virtualNodes, java.lang.String queueType)
          Create a new activate Manager with the given root task.
static Manager newBnB(Task root, VirtualNode virtualNode, java.lang.String queueType)
          Create a new activate Manager with the given root task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProActiveBranchNBound

public ProActiveBranchNBound()
Method Detail

newBnB

public static Manager newBnB(Task root,
                             Node managerNode,
                             Node[] nodes,
                             java.lang.String queueType)
                      throws ActiveObjectCreationException,
                             NodeException
Create a new activate Manager with the given root task.

Parameters:
root - the root Task.
managerNode - the Node where the Manager will be activate.
nodes - an array of Nodes for distributing the computation.
queueType - the Java class name of the Branch and Bound Queue. This class must implement the interface TaskQueue.
Returns:
a ProActive Active Object which is the Manager.
Throws:
ActiveObjectCreationException - a problem occured while activating the Manager.
NodeException - a problem with managerNode.
See Also:
Manager, Task, TaskQueue

newBnB

public static Manager newBnB(Task root,
                             VirtualNode virtualNode,
                             java.lang.String queueType)
                      throws ActiveObjectCreationException,
                             NodeException
Create a new activate Manager with the given root task. The Manager is activate in the local default node of the current JVM.

Parameters:
root - the root Task.
virtualNode - this contains a set of Nodes for distributing the computation.
queueType - the Java class name of the Branch and Bound Queue. This class must implement the interface TaskQueue.
Returns:
a ProActive Active Object which is the Manager.
Throws:
ActiveObjectCreationException - a problem occured while activating the Manager.
NodeException - a problem with the default node.
See Also:
Manager, Task, TaskQueue

newBnB

public static Manager newBnB(Task root,
                             Node managerNode,
                             Node[][] nodes,
                             java.lang.String queueType)
                      throws ActiveObjectCreationException,
                             NodeException
Create a new activate Manager with the given root task. Using hierachic ProActive group communication.

Parameters:
root - the root Task.
managerNode - the Node where the Manager will be activate.
nodes - an array of array of Nodes for distributing the computation with using hierachic group communication, with node[i][j] is a sub-group.
queueType - the Java class name of the Branch and Bound Queue. This class must implement the interface TaskQueue.
Returns:
a ProActive Active Object which is the Manager.
Throws:
ActiveObjectCreationException - a problem occured while activating the Manager.
NodeException - a problem with managerNode.
See Also:
Manager, Task, TaskQueue

newBnB

public static Manager newBnB(Task root,
                             VirtualNode[] virtualNodes,
                             java.lang.String queueType)
                      throws ActiveObjectCreationException,
                             NodeException

Create a new activate Manager with the given root task. Using hierachic ProActive group communication. The Manager is activate in the local default node of the current JVM.

It is strongly recommended to **NOT ACTIVATE** the passed virtual nodes. Because, the framework uses an optimzed way to deploying the computation.

Also, we recomend to you that to use a vitural node by clusters or sites for optimizing communication and active object creation.

Parameters:
root - the root Task.
virtualNodes - for distributing the computation with using hierachic group communication, with virtualNodes[i] is a sub-group.
queueType - e Java class name of the Branch and Bound Queue. This class must implement the interface TaskQueue.
Returns:
a ProActive Active Object which is the Manager.
Throws:
ActiveObjectCreationException - a problem occured while activating the Manager.
NodeException - a problem with the default node.
See Also:
Manager, Task, TaskQueue


Copyright 2001-2007 INRIA All Rights Reserved.