1
2 package hoplugins.trainingExperience.vo;
3
4 import plugins.IFutureTrainingWeek;
5
6
7 /***
8 * Training week object, different than the ITrainingWeek since we want to use HT season and week
9 * instead of datum, year and solar week
10 */
11 public class FutureTrainingWeek implements IFutureTrainingWeek {
12
13
14 /*** Training intensity */
15 private int intensitaet;
16
17 /*** HT season */
18 private int season;
19
20 /*** Training type */
21 private int typ;
22
23 /*** HT week */
24 private int week;
25
26
27
28 /***
29 * Set the training intensity
30 *
31 * @param intensity
32 */
33 public void setIntensitaet(int intensity) {
34 intensitaet = intensity;
35 }
36
37 /***
38 * Returns the training intensity
39 *
40 * @return intensity
41 */
42 public int getIntensitaet() {
43 return intensitaet;
44 }
45
46 /***
47 * Set Hattrick season of the training
48 *
49 * @param season
50 */
51 public void setSeason(int season) {
52 this.season = season;
53 }
54
55 /***
56 * Get Hattrick season of the training
57 *
58 * @return
59 */
60 public int getSeason() {
61 return season;
62 }
63
64 /***
65 * Set Training type
66 *
67 * @param type
68 */
69 public void setTyp(int type) {
70 typ = type;
71 }
72
73 /***
74 * Get Training type
75 *
76 * @return type
77 */
78 public int getTyp() {
79 return typ;
80 }
81
82 /***
83 * Set Hattrick week of the training
84 *
85 * @param week
86 */
87 public void setWeek(int week) {
88 this.week = week;
89 }
90
91 /***
92 * Get Hattrick week of the training
93 *
94 * @return week
95 */
96 public int getWeek() {
97 return week;
98 }
99
100 /***
101 * toString methode: creates a String representation of the object
102 *
103 * @return the String representation
104 */
105 public String toString() {
106 StringBuffer buffer = new StringBuffer();
107
108 buffer.append("HattrickTrainingWeek[");
109 buffer.append("intensitaet = " + intensitaet);
110 buffer.append(", season = " + season);
111 buffer.append(", typ = " + typ);
112 buffer.append(", week = " + week);
113 buffer.append("]");
114
115 return buffer.toString();
116 }
117 }