eaLib API Docs
Last Modified : January 7 2002

mss.ea.stat
Class XMLFileProcessor

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.stat.AbstractPrintProcessor
              |
              +--mss.ea.stat.FileProcessor
                    |
                    +--mss.ea.stat.XMLFileProcessor
All Implemented Interfaces:
SingleStreamProcessor, StreamProcessor

public class XMLFileProcessor
extends FileProcessor

Processor for saving individual streams to files in a XML format. This processor performs a XML serialization on the individual stream. The stream can be restored later using a XMLFileInitialization. Everytime the printStream() method is invoked the stream is written to a different file.

Since:
0.2.2
Version:
$Revision: 1.3 $ $Date: 2001/11/26 09:23:50 $
Author:
Andreas Rummler

Fields inherited from class mss.ea.stat.FileProcessor
filebody, suffix
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
XMLFileProcessor(java.lang.String body)
          Constructor with filename body.
 
Method Summary
 void printStream(IndividualStream is)
          Saves the individual stream to a file.
 
Methods inherited from class mss.ea.stat.FileProcessor
setSuffix
 
Methods inherited from class mss.ea.stat.AbstractPrintProcessor
process
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mss.ea.core.StreamProcessor
getName
 

Constructor Detail

XMLFileProcessor

public XMLFileProcessor(java.lang.String body)
Constructor with filename body.
Parameters:
body - body of filename to write to
Method Detail

printStream

public void printStream(IndividualStream is)
Saves the individual stream to a file. The stream is saved to a file named _.. The identifier is generated automatically to prevent overwriting old files. The default suffix .xis stands for XML individual stream.
Parameters:
is - individual stream to be saved
Returns:
individual stream

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS