From 27d341342925f11c19fb7a31da7050f5e9041319 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 19 十月 2023 17:52:29 +0800 Subject: [PATCH] 新增数据分析模块 --- src/main/java/com/flightfeather/monitor/analysis/DataAnalysisInterface.kt | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/flightfeather/monitor/analysis/DataAnalysisInterface.kt b/src/main/java/com/flightfeather/monitor/analysis/DataAnalysisInterface.kt new file mode 100644 index 0000000..ae94c20 --- /dev/null +++ b/src/main/java/com/flightfeather/monitor/analysis/DataAnalysisInterface.kt @@ -0,0 +1,30 @@ +package com.flightfeather.monitor.analysis + +/** + * 鏁版嵁鍒嗘瀽鎺ュ彛 + */ +abstract class DataAnalysisInterface<T, V>(config: V) { + + init { + initConfig(config) + } + + abstract fun initConfig(config: V) + + /** + * 鎺ユ敹涓嬩竴涓椂闂寸偣鐨勬暟鎹� + */ + abstract fun onNextData(data: T) + + /** + * 灏嗗垎鏋愮粨鏋滃叆搴� + */ + abstract fun toDb() + + /** + * 鍒ゆ柇鐩搁偦鏁版嵁鏄惁杩炵画 + */ + fun isContinuous(d1:T, d2:T) { + + } +} \ No newline at end of file -- Gitblit v1.9.3