eaLib API Docs
Last Modified : January 7 2002

mss.ea.stat
Class BinaryFileProcessor

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

public class BinaryFileProcessor
extends FileProcessor

Processor for saving individual streams to files in a binary format. This processor performs a serialization on the individual stream. The stream can be restored later using a BinaryFileInitialization. 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:49 $
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
BinaryFileProcessor(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

BinaryFileProcessor

public BinaryFileProcessor(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 .bis stands for binary 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