muskel
Class ParDegree

java.lang.Object
  extended by muskel.ParDegree
All Implemented Interfaces:
Contract

public class ParDegree
extends java.lang.Object
implements Contract

This is a contract that can be issued to a manager, specifying the amount of processing elements that have to be used to implement the manager controlled computation.


Constructor Summary
ParDegree(int nw)
          constructor: sets up the initial value of the contract
 
Method Summary
 int getParDegree()
          allows the current implementation of the contract to be inspected
 void setParDegree(int nw)
          sets the parallelism degree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParDegree

public ParDegree(int nw)
constructor: sets up the initial value of the contract

Parameters:
nw - the paralleism degree to be sustained by this contract
Method Detail

getParDegree

public int getParDegree()
allows the current implementation of the contract to be inspected

Returns:
the current parallelism degree

setParDegree

public void setParDegree(int nw)
sets the parallelism degree. Used to change the value

Parameters:
nw - the new vaule of the parallelism degree TODO va registrato un handler per avvertire il manager di un cambiamento nel contratto. occorre anche definirne il tipo ...