package com.dev.fbs9009;
|
|
import java.io.File;
|
import java.util.Date;
|
|
public class LD_updateState {
|
|
private int dev_id; //ÐèÒª¸üÐÂÉ豸µÄid
|
private String upfileName = "E51_DFU.SM5"; //¸üÐÂÎļþµÄÃû³Æ
|
private boolean update_en; //¸üÐÂÎļþʹÄÜ false:²»¸üРtrue:¸üÐÂ
|
private boolean send_upfile_ok; //·¢ËÍÉý¼¶ÎļþÊÇ·ñ³É¹¦
|
private int countpackage; //Êý¾Ý×ܰüÊý
|
private int nowpackagenum; //µ±Ç°·¢ËͰüµÄË÷Òý
|
private Date updatetime; //Éý¼¶ÏµÍ³Ê±¼ä
|
private Date starttime; //Éý¼¶¿ªÊ¼Ê±¼ä
|
private int stopreason; //ʧ°ÜÔÒò
|
private String note; //±¸×¢
|
|
private File upFile; //Éý¼¶Îļþ
|
private long fileCount; //Éý¼¶Îļþ°üµÄ×Ü×Ö½ÚÊý
|
public LD_updateState() {
|
|
}
|
|
public LD_updateState(int dev_id) {
|
this.dev_id = dev_id;
|
this.update_en = false;
|
this.send_upfile_ok = false;
|
this.countpackage = 0;
|
this.nowpackagenum = 0;
|
this.updatetime = new Date();
|
this.starttime = new Date();
|
this.stopreason = 0;
|
this.upFile = new File(upfileName);
|
}
|
|
public int getDev_id() {
|
return dev_id;
|
}
|
public void setDev_id(int dev_id) {
|
this.dev_id = dev_id;
|
}
|
public String getUpfileName() {
|
return upfileName;
|
}
|
public void setUpfileName(String upfileName) {
|
this.upFile = new File(upfileName);
|
this.upfileName = upfileName;
|
}
|
public boolean isUpdate_en() {
|
return update_en;
|
}
|
public void setUpdate_en(boolean update_en) {
|
this.update_en = update_en;
|
}
|
public boolean isSend_upfile_ok() {
|
return send_upfile_ok;
|
}
|
public void setSend_upfile_ok(boolean send_upfile_ok) {
|
this.send_upfile_ok = send_upfile_ok;
|
}
|
public int getStopreason() {
|
return stopreason;
|
}
|
public void setStopreason(int stopreason) {
|
this.stopreason = stopreason;
|
}
|
public int getCountpackage() {
|
return countpackage;
|
}
|
public void setCountpackage(int countpackage) {
|
this.countpackage = countpackage;
|
}
|
public int getNowpackagenum() {
|
return nowpackagenum;
|
}
|
public void setNowpackagenum(int nowpackagenum) {
|
this.nowpackagenum = nowpackagenum;
|
}
|
|
public void setNowpackagenum() {
|
this.nowpackagenum = this.nowpackagenum+1;
|
}
|
|
public Date getUpdatetime() {
|
return updatetime;
|
}
|
public void setUpdatetime(Date updatetime) {
|
this.updatetime = updatetime;
|
}
|
public String getNote() {
|
return note;
|
}
|
public void setNote(String note) {
|
this.note = note;
|
}
|
|
public File getUpFile() {
|
return upFile;
|
}
|
|
public void setUpFile(File upFile) {
|
this.upFile = upFile;
|
}
|
|
public long getFileCount() {
|
return fileCount;
|
}
|
|
public void setFileCount(long fileCount) {
|
this.fileCount = fileCount;
|
}
|
|
|
|
public Date getStarttime() {
|
return starttime;
|
}
|
|
public void setStarttime(Date starttime) {
|
this.starttime = starttime;
|
}
|
|
@Override
|
public String toString() {
|
return "LD_updateState [dev_id=" + dev_id + ", upfileName=" + upfileName + ", update_en=" + update_en
|
+ ", send_upfile_ok=" + send_upfile_ok + ", countpackage=" + countpackage + ", nowpackagenum="
|
+ nowpackagenum + ", updatetime=" + updatetime + ", stopreason=" + stopreason + ", note=" + note + "]";
|
}
|
}
|