2021-01-09 12:43:02 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* 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;
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/**
|
|
|
|
* The Class DoubleVal.
|
|
|
|
*/
|
2020-11-28 10:22:22 +01:00
|
|
|
public class DoubleVal implements IEvent {
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/** The value. */
|
2020-11-28 14:08:34 +01:00
|
|
|
public final double value;
|
2021-01-09 12:43:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new double val.
|
|
|
|
*
|
|
|
|
* @param value the value
|
|
|
|
*/
|
2020-11-28 10:22:22 +01:00
|
|
|
public DoubleVal(double value) {
|
2021-01-09 12:43:02 +01:00
|
|
|
this.value = value;
|
2020-11-28 10:22:22 +01:00
|
|
|
}
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/**
|
|
|
|
* Gets the kind.
|
|
|
|
*
|
|
|
|
* @return the kind
|
|
|
|
*/
|
2020-11-28 10:22:22 +01:00
|
|
|
@Override
|
|
|
|
public EventKind getKind() {
|
|
|
|
return EventKind.SINGLE;
|
|
|
|
}
|
|
|
|
|
2021-01-09 12:43:02 +01:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
}
|
|
|
|
|
2021-01-09 12:43:02 +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();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|