GridSim
v4.0

eduni.simjava
Class Sim_outfile

Object
  extended byeduni.simjava.Sim_outfile
All Implemented Interfaces:
Sim_output

public class Sim_outfile
extends Object
implements Sim_output

The default trace output class, which implements the Sim_output interface. This class implements output to a file called tracefile in the current directory, and is used by default in full Java applications. Note that it can't be used in applets, because they do not allow access to files.

Version:
1.0, 4 September, 1.1, 24 March 1997
Author:
Ross McNab, Fred Howell
See Also:
Sim_output

Constructor Summary
Sim_outfile()
          Constructor
 
Method Summary
 void close()
          Close the file
 void initialise()
          Attempt to open the file
 void println(String msg)
          Print a trace line to the file
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sim_outfile

public Sim_outfile()
Constructor

Method Detail

initialise

public void initialise()
Attempt to open the file

Specified by:
initialise in interface Sim_output

println

public void println(String msg)
Print a trace line to the file

Specified by:
println in interface Sim_output
Parameters:
msg - The message to print

close

public void close()
Close the file

Specified by:
close in interface Sim_output

GridSim
v4.0

The University of Melbourne, Australia, 2006