jass.render
Class Probe
java.lang.Object
jass.engine.Out
jass.engine.InOut
jass.engine.FilterUG
jass.render.Probe
- All Implemented Interfaces:
- Sink, Source
public class Probe
- extends FilterUG
Write line data to output file (time sample\n). Place this UG in a line.
- Author:
- Kees van den Doel (kvdoel@cs.ubc.ca)
Field Summary |
protected boolean |
isOn
|
protected java.io.FileOutputStream |
outStream
|
protected java.io.PrintStream |
printStream
|
Constructor Summary |
Probe(int bufferSize)
Create. |
Probe(int bufferSize,
java.lang.String fn)
Create and initialize. |
Method Summary |
protected void |
computeBuffer()
Compute the next buffer and store in member float[] buf. |
boolean |
isOn()
|
void |
off()
|
void |
on()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outStream
protected java.io.FileOutputStream outStream
printStream
protected java.io.PrintStream printStream
isOn
protected boolean isOn
Probe
public Probe(int bufferSize,
java.lang.String fn)
- Create and initialize.
- Parameters:
bufferSize
- Buffer size used for real-time rendering.srate
- sampling rate in Hertz.fn
- log file name
Probe
public Probe(int bufferSize)
- Create. For derived classes.
- Parameters:
bufferSize
- Buffer size used for real-time rendering.
on
public void on()
off
public void off()
isOn
public boolean isOn()
computeBuffer
protected void computeBuffer()
- Compute the next buffer and store in member float[] buf.
- Specified by:
computeBuffer
in class Out