nl.tudelft.goal.ut2004.visualizer.data
Class GameStatusData

Package class diagram package GameStatusData
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.data.AbstractData
      extended by nl.tudelft.goal.ut2004.visualizer.data.GameStatusData

public class GameStatusData
extends AbstractData

AbstractData object that keeps track of the objects that refer to the status of the game. More precisely stores the latest GameStatus and FlagInfo objects.

Author:
Lennard de Rijk

Constructor Summary
GameStatusData()
           
 
Method Summary
 Collection<FlagInfo> getFlagInfoCollection()
           
 GameInfo getGameInfo()
           
 Collection<TeamScore> getTeamScoreCollection()
           
 void serverChanged(IUT2004Server server)
          Listener for the server.
 
Methods inherited from class nl.tudelft.goal.ut2004.visualizer.data.AbstractData
notifyListeners, subscribe, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameStatusData

public GameStatusData()
Method Detail

serverChanged

public void serverChanged(IUT2004Server server)
Listener for the server. May be called from another thread.

Specified by:
serverChanged in class AbstractData
Parameters:
server - the new server or null if the connection was lost.

getGameInfo

public GameInfo getGameInfo()
Returns:
The most recent GameStatus

getFlagInfoCollection

public Collection<FlagInfo> getFlagInfoCollection()
Returns:
the flagInfoCollection

getTeamScoreCollection

public Collection<TeamScore> getTeamScoreCollection()
Returns:
the teamScoreCollection


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.