View Javadoc
1 /* 2 * Player.java 3 * 4 * Created on February 6, 2003, 2:15 AM 5 */ 6 7 package com.mlw.fps.model.business.vo; 8 9 import java.util.ArrayList; 10 import java.util.Date; 11 import java.util.HashMap; 12 import java.util.List; 13 /*** 14 * 15 * @author Matthew Wilson 16 */ 17 public class Round extends Base 18 { 19 /*** Holds value of property endDate. */ 20 private Date endDate; 21 /*** Holds value of property winningTeam. */ 22 private String winningTeam; 23 /*** Holds value of property kills. */ 24 private List kills; 25 26 private java.util.Map players; 27 28 private long length; 29 30 /*** Creates a new instance of Round 31 */ 32 private Round() 33 { 34 } 35 36 /*** Creates a new instance of Round 37 */ 38 public Round(Date date) 39 { 40 setDate(date); 41 } 42 43 /*** Getter for property endDate. 44 * @return Value of property endDate. 45 */ 46 public Date getEndDate() 47 { 48 return this.endDate; 49 } 50 51 /*** Setter for property endDate. 52 * @param endDate New value of property endDate. 53 */ 54 public void setEndDate(Date endDate) 55 { 56 this.endDate = endDate; 57 } 58 59 /*** Getter for property winningTeam. 60 * @return Value of property winningTeam. 61 */ 62 public String getWinningTeam() 63 { 64 return this.winningTeam; 65 } 66 67 /*** Setter for property winningTeam. 68 * @param winningTeam New value of property winningTeam. 69 */ 70 public void setWinningTeam(String winningTeam) 71 { 72 this.winningTeam = winningTeam; 73 } 74 75 /*** Getter for property kills. 76 * @return Value of property kills. 77 */ 78 public List getKills() 79 { 80 if( kills == null ) 81 { 82 kills = new ArrayList(40); 83 } 84 85 return this.kills; 86 } 87 88 /*** Setter for property kills. 89 * @param kills New value of property kills. 90 */ 91 public void setKills(List kills) 92 { 93 this.kills = kills; 94 } 95 96 /*** 97 * @return 98 */ 99 public java.util.Map getStatusOfPlayers() 100 { 101 if( players==null ) players = new HashMap(); 102 return players; 103 } 104 105 /*** 106 * @param java.util.Map 107 */ 108 public void setStatusOfPlayers(java.util.Map players) 109 { 110 if( players!=null ) this.players=players; 111 } 112 113 public long getLength() 114 { 115 long time = (getEndDate().getTime() - getDate().getTime() )/1000; 116 return time<0?0:time; 117 } 118 119 }

This page was automatically generated by Maven