at.dms.kjc.spacedynamic
Class FileReaderDevice
java.lang.Object
at.dms.kjc.spacedynamic.IODevice
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
FileReaderDevice
public FileReaderDevice(StreamGraph sg,
FlatNode node)
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.