Internet Chess ToolKit
v0.2.0

ictk.boardgame
Class GameInfo

java.lang.Object
  extended byictk.boardgame.GameInfo
Direct Known Subclasses:
ChessGameInfo

public abstract class GameInfo
extends java.lang.Object

GameInfo contains all the information about the players of the game, where the game was played, what where the specific game/rule conditions of the game including time controls.


Field Summary
static long DEBUG
           
 java.util.Properties props
           
 
Constructor Summary
GameInfo()
           
 
Method Summary
 void add(java.lang.String key, java.lang.String value)
          extra data that we don't use might be in an imported file, and we'd like to keep it.
 void dump()
          diagonostic tool
 boolean equals(java.lang.Object o)
          the test for equality against all data in the object
 java.lang.String get(java.lang.String key)
          retrieve the Aux data.
 java.util.Properties getAuxilleryProperties()
          returns the Porperties object containing all the auxillery data that you want to save about the game but is not standard for this type of game.
 java.util.Calendar getDate()
           
 java.lang.String getDateString()
          returns the date string in typical YYYY.MM.DD format.
 int getDay()
           
 java.lang.String getEvent()
           
 int getMonth()
           
 Player[] getPlayers()
          gets the entire players array.
 Result getResult()
           
 java.lang.String getRound()
           
 java.lang.String getSite()
           
 java.lang.String getSubRound()
           
 int getYear()
           
 int hashCode()
           
 void setAuxilleryProperties(java.util.Properties p)
          this sets the entire properiest list to whatever you're sending it.
 void setDate(java.util.Calendar date)
           
 void setDay(int i)
           
 void setEvent(java.lang.String event)
           
 void setMonth(int i)
           
 void setResult(Result res)
           
 void setRound(java.lang.String round)
           
 void setSite(java.lang.String site)
           
 void setSubRound(java.lang.String round)
           
 void setYear(int i)
           
 java.lang.String toString()
          only used for debugging.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

public static final long DEBUG

props

public java.util.Properties props
Constructor Detail

GameInfo

public GameInfo()
Method Detail

getPlayers

public Player[] getPlayers()
gets the entire players array. There is no way to set players given in this abstract class since this should be game specific.


getEvent

public java.lang.String getEvent()

getSite

public java.lang.String getSite()

getDate

public java.util.Calendar getDate()

getRound

public java.lang.String getRound()

getSubRound

public java.lang.String getSubRound()

getYear

public int getYear()

getMonth

public int getMonth()

getDay

public int getDay()

getResult

public Result getResult()

getAuxilleryProperties

public java.util.Properties getAuxilleryProperties()
returns the Porperties object containing all the auxillery data that you want to save about the game but is not standard for this type of game.


getDateString

public java.lang.String getDateString()
returns the date string in typical YYYY.MM.DD format. If one of the values is not set it will be replaced by ????.??.?? accordingly.


setEvent

public void setEvent(java.lang.String event)

setSite

public void setSite(java.lang.String site)

setDate

public void setDate(java.util.Calendar date)

setRound

public void setRound(java.lang.String round)

setSubRound

public void setSubRound(java.lang.String round)

setYear

public void setYear(int i)

setMonth

public void setMonth(int i)

setDay

public void setDay(int i)

setResult

public void setResult(Result res)

setAuxilleryProperties

public void setAuxilleryProperties(java.util.Properties p)
this sets the entire properiest list to whatever you're sending it.


add

public void add(java.lang.String key,
                java.lang.String value)
extra data that we don't use might be in an imported file, and we'd like to keep it. This is put in Auxillery Properties


get

public java.lang.String get(java.lang.String key)
retrieve the Aux data.


toString

public java.lang.String toString()
only used for debugging.


equals

public boolean equals(java.lang.Object o)
the test for equality against all data in the object


hashCode

public int hashCode()

dump

public void dump()
diagonostic tool


Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .