public static class TestSignalRecorder.Empty extends TestSignalRecorder
TestSignalRecorderSet can be built
which produces a separation line.TestSignalRecorder.Empty, TestSignalRecorder.Time| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
lineSep |
lenClean, moduleName, pos| Constructor and Description |
|---|
Empty(java.lang.String lineSep)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
int |
addSignals(int time,
int lenCurr,
boolean bAdd)
This operation is empty, does nothing, returns 0, no contribution for presentation.
|
void |
output(java.lang.Appendable out)
This operation outputs all lines.
|
void |
registerLines() |
addSignals, checkLen, clean, endSignals, getLine, registerLinepublic Empty(java.lang.String lineSep)
lineSep - null or "", then an empty line will be output.
contains one character, then this character is repeated till the current length of all other lines.
contains a longer String: Writes this string as separation line.public void registerLines()
registerLines in class TestSignalRecorderpublic int addSignals(int time,
int lenCurr,
boolean bAdd)
throws java.io.IOException
addSignals in class TestSignalRecordertime - the system time may be used for outputlenCurr - the current length of the StringBuilder lines before adding for this timestamp.
This parameter can be used for TestSignalRecorder.checkLen(StringBuilder, int).bAdd - true then other TestSignalsRecorders have added an information in this step time before.
This information can be used to decide whether to add.
But it depends on the order of registering in TestSignalRecorderSet.registerRecorder(TestSignalRecorder).
If you want to use this function, this test generator is subordinate, it accepts the behavior of the recorders before
delivered in the return value of this operation.
If the return value of all called before addSignals(...) operation is 0, then this value is false
on usage of TestSignalRecorderSet.addSignals(int).java.io.IOExceptionpublic void output(java.lang.Appendable out)
throws java.io.IOException
TestSignalRecorderoutput in class TestSignalRecorderjava.io.IOException