net.sourceforge.cilib.simulator
Class SynchronizedOutputBuffer

java.lang.Object
  extended by net.sourceforge.cilib.simulator.SynchronizedOutputBuffer

public class SynchronizedOutputBuffer
extends Object

Author:
Edwin Peer

Constructor Summary
SynchronizedOutputBuffer(String file, int measurements, int samples)
          Creates a new instance of SynchronizedOutputBuffer.
 
Method Summary
 void close()
           
 void flush()
           
protected  int getMeasurementId(Measurement measurement)
           
protected  int getSampleId(Algorithm algorithm)
           
 void write(String string)
           
 void writeDescription(Measurement measurement)
           
protected  void writeLine(String string)
           
 void writeMeasuredValue(Object value, Algorithm algorithm, Measurement measurement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedOutputBuffer

public SynchronizedOutputBuffer(String file,
                                int measurements,
                                int samples)
Creates a new instance of SynchronizedOutputBuffer.

Method Detail

writeDescription

public void writeDescription(Measurement measurement)

writeMeasuredValue

public void writeMeasuredValue(Object value,
                               Algorithm algorithm,
                               Measurement measurement)

write

public void write(String string)

flush

public void flush()

close

public void close()

writeLine

protected void writeLine(String string)

getMeasurementId

protected int getMeasurementId(Measurement measurement)

getSampleId

protected int getSampleId(Algorithm algorithm)


Copyright © 2009 CIRG. All Rights Reserved.