huang
2025-11-26 792236ef78c2cdd3a989fb40a7f2e2487c4e17b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.mes.interaction;
 
import com.mes.interaction.base.InteractionContext;
import com.mes.interaction.base.InteractionResult;
 
/**
 * 多设备交互接口
 */
public interface DeviceInteraction {
 
    /**
     * 交互对应的设备类型
     */
    String getDeviceType();
 
    /**
     * 执行交互逻辑
     */
    InteractionResult execute(InteractionContext context);
 
    /**
     * 是否支持指定操作
     */
    default boolean supportsOperation(String operation) {
        return true;
    }
}