public abstract class BasicComputation.SourceTask extends BaseSource implements Receptor
Modifier and Type | Field and Description |
---|---|
int |
count |
Constructor and Description |
---|
SourceTask() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
DataObject<?> data)
This method is called when the data is available
|
void |
execute()
Execute without an incoming message
|
IONames |
getReceivableNames()
This method should return a set of receivable names, that are expected by this receptor.
|
abstract void |
sendmessage(java.util.HashMap<java.lang.String,DefaultVertex> hashMap1,
java.util.HashMap<java.lang.String,VertexStatus> hashMap2) |
void |
writemessage(java.lang.String edgename,
java.lang.String destinationVertex,
double value) |
public abstract void sendmessage(java.util.HashMap<java.lang.String,DefaultVertex> hashMap1, java.util.HashMap<java.lang.String,VertexStatus> hashMap2)
public void writemessage(java.lang.String edgename, java.lang.String destinationVertex, double value)
public void execute()
ISource
public void add(java.lang.String name, DataObject<?> data)
Receptor
public IONames getReceivableNames()
Receptor
If Collector
C of task graph TG1 collects variable "var1" and C's parallelism is n, If
Receptor
R of task graph TG2 is interested in receiving "var1", R's parallelism should
be equal to n and, R should have the same distribution as C among the workers.
getReceivableNames
in interface Receptor