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

37 lines
584 B
Java
Raw Normal View History

2015-01-06 17:14:16 +01:00
package com.minres.scviewer.database;
public class SignalChange implements ISignalChange {
EventTime time;
public SignalChange() {
time=EventTime.ZERO;
}
public SignalChange(EventTime time) {
super();
this.time = time;
}
@Override
public int compareTo(ISignalChange o) {
return time.compareTo(o.getTime());
}
@Override
public EventTime getTime() {
return time;
}
public void setTime(EventTime time) {
this.time = time;
}
@Override
public ISignalChange duplicate() throws CloneNotSupportedException {
return (ISignalChange) this.clone();
}
}