zhang
12 小时以前 08ebc631c8b5775146cfd1709a28dab4a54c4b77
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.zy.acs.charge;
 
import com.zy.acs.charge.model.ChargerStatus;
 
/**
 * 所有充电桩都实现这个接口
 */
public interface ChargeCoreService {
 
    boolean connect() throws Exception;
 
    void disconnect();
 
    boolean isConnected();
 
    boolean startCharging() throws Exception;
 
    boolean stopCharging() throws Exception;
 
    ChargerStatus getStatus() throws Exception;
 
    boolean setVoltage(int voltageDecivolts) throws Exception;  // 单位0.1V
 
    boolean setCurrent(int currentDecamperes) throws Exception; // 单位0.1A
 
    boolean clearFault() throws Exception;
}