public class ReportFileOut extends TableOutput implements MessageReceiver
DEFAULT_FORMATTER
NORMAL_FILE_ACCESS
Constructor and Description |
---|
ReportFileOut(int timeFloats,
java.lang.String formatter)
Creates a file to print reports into a HTML page.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this traceout.
|
void |
open(java.lang.String name)
Opens a new file with the given filename for writing reports into a HTML
table.
|
void |
open(java.lang.String pathname,
java.lang.String name)
Opens a new file with the given file- and pathname for writing reports
into a HTML table.
|
void |
receive(Message m)
Messages are not handled by this reportout, so this method simply
returns.
|
void |
receive(Reporter r)
Receives a reporter and writes its contents formatted to a HTML table
into a file in the user's default directory.
|
getEndOfLine, getFileName, getSeparator, isEmpty, isOpen, setEndOfLine, setFileSystemAccess, setSeparator, write, writeln, writeSep
public ReportFileOut(int timeFloats, java.lang.String formatter)
timeFloats
- int : The number of floating point digits of the simulation
time values to be displayedpublic void close()
close
in class TableOutput
public void open(java.lang.String name)
open
in class TableOutput
name
- java.lang.String : The name of the file to be createdpublic void open(java.lang.String pathname, java.lang.String name)
name
- java.lang.String : The name of the file to be createdpathname
- java.lang.String : The file's output pathpublic void receive(Message m)
receive
in interface MessageReceiver
m
- Message : The message passed to this reportoutpublic void receive(Reporter r)
receive
in interface MessageReceiver
r
- Reporter : The Reporter to be processed