at.dms.kjc.flatgraph
Interface FlatWeight


public interface FlatWeight

Interface for a private class used in FlatWeights. Used to co-ordinate offsets in splitter / joiner weights with offsets in FlatNode.edges / FlatNode.incoming. Note that these offsets may be different of there are weights of 0 in a splitter or joiner, since weights of 0 do not lead to edges being created in a FlatNode.

Author:
Allyn

Method Summary
 FlatNode getNode()
          Get the node at the end of the current edge.
 int getNodesOffset()
          Get offset of the current edge in FlatNode.edges / FlatNode.incoming.
 int getWeight()
          Get the weight for the current edge.
 int getWeightsOffset()
          Get offset of the current edge's weight in SIRSplitter.getWeights() or SIRJoiner.getWeights().
 

Method Detail

getWeight

int getWeight()
Get the weight for the current edge.

Returns:
int

getNode

FlatNode getNode()
Get the node at the end of the current edge.

Returns:
FlatNode

getWeightsOffset

int getWeightsOffset()
Get offset of the current edge's weight in SIRSplitter.getWeights() or SIRJoiner.getWeights().

Returns:
offset

getNodesOffset

int getNodesOffset()
Get offset of the current edge in FlatNode.edges / FlatNode.incoming.

Returns:
offset