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


public class MaxTrack {

	public MaxTrack() {
		// TODO Auto-generated constructor stub
	}
	private float dist =0.0f;
	private float eUpDist =0.0f;   //累积上升
	private float eDownDist =0.0f; //累积下降
	private float topSpeed =0.0f;  
	private long pause=0  ; 
	private int type; //0,1,2...(bike,walk,car)
	private long sportTime =0; 
	private long offTime =0; //no gps time 
	private long toTalTime=0 ;
	private float maxR =0;//max radius 
	private float avSpeed=0;
	
	private float upDist;
	private float downDist;
	private float maxEle;
	private float minEle;
	public float getDist() {
		return dist;
	}
	public void setDist(float dist) {
		if(dist >this.dist)
		this.dist = dist;
	}
	public float geteUpDist() {		
		return eUpDist;
	}
	public void seteUpDist(float eUpDist) {
		if(eUpDist >this.eUpDist)
		this.eUpDist = eUpDist;
	}
	public float geteDownDist() {
		return eDownDist;
	}
	public void seteDownDist(float eDownDist) {
		if(Math.abs(eDownDist) >this.eDownDist)
		this.eDownDist = Math.abs(eDownDist);
	}
	public float getTopSpeed() {
		return topSpeed;
	}
	public void setTopSpeed(float topSpeed) {
		if(topSpeed >this.topSpeed)
		this.topSpeed = topSpeed;
	}
	public long getPause() {
		return pause;
	}
	public void setPause(long pause) {
		if(pause >this.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) {
		if(sportTime >this.sportTime)
		this.sportTime = sportTime;
	}
	public long getOffTime() {
		return offTime;
	}
	public void setOffTime(long offTime) {
		if(offTime >this.offTime)
		this.offTime = offTime;
	}
	public float getMaxR() {
		return maxR;
	}
	public void setMaxR(float maxR) {
		if(maxR >this.maxR)
		this.maxR = maxR;
	}
	public float getAvSpeed() {
		return avSpeed;
	}
	public void setAvSpeed(float avSpeed) {
		if(avSpeed >this.avSpeed)
		this.avSpeed = avSpeed;
	}
	public long getTotalTime() {
		return toTalTime;
	}
	public void setTotalTime(long toTalTime) {
		if(toTalTime >this.toTalTime)
		this.toTalTime = toTalTime;
	}

	public float getUpDist() {
		return upDist ;
	 
	}
	public float getDownDist() {
		 
		return downDist;
	}
	public float getMaxEle() {
		return maxEle;
	 
	}
	public float getMinEle() {
		 
		return minEle;
	}
	
	public void setUpDist(float upDist) {
		if(Float.isInfinite(upDist) ||Float.isNaN(upDist) ||upDist<=0)return;
		 
		if(upDist >this.upDist)
		this.upDist = upDist;
	}
	
	 
	public void setDownDist(float downDist) {
		if(Float.isInfinite(downDist) ||Float.isNaN(downDist) ||downDist<=0)return; 
		if(downDist >this.downDist)
		this.downDist = downDist;
	}
	
 
	public void setMaxEle(float maxEle) {
		if(Float.isInfinite(maxEle) ||Float.isNaN(maxEle) ||maxEle<=0)return;
	 
		if(maxEle >this.maxEle)
		this.maxEle = maxEle;
	}
	
 
	 
	public void setMaxMinEle(float minEle) {
		if(Float.isInfinite(minEle) ||Float.isNaN(minEle) ||minEle<=0)return;
		 
		if(minEle < this.minEle)
		this.minEle = minEle;
	}
	
	
}
