1
2 package hoplugins.teamAnalyzer.vo;
3
4 /***
5 * Class for collecting all the players appearance
6 *
7 * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
8 */
9 public class PlayerAppearance {
10
11
12 /*** Player Name */
13 private String name;
14
15 /*** Number of appearence in that position */
16 private int apperarence = 0;
17
18 /*** Player Id */
19 private int playerId;
20
21 /*** Status of the player on the team. injured, sold etc */
22 private int status;
23
24
25
26 /***
27 * Document Me!
28 *
29 * @return
30 */
31 public int getAppearance() {
32 return apperarence;
33 }
34
35 /***
36 * Document Me!
37 *
38 * @param i
39 */
40 public void setApperarence(int i) {
41 apperarence = i;
42 }
43
44 /***
45 * Document Me!
46 *
47 * @param string
48 */
49 public void setName(String string) {
50 name = string;
51 }
52
53 /***
54 * Document Me!
55 *
56 * @return
57 */
58 public String getName() {
59 return name;
60 }
61
62 /***
63 * Document Me!
64 *
65 * @param i
66 */
67 public void setPlayerId(int i) {
68 playerId = i;
69 }
70
71 /***
72 * Document Me!
73 *
74 * @return
75 */
76 public int getPlayerId() {
77 return playerId;
78 }
79
80 /***
81 * Document Me!
82 *
83 * @param i
84 */
85 public void setStatus(int i) {
86 status = i;
87 }
88
89 /***
90 * Document Me!
91 *
92 * @return
93 */
94 public int getStatus() {
95 return status;
96 }
97
98 /***
99 * Increase number of Appearance for the player
100 */
101 public void addApperarence() {
102 apperarence++;
103 }
104
105 /***
106 * toString methode: creates a String representation of the object
107 *
108 * @return the String representation
109 */
110 public String toString() {
111 StringBuffer buffer = new StringBuffer();
112
113 buffer.append("Player[");
114 buffer.append("apperarence = " + apperarence);
115 buffer.append("playerId = " + playerId);
116 buffer.append(", name = " + name);
117 buffer.append("]");
118
119 return buffer.toString();
120 }
121 }