public class TennisEventState extends B2EventState
Modifier and Type | Field and Description |
---|---|
static int |
INVALID |
Constructor and Description |
---|
TennisEventState(IParticipantStats statsOne,
IParticipantStats statsTwo,
int duration,
PartitionKey key,
java.lang.String matchId,
java.lang.String eventId,
int set,
int game,
TennisSegment segment,
int bookPriority) |
TennisEventState(IParticipantStats statsOne,
IParticipantStats statsTwo,
int duration,
PartitionKey key,
java.lang.String matchId,
java.lang.String eventId,
TennisSegment segment,
int bookPriority) |
Modifier and Type | Method and Description |
---|---|
int |
game()
Indicates the current game.
|
int |
getP1CurrentGameWon() |
int |
getP1CurrentPointWon() |
int |
getP1CurrentSetWon() |
int |
getP1GameWon(int setNum) |
int |
getP2CurrentGameWon() |
int |
getP2CurrentPointWon() |
int |
getP2CurrentSetWon() |
int |
getP2GameWon(int setNum) |
boolean |
hasGameCount()
Indicates whether or not game is valid
|
boolean |
hasSetCount()
Indicates whether or not set is valid
|
TennisSegment |
segment() |
int |
set()
Indicates the current set.
|
java.util.List<IParticipantStats> |
stats()
The default ordered list of participants' statistics
|
IParticipantStats |
statsOf(int idx)
Get the statistics of a particular participant
|
statsOne, statsTwo
bookPriority, duration, eventId, getCreatedTime, matchId, partitionKey
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bookPriority, duration, eventId, getCreatedTime, matchId, partitionKey
public static final int INVALID
public TennisEventState(IParticipantStats statsOne, IParticipantStats statsTwo, int duration, PartitionKey key, java.lang.String matchId, java.lang.String eventId, int set, int game, TennisSegment segment, int bookPriority)
public TennisEventState(IParticipantStats statsOne, IParticipantStats statsTwo, int duration, PartitionKey key, java.lang.String matchId, java.lang.String eventId, TennisSegment segment, int bookPriority)
public boolean hasSetCount()
public boolean hasGameCount()
public int set()
public int game()
public int getP1CurrentSetWon()
public int getP2CurrentSetWon()
public int getP1CurrentGameWon()
public int getP2CurrentGameWon()
public int getP1CurrentPointWon()
public int getP2CurrentPointWon()
public int getP1GameWon(int setNum)
public int getP2GameWon(int setNum)
public TennisSegment segment()
public java.util.List<IParticipantStats> stats()
stats
in interface IBetEventState
stats
in class B2EventState
public IParticipantStats statsOf(int idx)
statsOf
in interface IBetEventState
statsOf
in class B2EventState
idx
- index of the participant