SCViewer/com.minres.scviewer.database/src/com/minres/scviewer/database/SignalChange.java

37 lines
556 B
Java
Raw Normal View History

2015-01-06 17:14:16 +01:00
package com.minres.scviewer.database;
2015-01-20 18:50:15 +01:00
public class SignalChange implements IWaveformEvent {
2015-01-06 17:14:16 +01:00
2015-01-20 18:50:15 +01:00
Long time;
2015-01-06 17:14:16 +01:00
public SignalChange() {
2015-01-20 18:50:15 +01:00
time=0L;
2015-01-06 17:14:16 +01:00
}
2015-01-20 18:50:15 +01:00
public SignalChange(Long time) {
2015-01-06 17:14:16 +01:00
super();
this.time = time;
}
@Override
2015-01-20 18:50:15 +01:00
public int compareTo(IWaveformEvent o) {
2015-01-06 17:14:16 +01:00
return time.compareTo(o.getTime());
}
@Override
2015-01-20 18:50:15 +01:00
public Long getTime() {
2015-01-06 17:14:16 +01:00
return time;
}
2015-01-20 18:50:15 +01:00
public void setTime(Long time) {
2015-01-06 17:14:16 +01:00
this.time = time;
}
@Override
2015-01-20 18:50:15 +01:00
public IWaveformEvent duplicate() throws CloneNotSupportedException {
return (IWaveformEvent) this.clone();
2015-01-06 17:14:16 +01:00
}
}