public class NullOutput extends java.lang.Object implements OutputType
Constructor and Description |
---|
NullOutput() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file
|
java.lang.String |
getAppendix()
deliever the file appendix used for the specific format (e.g. html, txt)
|
void |
open(java.lang.String pathname,
java.lang.String name)
opens a new file for writting the output
|
void |
receive(Message m)
Implement this method to define the behaviour of the messagereceiver when
messages are sent to it.
|
void |
receive(Reporter r)
Implement this method to define the behaviour of the messagereceiver when
reporters are sent to it.
|
void |
setTimeFloats(int timeFloats) |
public void setTimeFloats(int timeFloats)
public void open(java.lang.String pathname, java.lang.String name)
OutputType
open
in interface OutputType
pathname
- String: path to write inname
- String: name of the filepublic java.lang.String getAppendix()
OutputType
getAppendix
in interface OutputType
public void receive(Message m)
MessageReceiver
receive
in interface MessageReceiver
m
- Message : The message sent to the messagereceiverpublic void receive(Reporter r)
MessageReceiver
receive
in interface MessageReceiver
r
- Reporter : The reporter sent to the messagereceiverpublic void close()
OutputType
close
in interface OutputType