|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmuskel.Manager
public class Manager
takes care of a program execution request, with contract (#PEs). A manager object should be instantiated to run muskel programs. The manager is to be given the program, the input and output stream and a performance contract. The manager can be asked to "compute" the program by invoking the homonimous method.
| Field Summary | |
|---|---|
static boolean |
debug
|
| Constructor Summary | |
|---|---|
Manager()
this constructs the manager without giving all the parameters. |
|
Manager(Compute ppgm,
InputManager iism,
OutputManager oosm)
This constructs the manager. |
|
| Method Summary | |
|---|---|
void |
compute()
the method starts the parallel computation of the program stored in the manager. |
CodeStorage |
getCodeStorage()
this method returns a pointer to the CodeStorage. |
MdfGraph |
newGraph(Compute pgm)
gives the programmer the ability to retrieve the compiler graph of a skeleton program. This can be used to merge with ad hoc data flow graphs, provided by the user, that express parallelism exploitation patterns not provided within the native skeletons. |
void |
setContract(Contract c)
the method is used to set up the performance contract with the manager. |
void |
setInputManager(InputManager im)
accessor method to set the input manager |
void |
setOutputManager(OutputManager om)
accessor method to set the output manager |
void |
setProgram(Compute pgm)
accessor method to set program |
int |
storeOpCode(Compute opc)
sets a new Compute code in the CodeStorage, returning the index in the CodeStorage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean debug
| Constructor Detail |
|---|
public Manager(Compute ppgm,
InputManager iism,
OutputManager oosm)
ppgm - the program to be computed. It must implement the Compute interfaceiism - the input manager, a class implementing the InputManager Interface that requires the methods boolean
hasNext() (telling whether or not the input stream has further items) and an Object next() method that returns the
next item of the input streamoosm - the output manager. Its void deliver(Object res) method is called each time a new result is availablepublic Manager()
| Method Detail |
|---|
public void setProgram(Compute pgm)
pgm - the program to be computed by the managerpublic void setInputManager(InputManager im)
im - the input managerpublic void setOutputManager(OutputManager om)
om - the output managerpublic void setContract(Contract c)
c - the performance contract to be satisfied by the managerpublic CodeStorage getCodeStorage()
-
public int storeOpCode(Compute opc)
the - Compute program to be stored in the CodeStorage
public MdfGraph newGraph(Compute pgm)
pgm -
public void compute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||