nenok.lc.alloc
Interface Allocator

All Known Implementing Classes:
Default, Multiway

public interface Allocator

This is the basic interface for the node processor allocation strategy.

Version:
1.1
Author:
Marc Pouly

Method Summary
 void allocate(Node node)
          Dynamic allocation procedure.
 String getName()
           
 int totalCosts()
           
 

Method Detail

allocate

void allocate(Node node)
              throws RemoteException
Dynamic allocation procedure. Allocates a processor to the node given as argument. This method is called from the collect algorithm for each node strictly before any computations are executed onto this node. Note: Static allocation is not possible with this method. To do so, we recomment to implement a corresponding constructor and to provide an empty implementation of this method.

Parameters:
node - The current node to which a processor needs to be allocated.
Throws:
RemoteException - Communication exception caused by accessing processors.

totalCosts

int totalCosts()
Returns:
Returns the total communication costs caused so far.

getName

String getName()
Returns:
The name of this processor allocation model.