Internet Chess ToolKit
v0.2.0

ictk.boardgame.chess.net.ics.fics.event
Class FICSBoardUpdateStyle12Parser

java.lang.Object
  extended byictk.boardgame.chess.net.ics.event.ICSEventParser
      extended byictk.boardgame.chess.net.ics.fics.event.FICSBoardUpdateStyle12Parser

public class FICSBoardUpdateStyle12Parser
extends ICSEventParser

This class parses ICS Style12 Board Update events.

 <12> r-bq-rk- pp-nppbp -----np- --pp---- ---P---- --PBPN-- PP-N-PPP R-BQR-K- B -1 0 0 0 0 2 2 bbbb Simpan -2 3 0 39 39 177810 171259 8 R/f1-e1 (0:00.000) Re1 0 0 0
 


Field Summary
static java.util.regex.Pattern masterPattern
           
static FICSBoardUpdateStyle12Parser singleton
           
 
Fields inherited from class ictk.boardgame.chess.net.ics.event.ICSEventParser
DEBUG, REGEX_date
 
Method Summary
 void assignMatches(java.util.regex.Matcher m, ICSEvent event)
          Takes the data from the Matcher object and assigns them to the data fields of the ICSEvent object.
 ICSEvent createICSEvent(java.util.regex.Matcher match)
          Instantiantes a new ICSEvent of the appropriate type for this parser.
static ICSEventParser getInstance()
           
 java.lang.String toNative(ICSEvent event)
           
 
Methods inherited from class ictk.boardgame.chess.net.ics.event.ICSEventParser
createICSEvent, detectFake, getEventType, getPattern, match, setDebug
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

public static FICSBoardUpdateStyle12Parser singleton

masterPattern

public static final java.util.regex.Pattern masterPattern
Method Detail

getInstance

public static ICSEventParser getInstance()

createICSEvent

public ICSEvent createICSEvent(java.util.regex.Matcher match)
Description copied from class: ICSEventParser
Instantiantes a new ICSEvent of the appropriate type for this parser. If the Matcher passed in is not from this parser the results are undefined.

Specified by:
createICSEvent in class ICSEventParser

assignMatches

public void assignMatches(java.util.regex.Matcher m,
                          ICSEvent event)
Description copied from class: ICSEventParser
Takes the data from the Matcher object and assigns them to the data fields of the ICSEvent object. This will clear all data in the ICSEvent object if there was any to begin with. This function can be used if you wish to recycle ICSEvent objects for some reason.

Specified by:
assignMatches in class ICSEventParser

toNative

public java.lang.String toNative(ICSEvent event)
Specified by:
toNative in class ICSEventParser

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