zhang
6 天以前 a64658c5d91adba50240676eb8ffa6a24aa6caa4
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;
}