package com.qiyou.mb.android.beans.basic;

import com.qiyou.mb.android.utils.enums.TrackStatus;
import com.qiyou.mb.android.utils.enums.TrackType;


public class Statics_bean {
	public Statics_bean() {
		// TODO Auto-generated constructor stub
	} 
	public Statics_bean(Track_bean tb) {
		// TODO Auto-generated constructor stub
		if(tb==null)return;  
		
		  svrNo =tb.getSvrNumber();
		  trackid =tb.getTrackId();
		  name=tb.getName(); 
		  dist =tb.getDistance();
		  eUpDist =tb.geteUpDist();   //累积上升
		  eDownDist =tb.geteDownDist(); //累积下降
		  topSpeed =tb.getTopSpeed();
		  userid=tb.getUserid();  
		  pause=tb.getPauseTime() ; 
		  type=tb.getType().toInt(); //0,1,2...(bike,walk,car)
		  sportTime=tb.getSportTime(); 
		  isCheckedIn=tb.getIsCheckedIn(); //0,1 ( false,true) 
		  status =tb.getStatus(); //0,1,2,3,...(pending,recording,paused,finished,...)
		  offTime=tb.getOffTime(); //no gps time  
		  maxR=tb.getMaxR();//max radius  
		  avs =tb.getAvs();//max radius  
		  tavs=tb.getTavs();//max radius
		  startTime=tb.getStartTime();
		  endTime=tb.getEndTime();
		  burn =tb.getBurn();
		  lastdbTime=tb.getLastdbTime(); 
		  totalTime=tb.getTotalTime(); 
		  creator=tb.getCreator(); 
		  src=tb.getSrc();
		  upDist=tb.getUpDist();
		  downDist=tb.getDownDist();
		  maxEle=tb.getMaxEle();
		  minEle=tb.getMinEle();
		  kmTime =tb.getKmTime();
	} 
	 
	 
	private int trackid;
	private String name; 
	private float dist =0.0f;
	private float eUpDist =0.0f;   //累积上升
	private float eDownDist =0.0f; //累积下降
	private float topSpeed =0.0f;
	private int userid;  
	private long pause=0  ; 
	private int type; //0,1,2...(bike,walk,car)
	private long sportTime; 
	private int isCheckedIn; //0,1 ( false,true) 
	private TrackStatus status =TrackStatus.PENING; //0,1,2,3,...(pending,recording,paused,finished,...)
	private long offTime; //no gps time  
	private float maxR;//max radius  
	private float avs; 
	private float tavs; 
	private long startTime;
	private long endTime;
	private float burn;
	private long lastdbTime; 
	private long totalTime; 
	private String creator; 
	private String src;  
	private int svrNo;
	private float upDist;
	private float downDist;
	private float maxEle;
	private float minEle;
	private long kmTime;
	
	public int getTrackid() {
		return trackid;
	}
	public void setTrackid(int trackid) {
		this.trackid = trackid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getDist() {
		return dist;
	}
	public void setDist(float dist) {
		this.dist = dist;
	}
	public float geteUpDist() {
		return eUpDist;
	}
	public void seteUpDist(float eUpDist) {
		this.eUpDist = eUpDist;
	}
	public float geteDownDist() {
		return eDownDist;
	}
	public void seteDownDist(float eDownDist) {
		this.eDownDist = eDownDist;
	}
	public float getTopSpeed() {
		return topSpeed;
	}
	public void setTopSpeed(float topSpeed) {
		this.topSpeed = topSpeed;
	}
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	public long getPause() {
		return pause;
	}
	public void setPause(long pause) {
		this.pause = pause;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public long getSportTime() {
		return sportTime;
	}
	public void setSportTime(long sportTime) {
		this.sportTime = sportTime;
	}
	public int getIsCheckedIn() {
		return isCheckedIn;
	}
	public void setIsCheckedIn(int isCheckedIn) {
		this.isCheckedIn = isCheckedIn;
	}
	public TrackStatus getStatus() {
		return status;
	}
	public void setStatus(TrackStatus status) {
		this.status = status;
	}
	public long getOffTime() {
		return offTime;
	}
	public void setOffTime(long offTime) {
		this.offTime = offTime;
	}
	public float getMaxR() {
		return maxR;
	}
	public void setMaxR(float maxR) {
		this.maxR = maxR;
	}
	public float getAvs() {
		return avs;
	}
	public void setAvs(float avs) {
		this.avs = avs;
	}
	public float getTavs() {
		return tavs;
	}
	public void setTavs(float tavs) {
		this.tavs = tavs;
	}
	public long getStartTime() {
		return startTime;
	}
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	public long getEndTime() {
		return endTime;
	}
	public void setEndTime(long endTime) {
		this.endTime = endTime;
	}
	public float getBurn() {
		return burn;
	}
	public void setBurn(float burn) {
		this.burn = burn;
	}
	public long getLastdbTime() {
		return lastdbTime;
	}
	public void setLastdbTime(long lastdbTime) {
		this.lastdbTime = lastdbTime;
	}
	public long getTotalTime() {
		return totalTime;
	}
	public void setTotalTime(long totalTime) {
		this.totalTime = totalTime;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public String getSrc() {
		return src;
	}
	public void setSrc(String src) {
		this.src = src;
	}
	public int getSvrNo() {
		return svrNo;
	}
	public void setSvrNo(int svrNo) {
		this.svrNo = svrNo;
	}
	public float getUpDist() {
		return upDist;
	}
	public void setUpDist(float upDist) {
		this.upDist = upDist;
	}
	public float getDownDist() {
		return downDist;
	}
	public void setDownDist(float downDist) {
		this.downDist = downDist;
	}
	public float getMaxEle() {
		return maxEle;
	}
	public void setMaxEle(float maxEle) {
		this.maxEle = maxEle;
	}
	public float getMinEle() {
		return minEle;
	}
	public void setMinEle(float minEle) {
		this.minEle = minEle;
	}
	public long getKmTime() {
		return kmTime;
	}
	public void setKmTime(long kmTime) {
		this.kmTime = kmTime;
	}


	
	
	
	
	 
	
}
