Line | Hits | Source |
---|---|---|
1 | package net.sf.tourviewer; | |
2 | ||
3 | public class Bike { | |
4 | ||
5 | private int wheelPerimeter; | |
6 | private long travelTime; | |
7 | private int distance; | |
8 | ||
9 | /** | |
10 | * @param perimeter | |
11 | */ | |
12 | 0 | public Bike() |
13 | { | |
14 | 0 | } |
15 | ||
16 | @Override | |
17 | public String toString() | |
18 | { | |
19 | 0 | return getClass().getName() + String.format("[distance=%d,travelTime=%d,wheelPerimeter=%d]", |
20 | 0 | distance, travelTime, wheelPerimeter); |
21 | } | |
22 | ||
23 | public int getWheelPerimeter() | |
24 | { | |
25 | 0 | return wheelPerimeter; |
26 | } | |
27 | ||
28 | ||
29 | public void setWheelPerimeter(int wheelPerimeter) | |
30 | { | |
31 | 0 | this.wheelPerimeter = wheelPerimeter; |
32 | 0 | } |
33 | ||
34 | ||
35 | ||
36 | public int getDistance() | |
37 | { | |
38 | 0 | return distance; |
39 | } | |
40 | ||
41 | ||
42 | ||
43 | public long getTravelTime() | |
44 | { | |
45 | 0 | return travelTime; |
46 | } | |
47 | ||
48 | ||
49 | ||
50 | public void setDistance(int distance) | |
51 | { | |
52 | 0 | this.distance = distance; |
53 | 0 | } |
54 | ||
55 | ||
56 | ||
57 | public void setTravelTime(long travelTime) | |
58 | { | |
59 | 0 | this.travelTime = travelTime; |
60 | 0 | } |
61 | ||
62 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |