CoPS
Class FileWriter

java.lang.Object
  extended byCoPS.FileWriter
All Implemented Interfaces:
java.io.Serializable

public class FileWriter
extends java.lang.Object
implements java.io.Serializable

This class handles the writing to a file of logged information during the problem solving process of a TR agent and the other agents the TR brings into this process.

See Also:
Serialized Form

Constructor Summary
FileWriter(java.lang.String file)
          The constructur.
 
Method Summary
 void clear()
          This method clears the file
 java.lang.String getFileName()
          This method returns the file-name
 void write(java.lang.String text)
          This method handles the writing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWriter

public FileWriter(java.lang.String file)
The constructur.

Parameters:
file - the name of the file that should be written to.
Method Detail

write

public void write(java.lang.String text)
This method handles the writing

Parameters:
text - the text that should be written to the file.

clear

public void clear()
This method clears the file


getFileName

public java.lang.String getFileName()
This method returns the file-name

Returns:
The file name as a string.