Classify streams and generators consistently across database loaders
This commit is contained in:
1 parent
591fe2c4c7
commit
6668151a53
19 files changed
+149
-81
No files matched your search
-5
@@ -57,11 +57,6 @@ public class TxEvent implements ITxEvent {
|
||||
return type.toString()+"@"+getTime()+" of tx #"+tx.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public WaveformType getType() {
|
||||
return WaveformType.STREAM;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRowIndex() {
|
||||
return inGenerator ? tx.getConcurrencyIdxInGen() : tx.getConcurrencyIndxInStream();
|
||||
|
||||
+6
@@ -18,6 +18,7 @@ import java.util.TreeMap;
|
||||
|
||||
import com.minres.scviewer.database.DirectionType;
|
||||
import com.minres.scviewer.database.IWaveform;
|
||||
import com.minres.scviewer.database.WaveformType;
|
||||
import com.minres.scviewer.database.sqlite.db.IDatabase;
|
||||
import com.minres.scviewer.database.sqlite.db.SQLiteDatabaseSelectHandler;
|
||||
import com.minres.scviewer.database.sqlite.tables.ScvGenerator;
|
||||
@@ -39,6 +40,11 @@ public class TxGenerator extends AbstractTxStream {
|
||||
stream.addChild(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WaveformType getType() {
|
||||
return WaveformType.GENERATOR;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getId() {
|
||||
return (long) scvGenerator.getId();
|
||||
|
||||
Reference in new issue
Block a user