public class Estimator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Node |
bottomNode |
private java.util.HashSet |
edges |
private java.lang.String |
fileName |
private java.lang.String |
method |
private java.util.HashMap |
nodes |
private int |
prec |
private long |
RFT |
private Node |
topNode |
private long |
totalET |
Constructor and Description |
---|
Estimator(java.lang.String fileName,
java.lang.String methodID,
long RFT,
int prec)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private int |
BTS() |
private void |
calculateSlotSize() |
private int |
DSC() |
int |
estimate()
Estimate the number of processors and return the value.
|
private long |
HEFT(int size) |
private int |
IterHEFT() |
static void |
main(java.lang.String[] args) |
private void |
readDAX() |
private void |
updateETs() |
private java.lang.String fileName
private java.lang.String method
private long RFT
private int prec
private Node topNode
private Node bottomNode
private java.util.HashSet edges
private java.util.HashMap nodes
private long totalET
public Estimator(java.lang.String fileName, java.lang.String methodID, long RFT, int prec)
fileName
- DAX file describing the workflowmethodID
- One of those; BTS, DSC, IterHEFTRFT
- requested finish time. i.e., deadlineprec
- The precision of the predicted execution timeprivate void readDAX() throws java.lang.Exception
java.lang.Exception
private void calculateSlotSize()
private void updateETs()
private int BTS()
private int DSC()
private int IterHEFT()
private long HEFT(int size)
public int estimate() throws java.lang.RuntimeException
java.lang.RuntimeException
public static void main(java.lang.String[] args)