package com.ps.visualization.vo.scada;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Progress entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "progress", catalog = "scada_scan")
public class Progress implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer ipNumTotal;
	private Integer ipNumDone;
	private Integer ipNumExist;
	private Integer rounds;
	private Double timeStart;
	private Double timeRemainder;
	private Timestamp updateTime;

	// Constructors

	/** default constructor */
	public Progress() {
	}

	/** full constructor */
	public Progress(Integer ipNumTotal, Integer ipNumDone, Integer ipNumExist,
			Integer rounds, Double timeStart, Double timeRemainder,
			Timestamp updateTime) {
		this.ipNumTotal = ipNumTotal;
		this.ipNumDone = ipNumDone;
		this.ipNumExist = ipNumExist;
		this.rounds = rounds;
		this.timeStart = timeStart;
		this.timeRemainder = timeRemainder;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "ip_num_total", nullable = false)
	public Integer getIpNumTotal() {
		return this.ipNumTotal;
	}

	public void setIpNumTotal(Integer ipNumTotal) {
		this.ipNumTotal = ipNumTotal;
	}

	@Column(name = "ip_num_done", nullable = false)
	public Integer getIpNumDone() {
		return this.ipNumDone;
	}

	public void setIpNumDone(Integer ipNumDone) {
		this.ipNumDone = ipNumDone;
	}

	@Column(name = "ip_num_exist", nullable = false)
	public Integer getIpNumExist() {
		return this.ipNumExist;
	}

	public void setIpNumExist(Integer ipNumExist) {
		this.ipNumExist = ipNumExist;
	}

	@Column(name = "rounds", nullable = false)
	public Integer getRounds() {
		return this.rounds;
	}

	public void setRounds(Integer rounds) {
		this.rounds = rounds;
	}

	@Column(name = "time_start", nullable = false, precision = 22, scale = 0)
	public Double getTimeStart() {
		return this.timeStart;
	}

	public void setTimeStart(Double timeStart) {
		this.timeStart = timeStart;
	}

	@Column(name = "time_remainder", nullable = false, precision = 22, scale = 0)
	public Double getTimeRemainder() {
		return this.timeRemainder;
	}

	public void setTimeRemainder(Double timeRemainder) {
		this.timeRemainder = timeRemainder;
	}

	@Column(name = "update_time", nullable = false, length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}