This commit is contained in:
2020-11-28 14:08:34 +01:00
parent 21d83f93dc
commit 90f09cc222
26 changed files with 324 additions and 477 deletions

View File

@ -173,8 +173,8 @@ public class BitVector implements IEvent {
}
@Override
public Class<?> getType() {
return this.getClass();
public WaveformType getType() {
return WaveformType.SIGNAL;
}
@Override

View File

@ -2,7 +2,7 @@ package com.minres.scviewer.database;
public class DoubleVal implements IEvent {
final double value;
public final double value;
public DoubleVal(double value) {
this.value=value;
@ -14,8 +14,8 @@ public class DoubleVal implements IEvent {
}
@Override
public Class<?> getType() {
return this.getClass();
public WaveformType getType() {
return WaveformType.SIGNAL;
}
@Override

View File

@ -6,6 +6,6 @@ public interface IEvent {
public EventKind getKind();
public Class<?> getType();
public WaveformType getType();
}

View File

@ -16,8 +16,6 @@ public interface IWaveform extends IHierNode {
public Long getId();
public String getKind();
public IWaveformDb getDb();
public Boolean equals(IWaveform other);
@ -28,8 +26,8 @@ public interface IWaveform extends IHierNode {
public IEvent[] getEventsBeforeTime(Long time);
public Class<?> getType();
public WaveformType getType();
public int getMaxConcurrency();
public int getWidth();
}

View File

@ -0,0 +1,5 @@
package com.minres.scviewer.database;
public enum WaveformType {
SIGNAL, TRANSACTION, FILTER
}