1
2 package hoplugins.teamAnalyzer.vo;
3
4 import hoplugins.teamAnalyzer.report.Report;
5 import hoplugins.teamAnalyzer.report.SpotReport;
6
7 import java.util.List;
8
9
10 /***
11 * Class that holds the real or calculated info for a position on the field (spot)
12 *
13 * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
14 */
15 public class SpotLineup extends Report {
16
17
18 /*** List of tactics used by all who played in this spot */
19 private List tactics;
20
21 /*** Name of the Player */
22 private String name;
23
24 /*** Status of the player */
25 private int status;
26
27
28
29 /***
30 * Creates a new SpotLineup object.
31 */
32 public SpotLineup() {
33 }
34
35 /***
36 * Creates a new SpotLineup object.
37 *
38 * @param posReport the Spot Report from what the object must be created!!!
39 */
40 public SpotLineup(SpotReport posReport) {
41 setRating(posReport.getRating());
42 setAppearance(posReport.getAppearance());
43 }
44
45
46
47 /***
48 * Document Me!
49 *
50 * @param string
51 */
52 public void setName(String string) {
53 name = string;
54 }
55
56 /***
57 * Document Me!
58 *
59 * @return
60 */
61 public String getName() {
62 return name;
63 }
64
65 /***
66 * Document Me!
67 *
68 * @param i
69 */
70 public void setStatus(int i) {
71 status = i;
72 }
73
74 /***
75 * Document Me!
76 *
77 * @return
78 */
79 public int getStatus() {
80 return status;
81 }
82
83 /***
84 * Document Me!
85 *
86 * @param list
87 */
88 public void setTactics(List list) {
89 tactics = list;
90 }
91
92 /***
93 * Document Me!
94 *
95 * @return
96 */
97 public List getTactics() {
98 return tactics;
99 }
100
101 /***
102 * toString methode: creates a String representation of the object
103 *
104 * @return the String representation
105 */
106 public String toString() {
107 StringBuffer buffer = new StringBuffer();
108
109 buffer.append("PositionLineup[");
110 buffer.append("tactics = " + tactics);
111 buffer.append(", name = " + name);
112 buffer.append("]");
113
114 return buffer.toString();
115 }
116 }