2021-01-02 16:15:27 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2012 IT Just working.
|
|
|
|
* 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:
|
|
|
|
* IT Just working - initial API and implementation
|
|
|
|
*******************************************************************************/
|
|
|
|
package com.minres.scviewer.database.text;
|
|
|
|
|
|
|
|
import com.minres.scviewer.database.IWaveform;
|
|
|
|
|
2021-01-09 10:34:22 +01:00
|
|
|
class TxStream extends AbstractTxStream {
|
2021-01-02 16:15:27 +01:00
|
|
|
|
2021-01-08 20:50:24 +01:00
|
|
|
final String kind;
|
|
|
|
|
2021-01-02 16:15:27 +01:00
|
|
|
TxStream(TextDbLoader loader, Long id, String name, String kind){
|
2021-01-09 10:34:22 +01:00
|
|
|
super(loader, id, name);
|
2021-01-08 20:50:24 +01:00
|
|
|
this.kind=kind;
|
2021-01-02 16:15:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isSame(IWaveform other) {
|
2021-01-08 20:50:24 +01:00
|
|
|
return(other instanceof TxStream && this.getId().equals(other.getId()));
|
2021-01-02 16:15:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2021-01-09 10:34:22 +01:00
|
|
|
public String getKind() {
|
|
|
|
return kind;
|
2021-01-03 14:16:56 +01:00
|
|
|
}
|
|
|
|
|
2021-01-02 16:15:27 +01:00
|
|
|
}
|