| | |
| | | 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; |
| | | } |