|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectklaus.chess.party.Party
public class Party
This represents a party.
Field Summary | |
---|---|
private ArrayList<String> |
additionalMetaData
|
private String |
blackPlayer
Name of the white/black player |
private String |
date
|
private String |
ECO
|
private boolean |
engineNeedsToResync
|
private PartyNode |
lastNode
A reference to the last node of PV |
private int |
plyCount
The number of plys in the pv |
private String |
result
|
private PartyNode |
root
The party root node |
private String |
round
|
private String |
site
|
private String |
startingComment
|
private String |
tournament
|
private PartyNode |
varNode
The node before lastNode, that is the node where variations are added |
private String |
whitePlayer
Name of the white/black player |
Constructor Summary | |
---|---|
Party()
|
Method Summary | |
---|---|
void |
addComment(String comment)
Adds a comment after the last move |
void |
addMove(Move m)
add a new move at the end of the PV |
void |
addVariation(PartyNode variation)
Adds a variation after the previous pv move |
String |
generatePGN()
This will generate a PGN from this party |
String |
getBlackPlayer()
|
String |
getDate()
|
String |
getECO()
|
String |
getHTMLNotation()
|
Move |
getLastMove()
Gets the last move of the PV |
int |
getPlyCount()
|
Position |
getPosition()
Get the position at the end of the game, variants will be ignored! |
Position |
getPosition(int endPly)
Get a position in the game, with endPly being the last ply before the position that should be created. |
String |
getResult()
|
String |
getRound()
|
String |
getSite()
|
String |
getTournament()
|
String |
getWhitePlayer()
|
boolean |
needResync()
|
void |
parsePGN(String pgnnotation)
Parse a PGN notation |
void |
setBlackPlayer(String blackPlayer)
|
void |
setDate(String date)
|
void |
setECO(String eco)
|
void |
setResult(String result)
|
void |
setRound(String round)
|
void |
setSite(String site)
|
void |
setTournament(String tournament)
|
void |
setWhitePlayer(String whitePlayer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String result
private String date
private String site
private String tournament
private String ECO
private String round
private String whitePlayer
private String blackPlayer
private String startingComment
private ArrayList<String> additionalMetaData
private PartyNode root
private PartyNode varNode
private PartyNode lastNode
private int plyCount
private boolean engineNeedsToResync
Constructor Detail |
---|
public Party()
Method Detail |
---|
public void addMove(Move m)
m
- the move to addpublic void addVariation(PartyNode variation)
variation
- the variation to addpublic Position getPosition()
public Position getPosition(int endPly)
endPly
- the last ply
public String getHTMLNotation()
public void addComment(String comment)
comment
- the comment to addpublic void parsePGN(String pgnnotation)
pgnnotation
- public String generatePGN()
public String getBlackPlayer()
public String getWhitePlayer()
public void setBlackPlayer(String blackPlayer)
public void setWhitePlayer(String whitePlayer)
public Move getLastMove()
public boolean needResync()
public String getResult()
public void setResult(String result)
public String getDate()
public String getSite()
public String getTournament()
public void setDate(String date)
public void setSite(String site)
public void setTournament(String tournament)
public String getRound()
public void setRound(String round)
public String getECO()
public void setECO(String eco)
public int getPlyCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |