Class Edge
- java.lang.Object
-
- edu.isi.pegasus.planner.provisioner.Edge
-
public class Edge extends java.lang.Object
An 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 boolean
complete
long
compTime
(package private) long
cost
static long
DEFAULT_BPS
static long
DEFAULT_LATENCY
static long
DEFAULT_SIZE
boolean
deleted
(package private) java.lang.String
fileName
(package private) long
fileSize
(package private) Node
fromNode
(package private) Node
toNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCost()
long
getCost(long bandwidth, long latency)
Node
getFrom()
return the 'from' taskjava.lang.String
getID()
Node
getTo()
return the 'to' taskvoid
init()
initiate bit and completion time variable used bt HEFT algorithmvoid
print()
void
setCost(long c)
void
setFrom(Node e)
set the 'from' taskvoid
setTo(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()
-
-