SCViewer/plugins/com.minres.scviewer.database/src/com/minres/scviewer/database/DoubleVal.java

62 lines
1.3 KiB
Java
Raw Normal View History

/*******************************************************************************
* Copyright (c) 2020 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
*******************************************************************************/
2020-11-28 10:22:22 +01:00
package com.minres.scviewer.database;
/**
* The Class DoubleVal.
*/
2020-11-28 10:22:22 +01:00
public class DoubleVal implements IEvent {
/** The value. */
2020-11-28 14:08:34 +01:00
public final double value;
/**
* Instantiates a new double val.
*
* @param value the value
*/
2020-11-28 10:22:22 +01:00
public DoubleVal(double value) {
this.value = value;
2020-11-28 10:22:22 +01:00
}
/**
* Gets the kind.
*
* @return the kind
*/
2020-11-28 10:22:22 +01:00
@Override
public EventKind getKind() {
return EventKind.SINGLE;
}
/**
* Gets the type.
*
* @return the type
*/
2020-11-28 10:22:22 +01:00
@Override
2020-11-28 14:08:34 +01:00
public WaveformType getType() {
return WaveformType.SIGNAL;
2020-11-28 10:22:22 +01:00
}
/**
* Duplicate.
*
* @return the i event
* @throws CloneNotSupportedException the clone not supported exception
*/
2020-11-28 10:22:22 +01:00
@Override
public IEvent duplicate() throws CloneNotSupportedException {
return (IEvent) clone();
}
}