at.dms.kjc.cluster
Class NetStream

java.lang.Object
  extended by at.dms.kjc.cluster.NetStream

public class NetStream
extends Object

A class that represents a tape with input and output operators and object type. The input and output operators are identified by numbers. The mapping between numbers and nodes is maintained by NodeEnumerator.

Author:
Janis

Constructor Summary
NetStream(int source, int dest, CType type)
          Constructor.
 
Method Summary
 String consumer_name()
           
 int getDest()
          Get number representing the output operator
 int getSource()
          Get number representing the input operator
 CType getType()
          Get type of objects communicated over the tape
 String pop_buffer()
          a buffer name
 String pop_index()
          a variable name for a tape offset
 String pop_name()
           
 String producer_name()
           
 String push_buffer()
          a buffer name
 String push_index()
          a variable name for a tape offset
 String push_name()
          name of a push routine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetStream

public NetStream(int source,
                 int dest,
                 CType type)
Constructor.

Parameters:
source - a number representing input operator
dest - a number representing output operator
type - a CType representing type of data communicated between the operators
Method Detail

getSource

public int getSource()
Get number representing the input operator

Returns:
The number representing the input operator

getDest

public int getDest()
Get number representing the output operator

Returns:
The number representing the output operator

getType

public CType getType()
Get type of objects communicated over the tape

Returns:
The type of objects communicated over the tape

producer_name

public String producer_name()

consumer_name

public String consumer_name()

pop_name

public String pop_name()

push_name

public String push_name()
name of a push routine


pop_buffer

public String pop_buffer()
a buffer name


push_buffer

public String push_buffer()
a buffer name


pop_index

public String pop_index()
a variable name for a tape offset


push_index

public String push_index()
a variable name for a tape offset