Internet Chess ToolKit
v0.2.0

ictk.boardgame.chess.net.ics
Class ICSRating

java.lang.Object
  extended byictk.boardgame.chess.net.ics.ICSRating

public class ICSRating
extends java.lang.Object

Ratings are playing strength estimates on the server.


Constructor Summary
ICSRating()
           
ICSRating(java.lang.String s)
           
 
Method Summary
 int get()
          gets the numeric rating.
 boolean isEstimated()
           
 boolean isNotApplicable()
           
 boolean isNotSet()
           
 boolean isProvisional()
           
 void set(int rate)
           
 void set(java.lang.String s)
           
 void setEstimated(boolean t)
           
 void setNotApplicable(boolean t)
           
 void setProvisional(boolean t)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ICSRating

public ICSRating()

ICSRating

public ICSRating(java.lang.String s)
          throws java.lang.NumberFormatException
Method Detail

set

public void set(int rate)

get

public int get()
gets the numeric rating. If no number is applicable such as the case for unset ratings then a 0 is returned.


isNotSet

public boolean isNotSet()

isNotApplicable

public boolean isNotApplicable()

isProvisional

public boolean isProvisional()

isEstimated

public boolean isEstimated()

setNotApplicable

public void setNotApplicable(boolean t)

setProvisional

public void setProvisional(boolean t)

setEstimated

public void setEstimated(boolean t)

set

public void set(java.lang.String s)
         throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

toString

public java.lang.String toString()

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