Class Edge
- java.lang.Object
-
- edu.isi.pegasus.planner.provisioner.Edge
-
public class Edge extends java.lang.ObjectAn instance of this class represent an edge of workflow which is data dependencies between two tasks. So this class contains references of two dependent nodes(From node and To node) and information of data between them; file name, data size and data transfer time.- Author:
- Eunkyu Byun
-
-
Field Summary
Fields Modifier and Type Field Description booleancompletelongcompTime(package private) longcoststatic longDEFAULT_BPSstatic longDEFAULT_LATENCYstatic longDEFAULT_SIZEbooleandeleted(package private) java.lang.StringfileName(package private) longfileSize(package private) NodefromNode(package private) NodetoNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCost()longgetCost(long bandwidth, long latency)NodegetFrom()return the 'from' taskjava.lang.StringgetID()NodegetTo()return the 'to' taskvoidinit()initiate bit and completion time variable used bt HEFT algorithmvoidprint()voidsetCost(long c)voidsetFrom(Node e)set the 'from' taskvoidsetTo(Node e)set the 'to' task
-
-
-
Field Detail
-
DEFAULT_SIZE
public static final long DEFAULT_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_BPS
public static final long DEFAULT_BPS
- See Also:
- Constant Field Values
-
DEFAULT_LATENCY
public static final long DEFAULT_LATENCY
- See Also:
- Constant Field Values
-
fromNode
Node fromNode
-
toNode
Node toNode
-
cost
long cost
-
fileName
java.lang.String fileName
-
fileSize
long fileSize
-
complete
public boolean complete
-
compTime
public long compTime
-
deleted
public boolean deleted
-
-
Constructor Detail
-
Edge
public Edge(Node from, Node to, java.lang.String fileName, long fileSize)
Constructor- Parameters:
from- One of nodes this edge connects which generate the datato- Another node this edge connects which get the datafileName- the stored name of datafileSize- the size of the data, DTT is calculated according to BPS and Latency
-
-
Method Detail
-
init
public void init()
initiate bit and completion time variable used bt HEFT algorithm
-
getFrom
public Node getFrom()
return the 'from' task
-
getTo
public Node getTo()
return the 'to' task
-
setFrom
public void setFrom(Node e)
set the 'from' task- Parameters:
e- the from task to be set
-
setTo
public void setTo(Node e)
set the 'to' task- Parameters:
e- the to task to be set
-
getID
public java.lang.String getID()
-
getCost
public long getCost(long bandwidth, long latency)
-
getCost
public long getCost()
-
setCost
public void setCost(long c)
-
print
public void print()
-
-