| | |
| | | public int file_count; //当前文件数
|
| | | public int file_total; //数据文件总数
|
| | |
|
| | | public int total_data_block; //总的数据块数
|
| | | public int now_data_block; //当前数据块数目
|
| | | private int download_state; //当前下载状态
|
| | | private int stop_reason; //结束原因
|
| | |
|
| | | public FBOFile[] files = new FBOFile[8]; //读取的历史文件
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void initDownLoadState() {
|
| | | total_data_block = 0; //总的数据块数
|
| | | now_data_block = 0; //当前数据块数目
|
| | | download_state = FGCD_TestDataDownLoad.DownLoadState_ReadData; //当前下载状态
|
| | | }
|
| | |
|
| | | public FGCD_Cmd createCmd(int cmd) {
|
| | | FGCD_Cmd m_Cmd = new FGCD_Cmd();
|
| | |
| | |
|
| | |
|
| | |
|
| | | public int getDownload_state() {
|
| | | return download_state;
|
| | | }
|
| | |
|
| | | public int getStop_reason() {
|
| | | return stop_reason;
|
| | | }
|
| | |
|
| | | public void setDownload_state(int download_state) {
|
| | | this.download_state = download_state;
|
| | | }
|
| | |
|
| | | public void setStop_reason(int stop_reason) {
|
| | | this.stop_reason = stop_reason;
|
| | |
| | | }
|
| | |
|
| | | public class FBOFile{
|
| | | public int file_count; //数据文件总数
|
| | | public int file_index; //当前文件索引
|
| | | public int year; //年
|
| | | public int month; //月
|
| | | public int day; //天
|
| | | public int hour; //ʱ |
| | | public int minte; //分
|
| | | public int second; //秒
|
| | | public String filename; //文件名
|
| | | public int test_timelong; //测试时长
|
| | | public int data_type; //数据类型
|
| | | public float test_curr; //测试电流(0.1A)
|
| | | public int test_cap; //测试容量(1AH)
|
| | | public int cap_std; //标称容量(1AH)
|
| | | public float monvol_low; //单体下限(0.01V)
|
| | | public float groupvol_low; //组端下限
|
| | | public int mon_count; //单体个数
|
| | | public int testgroup_count; //测试第几组得到的数据
|
| | | public int teststop_reason; //停止原因
|
| | | public float monvol_type; //单体电压类型
|
| | | public int download_flag; //下载标识
|
| | | public int download_state; //下载状态
|
| | | public int file_count; //数据文件总数
|
| | | public int file_index; //当前文件索引
|
| | | public int year; //年
|
| | | public int month; //月
|
| | | public int day; //天
|
| | | public int hour; //ʱ |
| | | public int minte; //分
|
| | | public int second; //秒
|
| | | public String filename; //文件名
|
| | | public int test_timelong; //测试时长
|
| | | public int data_type; //数据类型
|
| | | public float test_curr; //测试电流(0.1A)
|
| | | public int test_cap; //测试容量(1AH)
|
| | | public int cap_std; //标称容量(1AH)
|
| | | public float monvol_low; //单体下限(0.01V)
|
| | | public float groupvol_low; //组端下限
|
| | | public int mon_count; //单体个数
|
| | | public int testgroup_count; //测试第几组得到的数据
|
| | | public int teststop_reason; //停止原因
|
| | | public float monvol_type; //单体电压类型
|
| | | public int download_flag; //下载标识
|
| | | public int download_state; //下载状态
|
| | | public int now_data_block; //当前数据块数目
|
| | | public int total_data_block; //当前下载状态
|
| | |
|
| | | public void clear() {
|
| | | file_count = 0; //数据文件总数
|
| | | file_index = 0; //当前文件索引
|
| | | filename = ""; //文件名
|
| | | test_timelong = 0; //测试时长
|
| | | data_type = 0; //数据类型
|
| | | test_curr = 0; //测试电流(0.1A)
|
| | | test_cap = 0; //测试容量(1AH)
|
| | | file_count = 0; //数据文件总数
|
| | | file_index = 0; //当前文件索引
|
| | | filename = ""; //文件名
|
| | | test_timelong = 0; //测试时长
|
| | | data_type = 0; //数据类型
|
| | | test_curr = 0; //测试电流(0.1A)
|
| | | test_cap = 0; //测试容量(1AH)
|
| | | cap_std = 0; //标称容量(1AH)
|
| | | monvol_low = 0; //单体下限(0.01V)
|
| | | groupvol_low = 0; //组端下限
|
| | | mon_count = 0; //单体个数
|
| | | monvol_low = 0; //单体下限(0.01V)
|
| | | groupvol_low = 0; //组端下限
|
| | | mon_count = 0; //单体个数
|
| | | testgroup_count = 0; //测试第几组得到的数据
|
| | | teststop_reason = 0; //停止原因
|
| | | monvol_type = 0; //单体电压类型
|
| | | download_flag = 0; //下载标识
|
| | | download_state = 0; //下载状态
|
| | | monvol_type = 0; //单体电压类型
|
| | | download_flag = 0; //下载标识
|
| | | download_state = 0; //下载状态
|
| | | |
| | | now_data_block = 0; //当前数据块数目
|
| | | total_data_block = 0; //当前下载状态
|
| | | }
|
| | |
|
| | | public int getFile_count() {
|
| | |
| | | this.download_state = FGCD_TestDataDownLoad.DownLoadState_ReadData;
|
| | | }
|
| | | }
|
| | | |
| | | public int getNow_data_block() {
|
| | | return now_data_block;
|
| | | }
|
| | |
|
| | | public int getTotal_data_block() {
|
| | | return total_data_block;
|
| | | }
|
| | |
|
| | | public void setNow_data_block(int now_data_block) {
|
| | | this.now_data_block = now_data_block;
|
| | | }
|
| | |
|
| | | public void setTotal_data_block(int total_data_block) {
|
| | | this.total_data_block = total_data_block;
|
| | | }
|
| | |
|
| | | public void setDownload_state(int download_state) {
|
| | | this.download_state = download_state;
|
| | | }
|
| | |
| | |
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String toString() {
|
| | | return "FGCD_TestFBOFile [dev_id=" + dev_id + ", op_cmd=" + op_cmd + ", battgroupid=" + battgroupid
|
| | | + ", file_index=" + file_index + ", file_count=" + file_count + ", file_total=" + file_total
|
| | | + ", total_data_block=" + total_data_block + ", now_data_block=" + now_data_block + ", download_state="
|
| | | + download_state + ", stop_reason=" + stop_reason + "]";
|
| | | public void initDownLoadState() {
|
| | | for(int i=0;i<files.length;i++) {
|
| | | FBOFile fbo = files[i];
|
| | | if(fbo.download_flag == 1) {
|
| | | fbo.setDownload_state(FGCD_TestDataDownLoad.DownLoadState_ReadData);
|
| | | fbo.total_data_block = 0;
|
| | | fbo.now_data_block = 0;
|
| | | }
|
| | | |
| | | }
|
| | | |
| | | }
|
| | |
|
| | |
|
| | | public void cleatState() {
|
| | | for(int i=0;i<files.length;i++) {
|
| | | FBOFile f = files[i];
|
| | | f.download_flag = 0;
|
| | | f.download_state = 0;
|
| | | f.now_data_block = 0;
|
| | | f.total_data_block = 0;
|
| | | } |
| | | }
|
| | |
|
| | | |
| | |
|
| | | }
|