package com.njcn.gather.tools.comtrade.comparewave.config;

import com.njcn.gather.tools.comtrade.comparewave.core.algorithm.FFTProcessor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 波形分析相关的Spring配置
 * 
 * @author hongawen
 * @version 1.0
 * @date 2025/9/2
 */
@Slf4j
@Configuration
public class WaveAnalysisConfig {

    /**
     * FFT处理器Bean
     * 统一管理FFT处理器的初始化
     */
    @Bean
    public FFTProcessor fftProcessor() {
        log.info("初始化FFT处理器...");
        FFTProcessor processor = new FFTProcessor();
        processor.init();
        log.info("FFT处理器初始化完成");
        return processor;
    }
}