package com.healthlife.entity;

import java.util.Date;

/*
 * a abstract class for vrious sports
 */


public abstract class Sports {
	
	int sportType;
	Date sportsDate;
	
	public final static int JOG = 0;
	public final static int PUSHUP = 1;
	public final static int SITUP = 2;
	public final static int WALK = 3;
}


@@ -29,32 +29,8 @@
 y;%0A%0A
-import java.util.Date;%0A%0A
 /*%0A 
@@ -83,69 +83,534 @@
 lic 
-abstract class Sports %7B%0A%09%0A%09int sportType;%0A%09Date sportsD
+class Sports %7B%0A%09%0A%09private long sportsID;%0A%09private String Date;%0A%09private int type;%0A%09private long userId;%0A%09private int num;%0A%09private float ValidRate;%0A%09private float perfectRate;%0A%09private float grade;%0A%09private float MaxSpeed;%0A%09private float AVGSpeed;%0A%09private float distance;%0A%09private String Duration;%0A%09%0A%0A%09%0A%09public long getSportsID() %7B%0A%09%09return sportsID;%0A%09%7D%0A%09public void setSportsID(long sportsID) %7B%0A%09%09this.sportsID = sportsID;%0A%09%7D%0A%09public String getDate() %7B%0A%09%09return Date;%0A%09%7D%0A%09public void setDate(String date) %7B%0A%09%09Date = d
 ate;%0A%09
+%7D
 %0A%09pu
@@ -618,141 +618,1171 @@
 lic 
-f
 in
-al static int JOG = 0;%0A%09public final static int PUSHUP = 1;%0A%09public final static int SITUP = 2;%0A%09public final static int WALK = 3;
+t getType() %7B%0A%09%09return type;%0A%09%7D%0A%09public void setType(int type) %7B%0A%09%09this.type = type;%0A%09%7D%0A%09public long getUserId() %7B%0A%09%09return userId;%0A%09%7D%0A%09public void setUserId(long userId) %7B%0A%09%09this.userId = userId;%0A%09%7D%0A%09public int getNum() %7B%0A%09%09return num;%0A%09%7D%0A%09public void setNum(int num) %7B%0A%09%09this.num = num;%0A%09%7D%0A%09public float getValidRate() %7B%0A%09%09return ValidRate;%0A%09%7D%0A%09public void setValidRate(float validRate) %7B%0A%09%09ValidRate = validRate;%0A%09%7D%0A%09public float getPerfectRate() %7B%0A%09%09return perfectRate;%0A%09%7D%0A%09public void setPerfectRate(float perfectRate) %7B%0A%09%09this.perfectRate = perfectRate;%0A%09%7D%0A%09public float getGrade() %7B%0A%09%09return grade;%0A%09%7D%0A%09public void setGrade(float grade) %7B%0A%09%09this.grade = grade;%0A%09%7D%0A%09public float getMaxSpeed() %7B%0A%09%09return MaxSpeed;%0A%09%7D%0A%09public void setMaxSpeed(float maxSpeed) %7B%0A%09%09MaxSpeed = maxSpeed;%0A%09%7D%0A%09public float getAVGSpeed() %7B%0A%09%09return AVGSpeed;%0A%09%7D%0A%09public void setAVGSpeed(float aVGSpeed) %7B%0A%09%09AVGSpeed = aVGSpeed;%0A%09%7D%0A%09public float getDistance() %7B%0A%09%09return distance;%0A%09%7D%0A%09public void setDistance(float distance) %7B%0A%09%09this.distance = distance;%0A%09%7D%0A%09public String getDuration() %7B%0A%09%09return Duration;%0A%09%7D%0A%09public void setDuration(String duration) %7B%0A%09%09Duration = duration;%0A%09%7D
 %0A%7D%0A%0A

modify Sports.java