|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.simulator.SimTask
public class SimTask
A SimTask is a wrapper class enabling the LBG Simulator to be run as a GridApplication.
Particularly useful to run a parameter sweep over multiple scenarios.
| Constructor Summary | |
|---|---|
SimTask()
|
|
| Method Summary | |
|---|---|
void |
compute()
Runs the Grid application. |
byte[] |
getResult()
Gets computed results. |
void |
setInputData(GridData[] datas)
Sets the Grid application's input data files. |
void |
setParameters(java.lang.Object[] parameters)
Sets the Grid application's input parameters. |
void |
setPlaypen(java.lang.String playpen_dir)
Sets the playpen directory of the Resource where the Grid application can write and read temporary files. |
void |
setSupplier(java.lang.String supplier_id)
Sets the id of the Supplier Peer that controls the Resource running the Grid application |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimTask()
| Method Detail |
|---|
public void setInputData(GridData[] datas)
throws GridException
setInputData in interface GridApplicationdatas - target simulation description file
GridException - If the data is not what it should be.
public void setParameters(java.lang.Object[] parameters)
throws GridException
GridApplication
setParameters in interface GridApplicationparameters - An array of parameters as Objects. Can be empty, but
never null.
GridException - If the parameters are not what they should be.
public void setSupplier(java.lang.String supplier_id)
throws GridException
GridApplication
setSupplier in interface GridApplicationsupplier_id - Supplier Peer id
GridException - If the Supplier Peer id is not what it should be.
public void setPlaypen(java.lang.String playpen_dir)
throws GridException
GridApplication
setPlaypen in interface GridApplicationplaypen_dir - playpen directory
GridException - If the playpen directory is not what it should be.public void compute()
GridApplication
compute in interface GridApplicationpublic byte[] getResult()
GridApplicationNote: if no results are produced, new byte[0] can be used as a legal value.
getResult in interface GridApplication
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.