fr.lifl.jedi.gui.display.dataExportation
Class SimulationFileOutputer

java.lang.Object
  extended by fr.lifl.jedi.gui.display.dataExportation.SimulationFileOutputer
All Implemented Interfaces:
ISimulationGUI

public class SimulationFileOutputer
extends java.lang.Object
implements ISimulationGUI

This is used to export character lines into a file.

Version:
JEDI V 2.2
Created the 7th may 2009
Author:
Yoann Kubera
SMAC Team (Systèmes Multi-Agents et Comportement)
LIFL (Laboratoire d'Informatique Fondamentale de Lille)
University of Lille, France

Constructor Summary
SimulationFileOutputer(java.lang.String filename)
          Constructor of the SimulationFileOutputer.
 
Method Summary
 void addLine(java.lang.String line)
          Adds a line to this SimulationFileOutputer.
 void addObserver(java.util.Observer o)
          Adds an observer to this GUI
 void endFileWriting()
          Closes the file where data are written.
 void notifyObservers(ISimulationEvent m)
          Notifies a message to all observers registered to this GUI.
 void removeObserver(java.util.Observer o)
          Removes an observer from this GUI
 void startFileWriting()
          Opens the file where data are written.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationFileOutputer

public SimulationFileOutputer(java.lang.String filename)
Constructor of the SimulationFileOutputer.

Method Detail

addLine

public void addLine(java.lang.String line)
Adds a line to this SimulationFileOutputer.

Parameters:
line - the line to add at the end of the output file.

startFileWriting

public void startFileWriting()
Opens the file where data are written.


endFileWriting

public void endFileWriting()
Closes the file where data are written.


addObserver

public void addObserver(java.util.Observer o)
Description copied from interface: ISimulationGUI
Adds an observer to this GUI

Specified by:
addObserver in interface ISimulationGUI
Parameters:
o - The observer to add to the GUI
See Also:
ISimulationGUI.addObserver(java.util.Observer)

notifyObservers

public void notifyObservers(ISimulationEvent m)
Description copied from interface: ISimulationGUI
Notifies a message to all observers registered to this GUI.

Specified by:
notifyObservers in interface ISimulationGUI
Parameters:
m - The notified event.
See Also:
ISimulationGUI.notifyObservers(fr.lifl.jedi.gui.ISimulationEvent)

removeObserver

public void removeObserver(java.util.Observer o)
Description copied from interface: ISimulationGUI
Removes an observer from this GUI

Specified by:
removeObserver in interface ISimulationGUI
Parameters:
o - The observer to add to the GUI
See Also:
ISimulationGUI.removeObserver(java.util.Observer)