Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.common
Class FileWriter

java.lang.Object
  extended byorg.evolvica.engine.AbstractOperator
      extended byorg.evolvica.core.common.AbstractGeneticOperator
          extended byorg.evolvica.core.common.AbstractWriter
              extended byorg.evolvica.core.common.FileWriter
All Implemented Interfaces:
IGeneticOperator, IOperator, IProcessor, java.io.Serializable
Direct Known Subclasses:
ASCIIFileWriter, BinaryFileWriter, XMLWriter

public abstract class FileWriter
extends AbstractWriter

Abstract base class for a print processor which saves an individual set into a file.

Since:
0.4.0
Version:
$Revision: 1.8 $ $Date: 2004/05/26 11:57:58 $
Author:
Andreas Rummler
See Also:
Serialized Form

Field Summary
protected  java.lang.String body
          Body of the filename.
protected  Directory directory
          Directory to write to.
protected  java.lang.String suffix
          Filename suffix.
 
Fields inherited from class org.evolvica.engine.AbstractOperator
descriptor, element, id, name
 
Constructor Summary
FileWriter()
          Default constructor.
FileWriter(java.lang.String body, java.lang.String suffix)
          Constructor with filename body and suffix.
 
Method Summary
 java.lang.String getBody()
          Returns the body.
 Directory getDirectory()
          Returns the directory.
 java.lang.String getSuffix()
          Returns the suffix.
 void setBody(java.lang.String string)
          Sets the body.
 void setDirectory(Directory dir)
          Stes the directory.
 void setSuffix(java.lang.String string)
          Sets the suffix.
 
Methods inherited from class org.evolvica.core.common.AbstractWriter
process
 
Methods inherited from class org.evolvica.engine.AbstractOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.evolvica.engine.IOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 

Field Detail

body

protected java.lang.String body
Body of the filename.


suffix

protected java.lang.String suffix
Filename suffix.


directory

protected Directory directory
Directory to write to.

Constructor Detail

FileWriter

public FileWriter()
Default constructor. The filename is set to "iset" and the suffix is set to "dat".


FileWriter

public FileWriter(java.lang.String body,
                  java.lang.String suffix)
Constructor with filename body and suffix.

Parameters:
body - body of the filename to write to
suffix - suffix of the filename
Method Detail

getBody

public java.lang.String getBody()
Returns the body.

Returns:
body.

getDirectory

public Directory getDirectory()
Returns the directory.

Returns:
directory.

getSuffix

public java.lang.String getSuffix()
Returns the suffix.

Returns:
suffix

setBody

public void setBody(java.lang.String string)
             throws java.beans.PropertyVetoException
Sets the body.

Parameters:
string - new body
Throws:
java.beans.PropertyVetoException

setDirectory

public void setDirectory(Directory dir)
                  throws java.beans.PropertyVetoException
Stes the directory.

Parameters:
dir - directory
Throws:
java.beans.PropertyVetoException

setSuffix

public void setSuffix(java.lang.String string)
               throws java.beans.PropertyVetoException
Sets the suffix.

Parameters:
string - new suffix
Throws:
java.beans.PropertyVetoException

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems