GridSim
v3.3

eduni.simjava
Class Sim_reportfile

Object
  extended byeduni.simjava.Sim_reportfile
All Implemented Interfaces:
Sim_reporter

public class Sim_reportfile
extends Object
implements Sim_reporter

This class is used to produce the simulation's report when running in standalone mode. It produces a file and is accessed to append information to it.

This class is used internally by Sim_system to produce the simulation's report and should not be used by the user.

Version:
1.0 11 July 2002
Author:
Costas Simatos
See Also:
Sim_system

Field Summary
(package private)  String filename
           
(package private)  PrintWriter output
           
 
Constructor Summary
Sim_reportfile(String filename)
          Create the report file with the given name.
 
Method Summary
 void append_report(String line)
          Append a line of information to the report file.
 void close_report()
          Closes the report file upon simulation termination.
 void setup_report()
          Sets up the report file at the beginning of the simulation.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

PrintWriter output

filename

String filename
Constructor Detail

Sim_reportfile

public Sim_reportfile(String filename)
Create the report file with the given name.

Parameters:
filename - The name of the report file
Method Detail

setup_report

public void setup_report()
Sets up the report file at the beginning of the simulation.

Specified by:
setup_report in interface Sim_reporter

append_report

public void append_report(String line)
Append a line of information to the report file.

Specified by:
append_report in interface Sim_reporter
Parameters:
line - The line of information to append

close_report

public void close_report()
Closes the report file upon simulation termination.

Specified by:
close_report in interface Sim_reporter

GridSim
v3.3

The University of Melbourne, Australia, 2005