Coverage Report - com.buckosoft.fibs.domain.SavedMatch
 
Classes in this File Line Coverage Branch Coverage Complexity
SavedMatch
100%
13/13
N/A
1
 
 1  
 /******************************************************************************
 2  
  * SavedMatch.java - Describe a saved match that we have with a player
 3  
  * $Id$
 4  
  * 
 5  
  * BuckoFIBS - Backgammon by BuckoSoft
 6  
  * Copyright© 2009,2010 - Dick Balaska - BuckoSoft, Corp.
 7  
  * 
 8  
  * $Log$
 9  
  * Revision 1.2  2010/03/03 12:19:48  inim
 10  
  * Moved source to UTF8 encoding from CP1252 encoding. To this end all source files' (c) message was updated to "Copyright© 2009,2010 - Dick Balaska - BuckoSoft, Corp.". This replaces the (c) sign to UTF8, and adds the new year 2010.
 11  
  *
 12  
  * Revision 1.1  2010/02/04 05:57:53  inim
 13  
  * Mavenized project folder layout
 14  
  *
 15  
  * Revision 1.3  2009/02/20 10:26:44  dick
 16  
  * Use YourName and OpponentName where possible, instead of just "getName".
 17  
  *
 18  
  * Revision 1.2  2009/02/14 15:46:17  dick
 19  
  * BuckoFIBS is released under the GNU license.
 20  
  * Javadoc.
 21  
  *
 22  
  * Revision 1.1  2009/02/01 08:59:21  dick
 23  
  * Describe a saved match that we have with a player.
 24  
  */
 25  
 
 26  
 /* 
 27  
  * This program is free software: you can redistribute it and/or modify
 28  
  * it under the terms of the GNU General Public License as published by
 29  
  * the Free Software Foundation, either version 3 of the License, or
 30  
  * (at your option) any later version.
 31  
  *
 32  
  * This program is distributed in the hope that it will be useful,
 33  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 34  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 35  
  * GNU General Public License for more details.
 36  
  *
 37  
  * You should have received a copy of the GNU General Public License
 38  
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 39  
  *
 40  
  * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>.
 41  
  * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp.
 42  
  * 
 43  
  */
 44  
 package com.buckosoft.fibs.domain;
 45  
 
 46  
 /** Describe a saved match that we have with a player.
 47  
  * @author Dick Balaska
 48  
  * @since 2009/02/01
 49  
  * @version $Revision$ <br> $Date$
 50  
  * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/com/buckosoft/fibs/domain/SavedMatch.java">cvs SavedMatch.java</a>
 51  
  */
 52  
 public class SavedMatch {
 53  
         private        String        opponentName;
 54  
         private        int                matchLength;
 55  
         private        int                yourScore;
 56  
         private        int                opponentScore;
 57  
 
 58  
         /** Create an empty/default SavedMatch
 59  
          */
 60  11
         public SavedMatch() {}
 61  
 
 62  
         /** Get the name of the opponent
 63  
          * @return the name
 64  
          */
 65  
         public String getOpponentName() {
 66  7
                 return opponentName;
 67  
         }
 68  
 
 69  
         /** Set the name of the opponent
 70  
          * @param name the name to set
 71  
          */
 72  
         public void setOpponentName(String name) {
 73  3
                 this.opponentName = name;
 74  3
         }
 75  
 
 76  
         /** Return the number of games in this match
 77  
          * @return the matchLength
 78  
          */
 79  
         public int getMatchLength() {
 80  4
                 return matchLength;
 81  
         }
 82  
 
 83  
         /** Set the number of games in this match.
 84  
          * @param matchLength the matchLength to set
 85  
          */
 86  
         public void setMatchLength(int matchLength) {
 87  3
                 this.matchLength = matchLength;
 88  3
         }
 89  
 
 90  
         /** Get Your score in this match
 91  
          * @return the yourScore
 92  
          */
 93  
         public int getYourScore() {
 94  4
                 return yourScore;
 95  
         }
 96  
 
 97  
         /** Set Your score in this match
 98  
          * @param yourScore the yourScore to set
 99  
          */
 100  
         public void setYourScore(int yourScore) {
 101  3
                 this.yourScore = yourScore;
 102  3
         }
 103  
 
 104  
         /** Get the opponent's score in this match
 105  
          * @return the opponentScore
 106  
          */
 107  
         public int getOpponentScore() {
 108  4
                 return opponentScore;
 109  
         }
 110  
 
 111  
         /** Set the opponent's score in this match
 112  
          * @param opponentScore the opponentScore to set
 113  
          */
 114  
         public void setOpponentScore(int opponentScore) {
 115  3
                 this.opponentScore = opponentScore;
 116  3
         }
 117  
 }