at.dms.kjc.spacedynamic
Class FileReaderDevice

java.lang.Object
  extended by at.dms.kjc.spacedynamic.IODevice
      extended by at.dms.kjc.spacedynamic.FileReaderDevice

public class FileReaderDevice
extends IODevice

This class represents a file reader in the backend. It store various information for the file reader in easy-to-access form. It extends IODevice so it is connected to the virtual chip that we construct in this backend.

Author:
mgordon

Field Summary
 
Fields inherited from class at.dms.kjc.spacedynamic.IODevice
isDynamic, port
 
Constructor Summary
FileReaderDevice(StreamGraph sg, FlatNode node)
           
 
Method Summary
 FlatNode getDest()
           
 String getFileName()
           
 FlatNode getFlatNode()
           
 SIRFileReader getSIRFileReader()
           
 CType getType()
           
 String getTypeCode()
          Return 1 for floating point or 0 for int.
 void setDynamic()
           
 String toString()
           
 
Methods inherited from class at.dms.kjc.spacedynamic.IODevice
connect, getPort, isDynamic, isFileReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileReaderDevice

public FileReaderDevice(StreamGraph sg,
                        FlatNode node)
Method Detail

setDynamic

public void setDynamic()

getDest

public FlatNode getDest()

getFlatNode

public FlatNode getFlatNode()

getSIRFileReader

public SIRFileReader getSIRFileReader()

getFileName

public String getFileName()

getType

public CType getType()

toString

public String toString()
Specified by:
toString in class IODevice

getTypeCode

public String getTypeCode()
Return 1 for floating point or 0 for int. Used for the raw file reader device.

Returns:
1 for floating point or 0 for int.