View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.teamcomm.mina.server.messages;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
7   import cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages.TCInfoData;
8   import cz.cuni.amis.pogamut.ut2004.teamcomm.mina.model.TCTeam;
9   import cz.cuni.amis.utils.token.IToken;
10  import cz.cuni.amis.utils.token.Tokens;
11  
12  public class TCInfoStatus extends TCInfoData {
13  	
14  	/**
15  	 * Auto-generated.
16  	 */
17  	private static final long serialVersionUID = -3611636714625106957L;
18  
19  	public static final IToken MESSAGE_TYPE = Tokens.get("TCInfoStatus");
20  	
21  	private List<UnrealId> allBots = new ArrayList<UnrealId>();
22  	
23  	private TCTeam team = null;
24  	
25  	public TCInfoStatus(long requestId, long simTime) {
26  		super(requestId, MESSAGE_TYPE, simTime);
27  	}
28  
29  	public List<UnrealId> getAllBots() {
30  		return allBots;
31  	}
32  
33  	public void setAllBots(List<UnrealId> allBots) {
34  		this.allBots = allBots;
35  	}
36  
37  	public TCTeam getTeam() {
38  		return team;
39  	}
40  
41  	public void setTeam(TCTeam team) {
42  		this.team = team;
43  	}
44  	
45  	@Override
46  	public String toString() {
47  		return "TCInfoStatus[#bots=" + (allBots == null ? "NULL" : allBots.size()) + ", team=" + team + "]";
48  	}
49  
50  
51  }