net.sf.freecol.common.networking
Class StatisticsMessage

java.lang.Object
  extended by net.sf.freecol.common.networking.Message
      extended by net.sf.freecol.common.networking.StatisticsMessage

public class StatisticsMessage
extends Message


Constructor Summary
StatisticsMessage(org.w3c.dom.Element element)
           
StatisticsMessage(Game game, AIMain aiMain)
           
 
Method Summary
 java.util.HashMap<java.lang.String,java.lang.Long> getAIStatistics()
          Get the ai statistics.
 java.util.HashMap<java.lang.String,java.lang.Long> getGameStatistics()
          Get the game statistics.
 java.util.HashMap<java.lang.String,java.lang.Long> getMemoryStatistics()
          Get the free memory.
static java.lang.String getXMLElementTagName()
           
 void readFromXML(org.w3c.dom.Element element)
           
 org.w3c.dom.Element toXMLElement()
           
 
Methods inherited from class net.sf.freecol.common.networking.Message
clientError, createError, createError, createNewDocument, createNewRootElement, getAttribute, getChildElement, getDocument, getFreeColProtocolVersion, getType, hasAttribute, insertAsRoot, isType, setAttribute, setAttribute, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatisticsMessage

public StatisticsMessage(Game game,
                         AIMain aiMain)

StatisticsMessage

public StatisticsMessage(org.w3c.dom.Element element)
Method Detail

getGameStatistics

public final java.util.HashMap<java.lang.String,java.lang.Long> getGameStatistics()
Get the game statistics.

Returns:
a Tile value

getAIStatistics

public final java.util.HashMap<java.lang.String,java.lang.Long> getAIStatistics()
Get the ai statistics.

Returns:
a Tile value

getMemoryStatistics

public final java.util.HashMap<java.lang.String,java.lang.Long> getMemoryStatistics()
Get the free memory.

Returns:
a Tile value

readFromXML

public void readFromXML(org.w3c.dom.Element element)

toXMLElement

public org.w3c.dom.Element toXMLElement()
Overrides:
toXMLElement in class Message

getXMLElementTagName

public static java.lang.String getXMLElementTagName()