Coverage details for net.sf.tourviewer.lib.TourSet

LineHitsSource
1 package net.sf.tourviewer.lib;
2  
3 import java.util.ArrayList;
4 import java.util.Date;
5 import java.util.List;
6  
7 public class TourSet {
8  
90    private List<Bike> bikes = new ArrayList<Bike>();
10     private Date dateOfBirth;
11     private Device device;
12     private String personName;
13     private int personWeight;
14     private String team;
15     private int totalAltitudeDown;
16     private int totalAltitudeUp;
17     private long totalDistance;
18     private long totalTravelTime;
190    private List<Tour> tours = new ArrayList<Tour>();
20     
21     public TourSet()
220    {
230    }
24     
25     public void addBike(Bike bike)
26     {
270        bikes.add(bike);
280    }
29  
30     public void addTour(Tour tour)
31     {
320        tours.add(tour);
330    }
34     
35     public Bike getBikeByWheelPerimeter(int perimeter)
36     {
370        for (Bike bike : bikes) {
380            if (bike.getWheelPerimeter() == perimeter) {
390                return bike;
40             }
410        }
420        return null;
43     }
44     
45     public Bike[] getBikes()
46     {
470        return bikes.toArray(new Bike[0]);
48     }
49     
50     public Date getDateOfBirth()
51     {
520        return dateOfBirth;
53     }
54     
55     public Device getDevice()
56     {
570        return device;
58     }
59     
60     public String getPersonName()
61     {
620        return personName;
63     }
64  
65     public int getPersonWeight()
66     {
670        return personWeight;
68     }
69     
70     public String getTeam()
71     {
720        return team;
73     }
74     
75     public int getTotalAltitudeDown()
76     {
770        return totalAltitudeDown;
78     }
79     
80     public int getTotalAltitudeUp()
81     {
820        return totalAltitudeUp;
83     }
84     
85     public long getTotalDistance()
86     {
870        return totalDistance;
88     }
89     
90     public long getTotalTravelTime()
91     {
920        return totalTravelTime;
93     }
94  
95     public Tour[] getTours()
96     {
970        return tours.toArray(new Tour[0]);
98     }
99     
100     public void setDateOfBirth(Date dateOfBirth)
101     {
1020        this.dateOfBirth = dateOfBirth;
1030    }
104  
105     
106     public void setDevice(Device device)
107     {
1080        this.device = device;
1090    }
110  
111     
112     public void setPersonName(String personName)
113     {
1140        this.personName = personName;
1150    }
116  
117     
118     public void setPersonWeight(int personWeight)
119     {
1200        this.personWeight = personWeight;
1210    }
122  
123     
124     public void setTeam(String team)
125     {
1260        this.team = team;
1270    }
128  
129     
130     public void setTotalAltitudeDown(int totalAltitudeDown)
131     {
1320        this.totalAltitudeDown = totalAltitudeDown;
1330    }
134  
135     
136     public void setTotalAltitudeUp(int totalAltitudeUp)
137     {
1380        this.totalAltitudeUp = totalAltitudeUp;
1390    }
140  
141     
142     public void setTotalDistance(long totalDistance)
143     {
1440        this.totalDistance = totalDistance;
1450    }
146  
147     
148     public void setTotalTravelTime(long totalTravelTime)
149     {
1500        this.totalTravelTime = totalTravelTime;
1510    }
152  
153     
154     public void setTours(List<Tour> tours)
155     {
1560        this.tours = tours;
1570    }
158  
159     
160     @Override
161     public String toString()
162     {
1630        return getClass().getName() + String.format("[personName=%s,personWeight=%d,device=%s]",
164                 personName, personWeight, device);
165     }
166     
167 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.