de.java_chess.javaChess.ply
Class AnalyzedPlyImpl
java.lang.Object
|
+--de.java_chess.javaChess.ply.AnalyzedPlyImpl
- public class AnalyzedPlyImpl
- extends java.lang.Object
- implements AnalyzedPly
Utility class for plies and their scores.
Constructor Summary |
AnalyzedPlyImpl(Ply ply,
short score)
Create a new AnalyzedPly instance. |
Method Summary |
java.lang.Object |
clone()
Clone this ply. |
Ply |
getPly()
Get the analyzed ply. |
short |
getScore()
Get the scrore of this ply. |
void |
setPly(Ply ply)
Set a new ply. |
void |
setScore(short score)
Set a new scrore for this ply. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AnalyzedPlyImpl
public AnalyzedPlyImpl(Ply ply,
short score)
- Create a new AnalyzedPly instance.
getPly
public final Ply getPly()
- Get the analyzed ply.
- Specified by:
- getPly in interface AnalyzedPly
- Returns:
- The analyzed ply.
setPly
public final void setPly(Ply ply)
- Set a new ply.
- Specified by:
- setPly in interface AnalyzedPly
- Parameters:
ply
- The new ply.
getScore
public final short getScore()
- Get the scrore of this ply.
- Specified by:
- getScore in interface AnalyzedPly
- Returns:
- The score of this ply.
setScore
public final void setScore(short score)
- Set a new scrore for this ply.
- Specified by:
- setScore in interface AnalyzedPly
- Parameters:
score
- The new score for this ply.
clone
public java.lang.Object clone()
- Clone this ply.
- Specified by:
- clone in interface AnalyzedPly
- Overrides:
- clone in class java.lang.Object
- Returns:
- A clone of this ply.