1
2 package hoplugins.trainingExperience.vo;
3
4 import plugins.ISkillup;
5
6 import java.util.Date;
7
8
9 /***
10 * Base Object for the Skillup table
11 */
12 public class PastSkillup implements ISkillup {
13
14
15 /*** Skillup Date */
16 private Date date;
17
18 /*** Hattrick Season */
19 private int htSeason;
20
21 /*** Hattrick Week */
22 private int htWeek;
23
24 /*** Training Type 0 old, 1 min, 2 max */
25 private int trainType;
26
27 /*** type of skill changed */
28 private int type;
29
30 /*** Value of skill */
31 private int value;
32
33
34
35 /***
36 * Document me!
37 *
38 * @param date
39 */
40 public void setDate(Date date) {
41 this.date = date;
42 }
43
44 /***
45 * Document me!
46 *
47 * @return
48 */
49 public Date getDate() {
50 return date;
51 }
52
53 /***
54 * Document me!
55 *
56 * @param i
57 */
58 public void setHtSeason(int i) {
59 htSeason = i;
60 }
61
62 /***
63 * Document me!
64 *
65 * @return
66 */
67 public int getHtSeason() {
68 return htSeason;
69 }
70
71 /***
72 * Document me!
73 *
74 * @param i
75 */
76 public void setHtWeek(int i) {
77 htWeek = i;
78 }
79
80 /***
81 * Document me!
82 *
83 * @return
84 */
85 public int getHtWeek() {
86 return htWeek;
87 }
88
89 /***
90 * DOCUMENT ME!
91 *
92 * @param i
93 */
94 public void setTrainType(int i) {
95 trainType = i;
96 }
97
98 /***
99 * DOCUMENT ME!
100 *
101 * @return
102 */
103 public int getTrainType() {
104 return trainType;
105 }
106
107 /***
108 * Set training type
109 *
110 * @param type
111 */
112 public void setType(int type) {
113 this.type = type;
114 }
115
116 /***
117 * Get Training type
118 *
119 * @return type
120 */
121 public int getType() {
122 return type;
123 }
124
125 /***
126 * Set the new value of the skill
127 *
128 * @param newValue
129 */
130 public void setValue(int newValue) {
131 value = newValue;
132 }
133
134 /***
135 * Set the new value of the skill
136 *
137 * @return value
138 */
139 public int getValue() {
140 return value;
141 }
142
143 /***
144 * toString methode: creates a String representation of the object
145 *
146 * @return the String representation
147 */
148 public String toString() {
149 StringBuffer buffer = new StringBuffer();
150
151 buffer.append("Skillup[");
152 buffer.append(", type = " + type);
153 buffer.append(", value = " + value);
154 buffer.append(", htSeason = " + htSeason);
155 buffer.append(", htWeek = " + htWeek);
156 buffer.append(", trainType = " + trainType);
157 buffer.append("]");
158
159 return buffer.toString();
160 }
161 }