package com.njcn.serviceimpl.advanced;

import com.njcn.pojo.advanced.ReadWaveData;
import com.njcn.pojo.commons.PubWaveModel.tagWave;
import com.njcn.pojo.commons.WaveData;
import com.njcn.serviceimpl.commons.WaveServiceImpl;
import com.njcn.utils.AnalyWave;

import java.util.List;

public class ReadWaveCompareDataImpl {
    private ReadWaveData readWaveData;
    private String stringPt;

    public ReadWaveCompareDataImpl(ReadWaveData readWaveData) {
        super();
        this.readWaveData = readWaveData;
    }

    public ReadWaveData getReadWaveData() {
        return readWaveData;
    }

    public String getStringPt() {
        stringPt = String.valueOf(readWaveData.getF1() / 1000) + "/" + String.valueOf(readWaveData.getF2() / 1000);
        return stringPt;
    }


    public WaveData getWaveData(WaveServiceImpl waveServiceImpl) {
        return waveServiceImpl.getWavedata(readWaveData.getEventIndex(), 1);
    }
}
