huang
9 天以前 9a9479a5e34324822b223747b7c88ff060466db0
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;
    }
}