public class BinaryTreeRouter
extends java.lang.Object
Constructor and Description |
---|
BinaryTreeRouter(Config cfg,
LogicalPlan plan,
int root,
java.util.Set<java.lang.Integer> dests)
Initialize the data structure
|
Modifier and Type | Method and Description |
---|---|
int |
destinationIdentifier(int source,
int path) |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getExternalSendTasks(int source) |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getExternalSendTasksForPartial(int source) |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getInternalSendTasks(int source) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getPathAssignedToTasks() |
java.util.Set<java.lang.Integer> |
getReceiveSources() |
boolean |
isLastReceiver() |
int |
mainTaskOfExecutor(int executor,
int path) |
java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> |
receiveExpectedTaskIds() |
java.util.Set<java.lang.Integer> |
receivingExecutors() |
java.util.Set<java.lang.Integer> |
sendQueueIds() |
public BinaryTreeRouter(Config cfg, LogicalPlan plan, int root, java.util.Set<java.lang.Integer> dests)
cfg
- plan
- root
- dests
- public java.util.Set<java.lang.Integer> getReceiveSources()
public java.util.Set<java.lang.Integer> receivingExecutors()
public java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> receiveExpectedTaskIds()
public boolean isLastReceiver()
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getInternalSendTasks(int source)
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getExternalSendTasks(int source)
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getExternalSendTasksForPartial(int source)
public int mainTaskOfExecutor(int executor, int path)
public int destinationIdentifier(int source, int path)
public java.util.Map<java.lang.Integer,java.lang.Integer> getPathAssignedToTasks()
public java.util.Set<java.lang.Integer> sendQueueIds()