public class TestSignalRecorderSet
extends java.lang.Object
TestSignalRecorder
for horizontal test signal outputs.
Any module can have one or more TestSignalRecorder
implementations.
This class summarize all module recorders in a List container to need one simple calls for the test signal recording and output.Modifier and Type | Field and Description |
---|---|
private int |
lenCurr |
private java.util.List<TestSignalRecorder> |
recs |
Constructor and Description |
---|
TestSignalRecorderSet() |
Modifier and Type | Method and Description |
---|---|
void |
addSignals(int time)
Add all signals to all recorders and equalizes the line length.
|
void |
clean()
Cleans all buffers in the recorders.
|
java.lang.StringBuilder |
getLine(java.lang.String id) |
void |
output(java.lang.Appendable out)
Outputs the lines of all registered
registerRecorder(TestSignalRecorder) . |
void |
registerRecorder(TestSignalRecorder rec)
Add one recorder (usual inside a module) to this set.
|
private java.util.List<TestSignalRecorder> recs
private int lenCurr
public void registerRecorder(TestSignalRecorder rec)
this.outH = new TestSignalRecorderSet(); this.outH.addRecorder(this.fpga.ref.ct.new TestSignals("ct"));
rec
- the recorder in the module.public void clean()
TestSignalRecorder.clean()
for all registered instances with registerRecorder(TestSignalRecorder)
.public void addSignals(int time) throws java.io.IOException
TestSignalRecorder#addSignals(int, boolean)
for all registered instances
and regards successfully adding signals of a previos recorder to force add on following ones
setting bAdd = true (second argument of TestSignalRecorderSet()
addSignals(int)
.
TestSignalRecorder.endSignals(int)
is set for all recorders
so that all lines have the same length determined by the highest return value of TestSignalRecorder#addSignals(int, boolean)
.
It means the column position in all lines for the time related next information is the same.
Expect lines which are not regarded in the zAdd return value. See example on TestSignalRecorder#addSignals(int, boolean)
.java.io.IOException
public void output(java.lang.Appendable out) throws java.io.IOException
registerRecorder(TestSignalRecorder)
.
This should be the last action of a test run.
This operation can be called more as one time for different output channels,
for example output to System.out and to a file.out
- Any appendable, for example System.out or an opened filejava.io.IOException
public java.lang.StringBuilder getLine(java.lang.String id)