View Javadoc

1   // %2258750519:hoplugins.teamAnalyzer.report%
2   package hoplugins.teamAnalyzer.report;
3   
4   import hoplugins.teamAnalyzer.vo.PlayerPerformance;
5   
6   
7   /***
8    * Report of all the different tactic used
9    *
10   * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
11   */
12  public class TacticReport extends Report {
13      //~ Instance fields ----------------------------------------------------------------------------
14  
15      /*** The tactic code */
16      private int tacticCode;
17  
18      //~ Constructors -------------------------------------------------------------------------------
19  
20      /***
21       * Creates a new TacticReport object.
22       *
23       * @param pp
24       */
25      public TacticReport(PlayerPerformance pp) {
26          super(pp);
27          this.tacticCode = pp.getPosition();
28      }
29  
30      //~ Methods ------------------------------------------------------------------------------------
31  
32      /***
33       * Document me!
34       *
35       * @param i
36       */
37      public void setTacticCode(int i) {
38          tacticCode = i;
39      }
40  
41      /***
42       * Document me!
43       *
44       * @return
45       */
46      public int getTacticCode() {
47          return tacticCode;
48      }
49  
50      /***
51       * toString methode: creates a String representation of the object
52       *
53       * @return the String representation
54       */
55      public String toString() {
56          StringBuffer buffer = new StringBuffer();
57  
58          buffer.append("TacticReport[");
59          buffer.append("tactic = " + tacticCode);
60          buffer.append(", " + super.toString());
61          buffer.append("]");
62  
63          return buffer.toString();
64      }
65  }