org.objectweb.proactive.branchnbound.core
Class Manager

java.lang.Object
  extended byorg.objectweb.proactive.branchnbound.core.Manager
All Implemented Interfaces:
Active, InitActive, java.io.Serializable

public class Manager
extends java.lang.Object
implements java.io.Serializable, InitActive

Author:
Alexandre di Costanzo Created on May 31, 2005
See Also:
Serialized Form

Field Summary
static java.lang.String backupTaskFile
           
 
Constructor Summary
Manager()
          The no args constructor for ProActive.
Manager(Task root, Node myNode, Node[][] nodes, java.lang.String queueType)
          Contruct a new Manager.
Manager(Task root, Node myNode, Node[] nodes, java.lang.String queueType)
          Contruct a new Manager.
Manager(Task root, Node myNode, VirtualNode[] virtualNodes, java.lang.String queueType)
          Contruct a new Manager.
 
Method Summary
 void initActivity(Body body)
          Prepare everything for the computation.
 void setHungryLevel(int level)
          Set the hungry level of the task queue.
 Result start()
          Start the computation.
 Result start(ibis.impl.messagePassing.InputStream task, ibis.impl.messagePassing.InputStream result)
          Start a computation from a previous backup.
 Result start(Task rootTask)
          Start the computation with a new root task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backupTaskFile

public static final java.lang.String backupTaskFile
Constructor Detail

Manager

public Manager()
The no args constructor for ProActive.


Manager

public Manager(Task root,
               Node myNode,
               Node[] nodes,
               java.lang.String queueType)
Contruct a new Manager.

Parameters:
root - the root task.
myNode - the node where this is running.
nodes - the array of nodes for the computation.
queueType - the class name of the task queue.

Manager

public Manager(Task root,
               Node myNode,
               Node[][] nodes,
               java.lang.String queueType)
Contruct a new Manager. Hierarchic communication are used between the given array of nodes.

Parameters:
root - the root task.
myNode - the node where this is running.
nodes - the array of array of nodes for the computation.
queueType - the class name of the task queue.

Manager

public Manager(Task root,
               Node myNode,
               VirtualNode[] virtualNodes,
               java.lang.String queueType)
Contruct a new Manager. Hierarchic communication are used between the given virtual nodes. For a faster deployment, it is suggested to do not activate virtual nodes before.

Parameters:
root - the root task.
myNode - the node where this is running.
virtualNodes - the array of vitrual nodes for the computation.
queueType - the class name of the task queue.
Method Detail

initActivity

public void initActivity(Body body)
Prepare everything for the computation. Activate the task queue, create Workers, etc.

Specified by:
initActivity in interface InitActive
Parameters:
body - the body of the active object being initialized
See Also:
InitActive.initActivity(org.objectweb.proactive.Body)

start

public Result start()
Start the computation.

Returns:
the best found solution.

start

public Result start(Task rootTask)
Start the computation with a new root task.

Parameters:
rootTask - the new root task.
Returns:
the best found solution.

start

public Result start(ibis.impl.messagePassing.InputStream task,
                    ibis.impl.messagePassing.InputStream result)
Start a computation from a previous backup.

Parameters:
task - the stream with task backup.
result - the stream with result backup.
Returns:
the best found solution.

setHungryLevel

public void setHungryLevel(int level)
Set the hungry level of the task queue.

Parameters:
level - the hungry level.
See Also:
TaskQueue.setHungryLevel(int)


Copyright 2001-2005 INRIA All Rights Reserved.