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

47 lines
1.1 KiB
Java
Raw Normal View History

/*******************************************************************************
* Copyright (c) 2014, 2015 MINRES Technologies GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* MINRES Technologies GmbH - initial API and implementation
*******************************************************************************/
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
}
}