at.dms.kjc.backendSupport
Interface Layout<T extends ComputeNode>

All Known Implementing Classes:
AnnealedGreedyLayout, AnnealedLayout, BasicGreedyLayout, CellNoSWPipeLayout, GreedyLayout, ManualSliceLayout, NoSWPipeLayout, SimpleCellLayout

public interface Layout<T extends ComputeNode>

A Layout makes the association between a ComputeNode and a SliceNode.

Author:
mgordon

Method Summary
 T getComputeNode(SliceNode node)
          Get the ComputeNode for a Slice
 void run()
          Do the setup for getComputeNode.
 void setComputeNode(SliceNode node, T computeNode)
          Set the ComputeNode for a Slice
 

Method Detail

getComputeNode

T getComputeNode(SliceNode node)
Get the ComputeNode for a Slice

Parameters:
node - : the SliceNode to look up.
Returns:
the ComputeNode that should execute the SliceNode.

setComputeNode

void setComputeNode(SliceNode node,
                    T computeNode)
Set the ComputeNode for a Slice

Parameters:
node - the SliceNode to associate with ...
computeNode - the ComputeNode where the SliceNode should execute.

run

void run()
Do the setup for getComputeNode.