A B C D E F G H I L M N O P R S T U V W X Z

A

AroundTheClockGame - class org.dartra.games.practice.AroundTheClockGame.
Simple around the clock game.
AroundTheClockGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.practice.AroundTheClockGame
 
AroundTheClockGame(StandardBoard, Player[]) - Constructor for class org.dartra.games.practice.AroundTheClockGame
 
accept(GameVisitor) - Method in interface org.dartra.framework.Game
Have given visitor process the data in this game.
accept(GameVisitor) - Method in class org.dartra.standard.StandardGame
 
accept(GameVisitor) - Method in class org.dartra.standard.StandardMatch
 
addBoard(Board) - Method in interface org.dartra.framework.dao.BoardDAO
Add given board to the persistent store.
addDartsSet(DartsSet) - Method in interface org.dartra.framework.User
Adds a DartsSet to the collection owned by the user.
addDartsSet(DartsSet) - Method in interface org.dartra.framework.dao.DartsSetDAO
Add given darts set to the persistent store.
addDartsSet(DartsSet) - Method in class org.dartra.standard.StandardUser
 
addGame(Game) - Method in interface org.dartra.framework.dao.GameDAO
Add given game to the persistent store.
addGame(Game) - Method in class org.dartra.games.cricket.ScramCricketGame
Add a game to the match.
addGame(Game) - Method in class org.dartra.standard.StandardMatch
Add a game to the match.
addGameEventListener(GameEventListener) - Method in interface org.dartra.framework.Game
Add given game event listener to the list of listeners that will be notified when a game event occurs.
addGameEventListener(GameEventListener) - Method in class org.dartra.standard.StandardGame
 
addHitToTracker(Player, Hashtable, Hashtable, Hit) - Method in class org.dartra.games.cricket.CricketGame
 
addHitToTracker(Player, Hashtable, Hashtable, Hit) - Method in class org.dartra.games.cricket.CutThroatCricketGame
 
addHitToTracker(Player, Hashtable, Hashtable, Hit) - Method in class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart
 
addHitToTracker(Player, Hashtable, Hashtable, Hit) - Method in class org.dartra.games.cricket.SuicideCricketGame
 
addPlayerThrow(Zone, Hit) - Method in class org.dartra.games.cricket.CricketGame
 
addThrow(Throw) - Method in interface org.dartra.framework.Turn
Add a throw to this turn.
addThrow(Throw) - Method in class org.dartra.standard.StandardTurn
 
addTurn(Turn) - Method in class org.dartra.standard.StandardGame
Add a turn to the game.
addTurn(Turn) - Method in class org.dartra.standard.StandardMatch
This method is not supported for matches.
addTurnToTracker(Turn, Hashtable, Hashtable) - Method in class org.dartra.games.cricket.CricketGame
 
addTurnToTracker(Turn, Hashtable, Hashtable) - Method in class org.dartra.games.cricket.GentlemensCricketGame
 
addUser(User) - Method in interface org.dartra.framework.dao.UserDAO
Add given user to the persistent store.
asList(Object[]) - Static method in class org.dartra.util.CollectionTools
Returns a fixed-size list backed by the specified array.
atan(double) - Static method in class org.dartra.util.MathTools
Returns the arc tangent of an angle, in the range of -pi/2 through pi/2.
atan2(double, double) - Static method in class org.dartra.util.MathTools
Converts rectangular coordinates (xy) to polar (r, theta).

B

BIRDIE - Static variable in class org.dartra.games.golf.GolfScoreHelper
 
BOGEY - Static variable in class org.dartra.games.golf.GolfScoreHelper
 
BaseballGame - class org.dartra.games.baseball.BaseballGame.
Classic darts baseball game.
BaseballGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.baseball.BaseballGame
 
BaseballGame(StandardBoard, Player[]) - Constructor for class org.dartra.games.baseball.BaseballGame
 
BestOfMatch - class org.dartra.standard.BestOfMatch.
A match which has as winner the player that won more than half of the number of games played.
BestOfMatch(String, Board, StringProperties) - Constructor for class org.dartra.standard.BestOfMatch
 
BestOfMatch(String, Board, int, boolean) - Constructor for class org.dartra.standard.BestOfMatch
 
BestOfMatch(String, Board, Player[], StringProperties) - Constructor for class org.dartra.standard.BestOfMatch
 
BestOfMatch(String, Board, Player[], int, boolean) - Constructor for class org.dartra.standard.BestOfMatch
 
Board - interface org.dartra.framework.Board.
A darts board.
BoardDAO - interface org.dartra.framework.dao.BoardDAO.
Data access object for boards and their zones.

C

ClosestToZoneGame - class org.dartra.games.practice.ClosestToZoneGame.
Simple game where the players have to throw as close as possible to a designated target zone.
ClosestToZoneGame(Board, Player[], StringProperties) - Constructor for class org.dartra.games.practice.ClosestToZoneGame
 
ClosestToZoneGame(Board, Player[], Zone) - Constructor for class org.dartra.games.practice.ClosestToZoneGame
 
CollectionTools - class org.dartra.util.CollectionTools.
Static utility methods dealing with collections of objects.
Condition - interface org.dartra.util.Condition.
Utility strategy interface to select certain objects that comply to a certain condition.
Connection - interface org.dartra.framework.dao.Connection.
Persistence technology agnostic connection interface.
CricketGame - class org.dartra.games.cricket.CricketGame.
CricketGame implementation
CricketGame(StandardBoard, Player[], boolean) - Constructor for class org.dartra.games.cricket.CricketGame
 
CricketGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.CricketGame
 
CricketGame(String, StandardBoard, Player[], boolean) - Constructor for class org.dartra.games.cricket.CricketGame
 
CricketGame(String, StandardBoard, Player[], boolean, String[]) - Constructor for class org.dartra.games.cricket.CricketGame
 
CricketGame(String, StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.CricketGame
 
CricketMatch - class org.dartra.games.cricket.CricketMatch.
CricketMatch.
CricketMatch(StandardBoard, Player[], boolean, int) - Constructor for class org.dartra.games.cricket.CricketMatch
 
CricketMatch(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.CricketMatch
 
CricketScoreVisitor - class org.dartra.games.cricket.visitor.CricketScoreVisitor.
Visitor to retrieve the score from a cricket game.
CricketScoreVisitor(boolean) - Constructor for class org.dartra.games.cricket.visitor.CricketScoreVisitor
 
CutThroatCricketGame - class org.dartra.games.cricket.CutThroatCricketGame.
Version of the cricketgame for more than two players, where the lowest score wins, and players give the other players that haven't closed a goals, the points they score.
CutThroatCricketGame(StandardBoard, Player[]) - Constructor for class org.dartra.games.cricket.CutThroatCricketGame
 
CutThroatCricketGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.CutThroatCricketGame
 
calculateWinner() - Method in class org.dartra.games.cricket.CricketGame
 
calculateWinner() - Method in class org.dartra.games.cricket.CutThroatCricketGame
 
calculateWinner() - Method in class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart
 
changePlayer() - Method in class org.dartra.games.cricket.CricketGame
 
changePlayer() - Method in class org.dartra.games.practice.TargetPracticeGame
 
check(Object) - Method in interface org.dartra.util.Condition
Check whether or not given object complies with the condition implemented by the strategy.
checkMatchWinner() - Method in class org.dartra.standard.BestOfMatch
Checks if this match has a winner: goes through the games that have been played, and checks if one player has won more than half of the games of this match.
checkPassword(String) - Method in interface org.dartra.framework.User
Check the password for the user.
checkPassword(String) - Method in class org.dartra.standard.StandardUser
 
checkScramGameOver() - Method in class org.dartra.games.cricket.ScramCricketGame
Checks if this game has a winner, and sets the winner.
close() - Method in interface org.dartra.framework.dao.Connection
Close this connection to the data source.
close() - Method in interface org.dartra.framework.dao.DataAccessObject
Close all resources held by this DAO.
closeDataSource(DataSource) - Method in interface org.dartra.framework.dao.DAOFactory
Try to close (shutdown) the given data source.
closedByEveryOtherPlayer(Hashtable, int, Player) - Method in class org.dartra.games.cricket.CutThroatCricketGame
 
commit() - Method in interface org.dartra.framework.dao.Connection
Commit all changes made since the last commit.
countGamesWon(Player) - Method in class org.dartra.standard.BestOfMatch
Counts the number of games the given player has won so far in this match.
countThrowsWhere(Player, Condition) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Returns the number of throws for given player that comply to given condition.
createBoardDAO() - Method in interface org.dartra.framework.dao.DAOFactory
Create a new board DAO.
createDartsSetDAO() - Method in interface org.dartra.framework.dao.DAOFactory
Create a new darts set DAO.
createGameDAO() - Method in interface org.dartra.framework.dao.DAOFactory
Create a new game DAO.
createNewGame() - Method in class org.dartra.games.cricket.CricketMatch
 
createNewGame() - Method in class org.dartra.games.x01.X01Match
Create a new game for this match: an x01 set.
createNewGame() - Method in class org.dartra.games.x01.X01Set
Creates a new game for this set: a new X01Game.
createNewGame() - Method in class org.dartra.standard.BestOfMatch
Subclasses should define this method appropriately.
createTracker() - Method in class org.dartra.games.cricket.CricketGame
 
createUserDAO() - Method in interface org.dartra.framework.dao.DAOFactory
Create a new user DAO.

D

DAOFactory - interface org.dartra.framework.dao.DAOFactory.
Factory interface for objects that can create data access objects (DAOs).
DEFAULT_GOALS - Static variable in class org.dartra.games.cricket.CricketGame
 
DEFAULT_SCRAM_GOALS - Static variable in class org.dartra.games.cricket.ScramCricketGame
 
DOUBLE_BOGEY - Static variable in class org.dartra.games.golf.GolfScoreHelper
 
DartsSet - interface org.dartra.framework.DartsSet.
Set of darts used by a player during a game.
DartsSetDAO - interface org.dartra.framework.dao.DartsSetDAO.
Data access object for darts sets.
DataAccessException - exception org.dartra.framework.dao.DataAccessException.
Exception signaling problems accessing data in the persistent store.
DataAccessException(String) - Constructor for class org.dartra.framework.dao.DataAccessException
Create a new data access axception with given error message.
DataAccessException(Throwable) - Constructor for class org.dartra.framework.dao.DataAccessException
Create a new data access exception caused by given Throwable.
DataAccessException(String, Throwable) - Constructor for class org.dartra.framework.dao.DataAccessException
Create a new data access exception caused by given Throwable.
DataAccessObject - interface org.dartra.framework.dao.DataAccessObject.
Core interface for all DAO's.
DataSource - interface org.dartra.framework.dao.DataSource.
Persistence technology agnostic data source interface.
distanceTo(Hit) - Method in interface org.dartra.framework.Hit
Calculate the distance between this hit and given hit.
distanceTo(Location) - Method in interface org.dartra.framework.Hit
Calculate the distance between this hit and given location.
distanceTo(Location) - Method in interface org.dartra.framework.Location
Calculate the distance between this location and given location.
distanceTo(Zone) - Method in interface org.dartra.framework.Zone
Returns the distance between this zone and given zone.
distanceTo(Hit) - Method in interface org.dartra.framework.Zone
Returns the distance between this zone and the hit location of given hit.
distanceTo(Location) - Method in interface org.dartra.framework.Zone
Returns the distance between this zone and given location.
distanceTo(Hit) - Method in class org.dartra.standard.StandardHit
 
distanceTo(Location) - Method in class org.dartra.standard.StandardHit
 
distanceTo(Location) - Method in class org.dartra.standard.StandardLocation
 
distanceTo(Hit) - Method in class org.dartra.standard.StandardZone
 
distanceTo(Location) - Method in class org.dartra.standard.StandardZone
 
distanceTo(Zone) - Method in class org.dartra.standard.StandardZone
 

E

EIGHTEEN_HOLES - Static variable in class org.dartra.games.golf.GolfGame
 
emptyTurn(Turn) - Method in class org.dartra.games.cricket.CricketGame
 
emptyTurn(Turn) - Method in class org.dartra.games.golf.GolfScoreHelper
 
encryptPassword(String) - Method in class org.dartra.standard.StandardUser
Encrypt given password.
equals(Object) - Method in class org.dartra.standard.StandardHit
 
equals(Object) - Method in class org.dartra.standard.StandardLocation
 
equals(Object) - Method in class org.dartra.standard.StandardScore
 

F

FreeChoiceCricketGame - class org.dartra.games.cricket.FreeChoiceCricketGame.
Cricket variation where the players define the goals (can be less or more numbers than the 'original' cricket game)
FreeChoiceCricketGame(StandardBoard, Player[], boolean, String[]) - Constructor for class org.dartra.games.cricket.FreeChoiceCricketGame
 
FreeChoiceCricketGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.FreeChoiceCricketGame
 
FreeChoiceCricketGame(String, StandardBoard, Player[], boolean, String[]) - Constructor for class org.dartra.games.cricket.FreeChoiceCricketGame
 
FreeChoiceCricketGame(String, StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.FreeChoiceCricketGame
 
findAll(Vector, Condition) - Static method in class org.dartra.util.CollectionTools
Find all elements of given list that comply to given condition.
findFirst(Vector, Condition) - Static method in class org.dartra.util.CollectionTools
Find the first element of given list that complies to given condition.
findPlace(int) - Method in class org.dartra.games.cricket.CricketGame
 
findPlace(String) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 

G

GAME_ENDED - Static variable in class org.dartra.framework.GameEvent
A game event of this type is signaled when the darts game has ended, that is: a winner has been selected.
GAME_STARTED - Static variable in class org.dartra.framework.GameEvent
A game event of this type is signaled when the darts game has started.
Game - interface org.dartra.framework.Game.
A game of darts.
GameDAO - interface org.dartra.framework.dao.GameDAO.
Data access object for games.
GameEvent - class org.dartra.framework.GameEvent.
Object representing a game event.
GameEvent(Game, int, String) - Constructor for class org.dartra.framework.GameEvent
Create a new game event.
GameEvent(Game, int, String, Object) - Constructor for class org.dartra.framework.GameEvent
Create a new game event.
GameEventAdapter - class org.dartra.framework.GameEventAdapter.
Adapter with empty implementations of the methods provided by the GameEventListener interface.
GameEventAdapter() - Constructor for class org.dartra.framework.GameEventAdapter
 
GameEventListener - interface org.dartra.framework.GameEventListener.
A listener interested in events signaled by a game.
GameVisitor - interface org.dartra.framework.GameVisitor.
Visitor that can visit a game-match tree.
GentlemensCricketGame - class org.dartra.games.cricket.GentlemensCricketGame.
A version of cricket where only the darts that hit the targetzone will count.
GentlemensCricketGame(StandardBoard, Player[], boolean) - Constructor for class org.dartra.games.cricket.GentlemensCricketGame
 
GentlemensCricketGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.GentlemensCricketGame
 
GolfGame - class org.dartra.games.golf.GolfGame.
Classic darts golf game.
GolfGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.golf.GolfGame
 
GolfGame(StandardBoard, Player[], int) - Constructor for class org.dartra.games.golf.GolfGame
Constructor taking the number of holes and an array of players as arguments.
GolfScoreHelper - class org.dartra.games.golf.GolfScoreHelper.
Helper class for score calculation methods for golf darts games.
GolfScoreHelper() - Constructor for class org.dartra.games.golf.GolfScoreHelper
 
GolfStatisticsVisitor - class org.dartra.games.golf.visitor.GolfStatisticsVisitor.
Game visitor collecting statistics data specific to a GolfGame
GolfStatisticsVisitor(boolean) - Constructor for class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
GolfStatisticsVisitor.PlayerStatistics - class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics.
 
GolfStatisticsVisitor.PlayerStatistics() - Constructor for class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics
 
gameEnded(GameEvent) - Method in class org.dartra.framework.GameEventAdapter
 
gameEnded(GameEvent) - Method in interface org.dartra.framework.GameEventListener
Called when the game ends.
gameEventSignaled(GameEvent) - Method in class org.dartra.framework.GameEventAdapter
 
gameEventSignaled(GameEvent) - Method in interface org.dartra.framework.GameEventListener
Called for any game event that occurs.
gameOver() - Method in class org.dartra.games.cricket.CricketGame
 
gameOver() - Method in class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart
 
gameStarted(GameEvent) - Method in class org.dartra.framework.GameEventAdapter
 
gameStarted(GameEvent) - Method in interface org.dartra.framework.GameEventListener
Called when the game starts.
getActualPlayer() - Method in interface org.dartra.framework.Turn
Returns the player that actually executed the turn.
getActualPlayer() - Method in class org.dartra.standard.StandardTurn
 
getAngle(double, double, double, double) - Static method in class org.dartra.util.LocationTools
Returns the angle from location (x1, y1) to location (x2, y2).
getAverageAccuracy(Player, boolean) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Calculate the average accuracy for given player, expressed in centimeters (cm).
getAverageHorizontalAccuracy(Player, boolean) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Calculate the average horizontal accuracy for given player, expressed in centimeters (cm).
getAverageVerticalAccuracy(Player, boolean) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Calculate the average vertical accuracy for given player, expressed in centimeters (cm).
getBestOf() - Method in class org.dartra.standard.BestOfMatch
Returns the best-of (the maximum number of games) for this match.
getBoard() - Method in interface org.dartra.framework.Game
Returns the board the game is played on.
getBoard() - Method in interface org.dartra.framework.Zone
Return the board that this zone is a part of.
getBoard(String) - Method in interface org.dartra.framework.dao.BoardDAO
Load the board with given implementation class from the persistent store.
getBoard() - Method in class org.dartra.standard.StandardGame
 
getBoard() - Method in class org.dartra.standard.StandardZone
 
getBoardWithId(Object) - Method in interface org.dartra.framework.dao.BoardDAO
Load the board with specified persistent store id.
getBoards() - Method in interface org.dartra.framework.dao.BoardDAO
Load all board objects available in the persistent store.
getBooleanProperty(String) - Method in class org.dartra.standard.StringProperties
Returns the value of named property as a boolean.
getBrand() - Method in interface org.dartra.framework.DartsSet
Returns the darts set brand name.
getBrand() - Method in class org.dartra.standard.StandardDartsSet
 
getCause() - Method in class org.dartra.framework.dao.DataAccessException
Returns the cause of this throwable or null if the cause is nonexistent or unknown.
getCenter() - Method in interface org.dartra.framework.Zone
Get the center location of the zone.
getCenter() - Method in class org.dartra.standard.StandardZone
 
getCode() - Method in interface org.dartra.framework.Zone
Return the unique code of the zone.
getCode() - Method in class org.dartra.standard.StandardZone
 
getConnection() - Method in interface org.dartra.framework.dao.DataAccessObject
Return the connection to the data source used by this DAO.
getConnection() - Method in interface org.dartra.framework.dao.DataSource
Return a connection to the data source.
getCurrentGame() - Method in interface org.dartra.framework.Match
Return the currently active game of this match.
getCurrentGame() - Method in class org.dartra.games.cricket.ScramCricketGame
Get the currently active game of this match.
getCurrentGame() - Method in class org.dartra.standard.StandardMatch
Get the currently active game of this match.
getCurrentPlayer() - Method in interface org.dartra.framework.Game
Returns the current player of the game, the player that is currently on throw.
getCurrentPlayer() - Method in interface org.dartra.framework.Team
Get the currently active player of this team, in the context of the game in which this team is participating.
getCurrentPlayer() - Method in class org.dartra.games.cricket.ScramCricketGame
 
getCurrentPlayer() - Method in class org.dartra.standard.StandardGame
Return the currently active player.
getCurrentPlayer() - Method in class org.dartra.standard.StandardMatch
Returns the currently active player of the match.
getCurrentPlayer() - Method in class org.dartra.standard.StandardTeam
 
getCurrentTurn() - Method in interface org.dartra.framework.Game
Return the currently active turn of the game.
getCurrentTurn() - Method in class org.dartra.standard.StandardGame
Returns the currently active turn of the game.
getCurrentTurn() - Method in class org.dartra.standard.StandardMatch
Returns the currently active turn of the match.
getDAOFactory() - Method in interface org.dartra.framework.dao.DataAccessObject
Returns the factory that created this DAO.
getDartsSet() - Method in interface org.dartra.framework.Player
Returns the set of darts used by the player.
getDartsSet(int) - Method in interface org.dartra.framework.User
Returns the DartsSet at the given index.
getDartsSet(String, String, String, int) - Method in interface org.dartra.framework.dao.DartsSetDAO
Load the darts set with given properties from the persistent store.
getDartsSet() - Method in class org.dartra.standard.StandardPlayer
 
getDartsSet(int) - Method in class org.dartra.standard.StandardUser
 
getDartsSetWithId(Object) - Method in interface org.dartra.framework.dao.DartsSetDAO
Load the darts set with specified persistent store id.
getDartsSets() - Method in interface org.dartra.framework.User
Returns the collection of darts sets owned by the user.
getDartsSets() - Method in interface org.dartra.framework.dao.DartsSetDAO
Load all darts set objects available in the persistent store.
getDartsSets() - Method in class org.dartra.standard.StandardUser
 
getDistance(double, double, double, double) - Static method in class org.dartra.util.LocationTools
Returns the distance between the locations (x1, y1) and (x2, y2).
getEndTime() - Method in interface org.dartra.framework.Game
Returns the time at which the game ended, or -1 if it did not yet end.
getEndTime() - Method in class org.dartra.standard.StandardGame
 
getFirstPlayer() - Method in interface org.dartra.framework.Game
Returns the player that will be the first to throw.
getFirstPlayer() - Method in class org.dartra.standard.StandardGame
 
getGame() - Method in class org.dartra.framework.GameEvent
Get the game that signaled this event.
getGame(int) - Method in interface org.dartra.framework.Match
Return specified game of this match.
getGame() - Method in interface org.dartra.framework.Player
Returns the Game this player is participating in.
getGame() - Method in interface org.dartra.framework.Turn
Returns the game that this turn is part of.
getGame(int) - Method in class org.dartra.games.cricket.ScramCricketGame
 
getGame() - Method in class org.dartra.games.x01.StaticZoneSuggestionStrategy
 
getGame() - Method in interface org.dartra.games.x01.ZoneSuggestionStrategy
Get the x01 game that is using this strategy.
getGame(int) - Method in class org.dartra.standard.StandardMatch
 
getGame() - Method in class org.dartra.standard.StandardPlayer
 
getGame() - Method in class org.dartra.standard.StandardTurn
 
getGameEventListeners() - Method in interface org.dartra.framework.Game
Get the collection of game event listeners maintained by this object.
getGameEventListeners() - Method in class org.dartra.standard.StandardGame
 
getGameWithId(Object) - Method in interface org.dartra.framework.dao.GameDAO
Load the game with specified persistent store id.
getGames() - Method in interface org.dartra.framework.Match
Return a list of all games played in this match so far.
getGames() - Method in interface org.dartra.framework.dao.GameDAO
Load all game objects available in the persistent store.
getGames() - Method in class org.dartra.games.cricket.ScramCricketGame
 
getGames() - Method in class org.dartra.standard.StandardMatch
 
getGoals() - Method in class org.dartra.games.cricket.CricketGame
 
getGoals() - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 
getGoalsMap() - Method in class org.dartra.games.cricket.CricketGame
 
getHandicap() - Method in interface org.dartra.framework.Player
Returns the handicap setting for this player.
getHandicap() - Method in class org.dartra.standard.StandardPlayer
 
getHit() - Method in interface org.dartra.framework.Throw
Returns the hit information for the zone: where did the dart that was thrown hit the darts board?
getHit() - Method in class org.dartra.standard.StandardThrow
 
getId() - Method in interface org.dartra.framework.Persistent
Return the unique id of this object in the persistent store, or null if the object has not been persisted yet.
getId() - Method in class org.dartra.standard.PersistentObject
 
getInfo() - Method in class org.dartra.framework.GameEvent
Get the info object attached to this event, or null if no additional information is available.
getIntArrayProperty(String) - Method in class org.dartra.standard.StringProperties
Returns the value of named comma separated property as an int[].
getIntProperty(String) - Method in class org.dartra.standard.StringProperties
Returns the value of named property as an int.
getLastCompletedGame(int) - Method in class org.dartra.standard.visitor.LastCompletedGameVisitor
Returns the last completed game at given level of the game-match tree.
getLocation() - Method in interface org.dartra.framework.Hit
Returns the location that was hit, or null if the darts board was not hit (out-of-bounds).
getLocation() - Method in class org.dartra.standard.StandardHit
 
getLocation(double, double, double, double) - Static method in class org.dartra.util.LocationTools
Returns the Location at the given angle and distance from the given Location (x1, y1).
getMaxLevel() - Method in class org.dartra.standard.visitor.LastCompletedGameVisitor
Returns the level number for the game-match tree.
getMaxLevel() - Method in class org.dartra.standard.visitor.ScoreBoardVisitor
Returns the level number for the game-match tree.
getMessage() - Method in class org.dartra.framework.GameEvent
Get the event message.
getMultiplier() - Method in interface org.dartra.framework.Zone
Return the multiplier associated with the zone on the darts board.
getMultiplier() - Method in class org.dartra.standard.StandardZone
 
getName() - Method in interface org.dartra.framework.Board
Return the name of the board.
getName() - Method in interface org.dartra.framework.DartsSet
Return the name of the darts set.
getName() - Method in interface org.dartra.framework.Game
Return the name of this game.
getName() - Method in interface org.dartra.framework.Zone
Return the name of this zone.
getName() - Method in class org.dartra.standard.StandardBoard
 
getName() - Method in class org.dartra.standard.StandardDartsSet
 
getName() - Method in class org.dartra.standard.StandardGame
 
getName() - Method in class org.dartra.standard.StandardZone
 
getNrBirdie(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getNrBogey(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getNrBounceOuts(Player) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of bounce-outs given player had in the game.
getNrDoubleBogey(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getNrHoleInOne(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getNrHoles() - Method in class org.dartra.games.golf.GolfGame
 
getNrIllegalThrows(Player) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of illegals throws for given player in the game.
getNrOutOfBounds(Player) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of out-of-bounds throws for given player in the game.
getNrPerThree(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getNrThrows(Player) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of throws for given player in the game.
getNrThrowsIn(Player) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of throws for given player in the game that were in, that is: not out-of-bounds.
getNrTurns(Player) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of turns for given player in the game.
getNrZoneHits(Player, Zone) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of times the given player hit specified zone during the game.
getNumber() - Method in interface org.dartra.framework.Zone
Return the number associated with the zone on the darts board.
getNumber() - Method in class org.dartra.standard.StandardZone
 
getObjective() - Method in interface org.dartra.framework.Game
Get the current objective of the game: the current player should try to hit a zone of the board, or should end this turn.
getObjective() - Method in class org.dartra.games.baseball.BaseballGame
 
getObjective() - Method in class org.dartra.games.cricket.CricketGame
 
getObjective() - Method in class org.dartra.games.cricket.HalveItCricketGame
 
getObjective() - Method in class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart
 
getObjective() - Method in class org.dartra.games.cricket.ScramCricketGame
 
getObjective() - Method in class org.dartra.games.golf.GolfGame
 
getObjective() - Method in class org.dartra.games.practice.AroundTheClockGame
 
getObjective() - Method in class org.dartra.games.practice.TargetPracticeGame
 
getObjective(Player) - Method in class org.dartra.games.x01.StaticZoneSuggestionStrategy
 
getObjective() - Method in class org.dartra.games.x01.X01Game
 
getObjective(Player) - Method in interface org.dartra.games.x01.ZoneSuggestionStrategy
Get an objective for given player.
getObjective() - Method in class org.dartra.standard.StandardMatch
Get the current objective of the match.
getPassword() - Method in interface org.dartra.framework.User
Get the password of the user, probably in an incrypted form.
getPassword() - Method in class org.dartra.standard.StandardUser
 
getPercentageBirdie(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getPercentageBogey(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getPercentageDoubleBogey(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getPercentageHoleInOne(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getPercentagePerThree(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
getPlayer(int) - Method in interface org.dartra.framework.Game
Get a particular player participating in the game.
getPlayer() - Method in interface org.dartra.framework.Objective
Returns the player that should try to obtain the objective.
getPlayer(int) - Method in interface org.dartra.framework.Team
Get the specified member of this team.
getPlayer() - Method in interface org.dartra.framework.Turn
Returns the player involved in this turn.
getPlayer(int) - Method in class org.dartra.standard.StandardGame
 
getPlayer() - Method in class org.dartra.standard.StandardObjective
 
getPlayer(int) - Method in class org.dartra.standard.StandardTeam
 
getPlayer() - Method in class org.dartra.standard.StandardTurn
 
getPlayerArray() - Method in class org.dartra.standard.BestOfMatch
Returns the array with the players of this match.
getPlayerScore(Player) - Method in interface org.dartra.framework.Game
Get the current score for given player in this game.
getPlayerScore(Player) - Method in class org.dartra.games.baseball.BaseballGame
 
getPlayerScore(Player) - Method in class org.dartra.games.cricket.CricketGame
 
getPlayerScore(Player) - Method in class org.dartra.games.cricket.HalveItCricketGame
 
getPlayerScore(Player) - Method in class org.dartra.games.cricket.ScramCricketGame
 
getPlayerScore(Player) - Method in class org.dartra.games.golf.GolfGame
 
getPlayerScore(Player) - Method in class org.dartra.games.practice.AroundTheClockGame
 
getPlayerScore(Player) - Method in class org.dartra.games.practice.ClosestToZoneGame
 
getPlayerScore(Player) - Method in class org.dartra.games.practice.TargetPracticeGame
 
getPlayerScore(Player) - Method in class org.dartra.games.x01.X01Game
 
getPlayerScore(Player) - Method in class org.dartra.standard.BestOfMatch
Returns the player score for this match, this is the number of games the given player has won in this match.
getPlayerTurn(Player, int) - Method in interface org.dartra.framework.Game
Get the specified turn for given player.
getPlayerTurn(Player, int) - Method in class org.dartra.standard.StandardGame
 
getPlayerTurnHistory(Player) - Method in interface org.dartra.framework.Game
Returns a list representing the turn history of given player in this game.
getPlayerTurnHistory(Player) - Method in class org.dartra.standard.StandardGame
 
getPlayers() - Method in interface org.dartra.framework.Game
Returns the list of players participating in the game.
getPlayers() - Method in interface org.dartra.framework.Team
Returns the list of players that are members of this team.
getPlayers() - Method in class org.dartra.standard.StandardGame
 
getPlayers() - Method in class org.dartra.standard.StandardTeam
 
getProperties() - Method in class org.dartra.games.baseball.BaseballGame
 
getProperties() - Method in class org.dartra.games.cricket.CricketGame
 
getProperties() - Method in class org.dartra.games.cricket.CricketMatch
 
getProperties() - Method in class org.dartra.games.cricket.FreeChoiceCricketGame
 
getProperties() - Method in class org.dartra.games.cricket.SuicideCricketGame
 
getProperties() - Method in class org.dartra.games.golf.GolfGame
 
getProperties() - Method in class org.dartra.games.practice.AroundTheClockGame
 
getProperties() - Method in class org.dartra.games.practice.TargetPracticeGame
 
getProperties() - Method in class org.dartra.games.x01.X01Game
 
getProperties() - Method in class org.dartra.games.x01.X01Match
 
getProperties() - Method in class org.dartra.games.x01.X01Set
 
getProperties() - Method in class org.dartra.standard.BestOfMatch
 
getProperties() - Method in class org.dartra.standard.StandardGame
Subclasses should implement this to properly return their game specific properties (for instance the "start score" for an x01 game).
getProperty(String) - Method in class org.dartra.standard.StringProperties
Returns the value of named property, or null if the property is not known.
getPropertyNames() - Method in class org.dartra.standard.StringProperties
Get an iterator listing the known property names.
getScoreAtLevel(Player, int) - Method in class org.dartra.standard.visitor.ScoreBoardVisitor
Return the score for given player at specified level of the game-match tree.
getScoreForTurn(Turn, int) - Method in class org.dartra.games.golf.GolfScoreHelper
 
getSize() - Method in interface org.dartra.framework.Board
Returns the size of the board (diameter).
getSize() - Method in class org.dartra.standard.StandardBoard
 
getSpec() - Method in interface org.dartra.framework.DartsSet
Get a product specification for this darts set.
getSpec() - Method in class org.dartra.standard.StandardDartsSet
 
getStartScore() - Method in class org.dartra.games.x01.X01Game
 
getStartTime() - Method in interface org.dartra.framework.Game
Returns the time at which the game started, or -1 if it did not yet start.
getStartTime() - Method in class org.dartra.standard.StandardGame
 
getStringArrayProperty(String) - Method in class org.dartra.standard.StringProperties
Returns the value of named comma separated property as an String[].
getTargetZone() - Method in interface org.dartra.framework.Throw
Returns the zone this throw was targetted at.
getTargetZone() - Method in class org.dartra.games.practice.TargetPracticeGame
 
getTargetZone() - Method in class org.dartra.standard.StandardThrow
 
getTeam() - Method in interface org.dartra.framework.Player
Return the player's team, or null if the player is not a member of a team.
getTeam() - Method in class org.dartra.standard.StandardPlayer
 
getThrow(int) - Method in interface org.dartra.framework.Turn
Get specified throw of this turn.
getThrow(int) - Method in class org.dartra.standard.StandardTurn
 
getThrows() - Method in interface org.dartra.framework.Turn
Get this turn's throws.
getThrows() - Method in class org.dartra.standard.StandardTurn
 
getTimestamp() - Method in interface org.dartra.framework.Hit
Returns the time at which the dart hit the board.
getTimestamp() - Method in class org.dartra.standard.StandardHit
 
getTotalNrThrows() - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of throws in the game.
getTotalNrTurns() - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the total number of turns in the game.
getTurn(int) - Method in interface org.dartra.framework.Game
Get specified turn of the game.
getTurn() - Method in interface org.dartra.framework.Throw
Returns the turn this throw belows to.
getTurn(int) - Method in class org.dartra.standard.StandardGame
 
getTurn() - Method in class org.dartra.standard.StandardThrow
 
getTurnHistory() - Method in interface org.dartra.framework.Game
Returns a list containing all turns of the game so far.
getTurnHistory() - Method in class org.dartra.standard.StandardGame
 
getType() - Method in class org.dartra.framework.GameEvent
Get the type of this event.
getUser() - Method in interface org.dartra.framework.Player
Returns the User object associated with this player.
getUser(String) - Method in interface org.dartra.framework.dao.UserDAO
Load the user with specified user id.
getUser() - Method in class org.dartra.standard.StandardPlayer
 
getUserDartsSets(User) - Method in interface org.dartra.framework.dao.DartsSetDAO
Load all the darts sets of given user.
getUserGames(User) - Method in interface org.dartra.framework.dao.GameDAO
Load all game objects for those games in which given user participated.
getUserId() - Method in interface org.dartra.framework.User
Return the user id (which is unique) of this user.
getUserId() - Method in class org.dartra.standard.StandardUser
 
getUserName() - Method in interface org.dartra.framework.User
Returns the username of this user.
getUserName() - Method in class org.dartra.standard.StandardUser
 
getUserWithId(Object) - Method in interface org.dartra.framework.dao.UserDAO
Load the user with specified persistent store id.
getUsers() - Method in interface org.dartra.framework.dao.UserDAO
Load all user objects available in the persistent store.
getValue() - Method in interface org.dartra.framework.Score
Get the score value.
getValue() - Method in class org.dartra.standard.StandardScore
 
getWeight() - Method in interface org.dartra.framework.DartsSet
Returns the weight of a dart of this darts set in grams.
getWeight() - Method in class org.dartra.standard.StandardDartsSet
 
getWinner() - Method in interface org.dartra.framework.Game
Returns the player that won the game, or null if no winner has been established yet.
getWinner() - Method in class org.dartra.standard.StandardGame
 
getX() - Method in interface org.dartra.framework.Location
Return the x coordinate of this location.
getX() - Method in class org.dartra.standard.StandardLocation
 
getY() - Method in interface org.dartra.framework.Location
Return the y coordinate of this location.
getY() - Method in class org.dartra.standard.StandardLocation
 
getZone(String) - Method in interface org.dartra.framework.Board
Get the zone with given code, or null if there is no such zone.
getZone(Location) - Method in interface org.dartra.framework.Board
Get the zone containing given location on the board, or null if there is no such zone.
getZone() - Method in interface org.dartra.framework.Hit
Returns the zone that was hit, or null if the darts board was not hit (out-of-bounds).
getZone() - Method in interface org.dartra.framework.Objective
Return the zone that should be targetted.
getZone(String) - Method in class org.dartra.standard.StandardBoard
 
getZone(Location) - Method in class org.dartra.standard.StandardBoard
 
getZone(int, int, boolean) - Method in class org.dartra.standard.StandardBoard
Get the zone with given numer and multiplier.
getZone() - Method in class org.dartra.standard.StandardHit
 
getZone() - Method in class org.dartra.standard.StandardObjective
 
getZoneAccuracyPercentage(Player) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the zone accuracy for given player in the game.
getZonePercentage(Player, Zone) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Get the percentage of the throws for given player that hit given zone.
getZoneSuggestionStrategy() - Method in class org.dartra.games.x01.X01Game
 
getZones() - Method in interface org.dartra.framework.Board
Get the collection of zones for this board.
getZones() - Method in class org.dartra.standard.StandardBoard
 
goalsMap - Variable in class org.dartra.games.cricket.CricketGame
 

H

HOLE_IN_ONE - Static variable in class org.dartra.games.golf.GolfScoreHelper
 
HalveItCricketGame - class org.dartra.games.cricket.HalveItCricketGame.
Cricket version, where all darts in a turn are aimed at the goal for that turn.
HalveItCricketGame(StandardBoard, Player[]) - Constructor for class org.dartra.games.cricket.HalveItCricketGame
 
HalveItCricketGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.HalveItCricketGame
 
HalveItCricketGame(String, StandardBoard, Player[], String[]) - Constructor for class org.dartra.games.cricket.HalveItCricketGame
 
Hit - interface org.dartra.framework.Hit.
Hit of a dart on a darts board.
hashCode() - Method in class org.dartra.standard.StandardHit
 
hashCode() - Method in class org.dartra.standard.StandardLocation
 
hashCode() - Method in class org.dartra.standard.StandardScore
 
highestScoreNumber(Player) - Method in class org.dartra.games.cricket.CricketGame
 
highestScoreZone(Player) - Method in class org.dartra.games.cricket.CricketGame
 
hits(Player) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 
hitsForGoal(Player, String) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 

I

ILLEGAL_THROW - Static variable in class org.dartra.framework.GameEvent
A game event of this type is signaled when the last hit registered with the game resulted in an illegal throw, for instance a bust.
illegalThrow(GameEvent) - Method in class org.dartra.framework.GameEventAdapter
 
illegalThrow(GameEvent) - Method in interface org.dartra.framework.GameEventListener
Called when the player executed and illegal throw.
init(Connection) - Method in interface org.dartra.framework.dao.DataAccessObject
Initialize this DAO with given connection to the data source.
initDataSource(DataSource) - Method in interface org.dartra.framework.dao.DAOFactory
Initialize given data source so that it can be used by the DAOs created by this factory.
isBounceOut() - Method in interface org.dartra.framework.Hit
Returns whether or not this hit was a bounce-out: the dart hit the board but it bounced out and fell on the floor.
isBounceOut() - Method in class org.dartra.standard.StandardHit
 
isClosedByOtherPlayer(int, Player) - Method in class org.dartra.games.cricket.CricketGame
 
isClosedByPlayer(int, Player) - Method in class org.dartra.games.cricket.CricketGame
 
isComposed() - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
Returns whether or not this visitor composes match data.
isDoubleIn() - Method in class org.dartra.games.x01.X01Game
 
isDoubleOut() - Method in class org.dartra.games.x01.X01Game
 
isEndTurn() - Method in interface org.dartra.framework.Objective
Returns true if the player should end his turn.
isEndTurn() - Method in class org.dartra.standard.StandardObjective
 
isFemale() - Method in interface org.dartra.framework.User
Returns true when this user is female, false otherwise (for males).
isFemale() - Method in class org.dartra.standard.StandardUser
 
isIllegal() - Method in interface org.dartra.framework.Hit
Returns whether or not this was a legal hit.
isIllegal() - Method in class org.dartra.standard.StandardHit
 
isInner() - Method in class org.dartra.standard.StandardZone
Returns whether or not this zone is part of the inner area of a standard darts board (inside the trebles ring).
isLeftHanded() - Method in interface org.dartra.framework.User
Is this a left handed user?
isLeftHanded() - Method in class org.dartra.standard.StandardUser
 
isLocationCalculated() - Method in interface org.dartra.framework.Hit
Returns whether or not the location for this hit was calculated or provided explicitly.
isLocationCalculated() - Method in class org.dartra.standard.StandardHit
 
isOutOfBounds() - Method in interface org.dartra.framework.Hit
Returns whether or not this hit actually hit the darts board.
isOutOfBounds() - Method in class org.dartra.standard.StandardHit
 
isOuter() - Method in class org.dartra.standard.StandardZone
Returns whether or not this zone is part of the outer area of a standard darts board (outside the trebles ring).
isUsePoints() - Method in class org.dartra.games.cricket.CricketGame
 
isValid() - Method in interface org.dartra.framework.Throw
Return whether or not this is a valid throw.
isValid() - Method in interface org.dartra.framework.Turn
Return whether or not this was a valid turn.
isValid() - Method in class org.dartra.standard.StandardThrow
 
isValid() - Method in class org.dartra.standard.StandardTurn
 

L

LastCompletedGameVisitor - class org.dartra.standard.visitor.LastCompletedGameVisitor.
Visitor that searches for the last completed game (or set) at every level of the game-match tree.
LastCompletedGameVisitor() - Constructor for class org.dartra.standard.visitor.LastCompletedGameVisitor
 
Location - interface org.dartra.framework.Location.
Location on a darts board.
LocationTools - class org.dartra.util.LocationTools.
This class provides tools for working with locations (x-y tuples).

M

MATCH_GAME_CHANGED - Static variable in class org.dartra.framework.GameEvent
A game event of this type is signaled when the current game of a darts match has changed.
Match - interface org.dartra.framework.Match.
A darts match.
MathTools - class org.dartra.util.MathTools.
Math tools for the J2ME CLDC 1.1 configuration.
matchGameChanged(GameEvent) - Method in class org.dartra.framework.GameEventAdapter
 
matchGameChanged(GameEvent) - Method in interface org.dartra.framework.GameEventListener
Called when the current game of a match changes.
multiplierToClose(int, Player) - Method in class org.dartra.games.cricket.CricketGame
 
multiplierToClose(int, Player) - Method in class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart
 
multiplierToClose(int, Player) - Method in class org.dartra.games.cricket.SuicideCricketGame
 

N

NINE_HOLES - Static variable in class org.dartra.games.golf.GolfGame
 
nrBirdie - Variable in class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics
 
nrBogey - Variable in class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics
 
nrDoubleBogey - Variable in class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics
 
nrHoleInOne - Variable in class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics
 
nrParThree - Variable in class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics
 

O

Objective - interface org.dartra.framework.Objective.
Objective of a player in a game: hit a particular zone of the board or end the turn.
org.dartra.framework - package org.dartra.framework
This package defines the core DarTra framework.
org.dartra.framework.dao - package org.dartra.framework.dao
This package defines data access interfaces (DOA's, Data Access Objects) to persist the data captured by the core framework.
org.dartra.games.baseball - package org.dartra.games.baseball
Implementation of the classic baseball darts game.
org.dartra.games.cricket - package org.dartra.games.cricket
Implementation of the classic cricket darts game.
org.dartra.games.cricket.visitor - package org.dartra.games.cricket.visitor
Visitors processing cricket darts game data.
org.dartra.games.golf - package org.dartra.games.golf
Implementation of the classic golf darts game.
org.dartra.games.golf.visitor - package org.dartra.games.golf.visitor
Visitors processing golf darts game data.
org.dartra.games.practice - package org.dartra.games.practice
A package of practice darts games.
org.dartra.games.x01 - package org.dartra.games.x01
Implementation of the classic x01 darts game.
org.dartra.standard - package org.dartra.standard
Standard implementation of the DarTra framework.
org.dartra.standard.visitor - package org.dartra.standard.visitor
Visitors to process and analyse standard darts games.
org.dartra.util - package org.dartra.util
General purpose utility classes.

P

PAR_THREE - Static variable in class org.dartra.games.golf.GolfScoreHelper
 
PLAYER_CHANGED - Static variable in class org.dartra.framework.GameEvent
A game event of this type is signaled when the current player of a darts game has changed.
Persistent - interface org.dartra.framework.Persistent.
Interface implemented by all persistent objects of the framework.
PersistentObject - class org.dartra.standard.PersistentObject.
Abstract base class for persistent objects.
PersistentObject() - Constructor for class org.dartra.standard.PersistentObject
 
Player - interface org.dartra.framework.Player.
A user participating in a game.
PrintfFormat - class org.dartra.util.PrintfFormat.
PrintfFormat allows the formatting of an array of objects embedded within a string.
PrintfFormat(String) - Constructor for class org.dartra.util.PrintfFormat
Constructs an array of control specifications possibly preceded, separated, or followed by ordinary strings.
PrintfFormat(char, char, String) - Constructor for class org.dartra.util.PrintfFormat
Constructs an array of control specifications possibly preceded, separated, or followed by ordinary strings.
playerChanged(GameEvent) - Method in class org.dartra.framework.GameEventAdapter
 
playerChanged(GameEvent) - Method in interface org.dartra.framework.GameEventListener
Called when the current player of a game changes.
playerStats - Variable in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
playerStats - Variable in class org.dartra.standard.visitor.ThrowStatisticsVisitor
 
points(Player) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 
pointsForGoal(Player, String) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 

R

registerHit(Zone, Hit) - Method in interface org.dartra.framework.Game
Register the hit of a dart on the board.
registerHit(Zone, Hit) - Method in class org.dartra.games.baseball.BaseballGame
 
registerHit(Zone, Hit) - Method in class org.dartra.games.cricket.CricketGame
 
registerHit(Zone, Hit) - Method in class org.dartra.games.cricket.ScramCricketGame
 
registerHit(Zone, Hit) - Method in class org.dartra.games.golf.GolfGame
 
registerHit(Zone, Hit) - Method in class org.dartra.games.practice.AroundTheClockGame
 
registerHit(Zone, Hit) - Method in class org.dartra.games.practice.ClosestToZoneGame
 
registerHit(Zone, Hit) - Method in class org.dartra.games.practice.TargetPracticeGame
 
registerHit(Zone, Hit) - Method in class org.dartra.games.x01.X01Game
 
registerHit(Zone, Hit) - Method in class org.dartra.standard.StandardMatch
Register a hit with the match.
removeGameEventListener(GameEventListener) - Method in interface org.dartra.framework.Game
Remove given game event listener from the list of listeners maintained by this object.
removeGameEventListener(GameEventListener) - Method in class org.dartra.standard.StandardGame
 
rollback() - Method in interface org.dartra.framework.dao.Connection
Rollback all changes since the last commit.

S

SCORE_CHANGED - Static variable in class org.dartra.framework.GameEvent
A game event of this type is signaled when the score for any of the players of a darts game has changed.
Score - interface org.dartra.framework.Score.
A player's score.
ScoreBoardVisitor - class org.dartra.standard.visitor.ScoreBoardVisitor.
Visitor to gather score board data from a game-match tree.
ScoreBoardVisitor() - Constructor for class org.dartra.standard.visitor.ScoreBoardVisitor
 
ScramCricketGame - class org.dartra.games.cricket.ScramCricketGame.
CricketGame version where one player is the blocker, and the other one is the scorer.
ScramCricketGame(StandardBoard, Player[]) - Constructor for class org.dartra.games.cricket.ScramCricketGame
 
ScramCricketGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.ScramCricketGame
 
ScramCricketGame.ScramCricketGamePart - class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart.
One part of the ScramCricketGame; Player 0 is the blocker and player 1 the scorer
ScramCricketGame.ScramCricketGamePart(StandardBoard, Player[], String[]) - Constructor for class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart
 
StandardBoard - class org.dartra.standard.StandardBoard.
A standard darts board with 20 numbers, a doubles circle, a triples circle and a single and double bull.
StandardBoard() - Constructor for class org.dartra.standard.StandardBoard
 
StandardDartsSet - class org.dartra.standard.StandardDartsSet.
Standard implementation of a darts set.
StandardDartsSet(String, String, String, int) - Constructor for class org.dartra.standard.StandardDartsSet
 
StandardGame - class org.dartra.standard.StandardGame.
Standard base implementation of the Game interface.
StandardGame(String, Board) - Constructor for class org.dartra.standard.StandardGame
 
StandardGame(String, Board, Player[]) - Constructor for class org.dartra.standard.StandardGame
 
StandardHit - class org.dartra.standard.StandardHit.
A hit on a standard darts board.
StandardHit(boolean, boolean, long) - Constructor for class org.dartra.standard.StandardHit
Create an out-of-bounds hit, possibly a bounce-out.
StandardHit(Location, Zone, boolean, long, boolean) - Constructor for class org.dartra.standard.StandardHit
Create a hit that actually hit the board.
StandardLocation - class org.dartra.standard.StandardLocation.
Location on a standard darts board.
StandardLocation(double, double) - Constructor for class org.dartra.standard.StandardLocation
 
StandardMatch - class org.dartra.standard.StandardMatch.
Standard implementation of the Match interface.
StandardMatch(String, Board) - Constructor for class org.dartra.standard.StandardMatch
 
StandardMatch(String, Board, Player[]) - Constructor for class org.dartra.standard.StandardMatch
 
StandardObjective - class org.dartra.standard.StandardObjective.
Standard implementation of the Objective interface.
StandardObjective(Player, Zone) - Constructor for class org.dartra.standard.StandardObjective
 
StandardObjective(Player) - Constructor for class org.dartra.standard.StandardObjective
 
StandardPlayer - class org.dartra.standard.StandardPlayer.
Standard implementation of the Player interface.
StandardPlayer(User, int, DartsSet) - Constructor for class org.dartra.standard.StandardPlayer
 
StandardScore - class org.dartra.standard.StandardScore.
Standard implementation of the Score interface.
StandardScore(int) - Constructor for class org.dartra.standard.StandardScore
 
StandardTeam - class org.dartra.standard.StandardTeam.
Standard implementation of the Team interface.
StandardTeam(User, int, Player[]) - Constructor for class org.dartra.standard.StandardTeam
 
StandardThrow - class org.dartra.standard.StandardThrow.
A standard throw implementation.
StandardThrow(Turn, Zone, Hit) - Constructor for class org.dartra.standard.StandardThrow
 
StandardTurn - class org.dartra.standard.StandardTurn.
Standard implementation of the Turn interface.
StandardTurn(Game, Player) - Constructor for class org.dartra.standard.StandardTurn
 
StandardUser - class org.dartra.standard.StandardUser.
Standard implementation of the User interface.
StandardUser(String, String, String) - Constructor for class org.dartra.standard.StandardUser
Create a new user with given id, name and password (unencrypted).
StandardUser(String, String, String, boolean, boolean) - Constructor for class org.dartra.standard.StandardUser
Create a new user with given id, name and password (unencrypted).
StandardUser(String, String, String, boolean, boolean, boolean) - Constructor for class org.dartra.standard.StandardUser
Create a new user with given id, name and password.
StandardZone - class org.dartra.standard.StandardZone.
Zone of a standard darts board.
StandardZone(Board, String, String, int, int, Location) - Constructor for class org.dartra.standard.StandardZone
Create a new standard zone.
StaticZoneSuggestionStrategy - class org.dartra.games.x01.StaticZoneSuggestionStrategy.
Simple x01 zone suggestion algorithm that uses static out-shot tables.
StaticZoneSuggestionStrategy(X01Game) - Constructor for class org.dartra.games.x01.StaticZoneSuggestionStrategy
 
StringProperties - class org.dartra.standard.StringProperties.
Simple class to hold properties (name-value) pairs.
StringProperties() - Constructor for class org.dartra.standard.StringProperties
Create an empty collection of string name-value properties.
StringProperties(String) - Constructor for class org.dartra.standard.StringProperties
Create a collection of name-value properties based on the properties present in given string.
StringTools - class org.dartra.util.StringTools.
Static utility methods dealing with strings.
SuicideCricketGame - class org.dartra.games.cricket.SuicideCricketGame.
Cricket variation without points, where you have to hit each number exactly three times.
SuicideCricketGame(StandardBoard, Player[]) - Constructor for class org.dartra.games.cricket.SuicideCricketGame
 
SuicideCricketGame(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.cricket.SuicideCricketGame
 
score(int[]) - Method in class org.dartra.games.cricket.CricketGame
 
scoreBoard - Variable in class org.dartra.games.golf.visitor.GolfStatisticsVisitor.PlayerStatistics
 
scoreBoard(Player) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
scoreChanged(GameEvent) - Method in class org.dartra.framework.GameEventAdapter
 
scoreChanged(GameEvent) - Method in interface org.dartra.framework.GameEventListener
Called when the score of a game changes.
setAllProperties(StringProperties) - Method in class org.dartra.standard.StringProperties
Add all properties of given properties collection to this collection;
setEndTime(long) - Method in class org.dartra.standard.StandardGame
 
setFirstPlayer(Player) - Method in interface org.dartra.framework.Game
Set the player that will be the first to throw.
setFirstPlayer(Player) - Method in class org.dartra.standard.StandardGame
 
setGame(Game) - Method in interface org.dartra.framework.Player
Set the game this user is participating in.
setGame(Game) - Method in class org.dartra.standard.StandardPlayer
 
setGame(Game) - Method in class org.dartra.standard.StandardTeam
 
setGoals(String[]) - Method in class org.dartra.games.cricket.CricketGame
 
setId(Object) - Method in interface org.dartra.framework.Persistent
Set the unique id of this object in the persistent store.
setId(Object) - Method in class org.dartra.standard.PersistentObject
 
setPassword(String) - Method in interface org.dartra.framework.User
Set the password of the user.
setPassword(String) - Method in class org.dartra.standard.StandardUser
 
setPlayers(Player[]) - Method in class org.dartra.standard.StandardGame
Set the players of the game.
setProperty(String, String) - Method in class org.dartra.standard.StringProperties
Set named property to given value.
setProperty(String, boolean) - Method in class org.dartra.standard.StringProperties
Set named property to given value.
setProperty(String, int) - Method in class org.dartra.standard.StringProperties
Set named property to given value.
setProperty(String, int[]) - Method in class org.dartra.standard.StringProperties
Set named property to given value.
setProperty(String, String[]) - Method in class org.dartra.standard.StringProperties
Set named property to given value.
setStartTime(long) - Method in class org.dartra.standard.StandardGame
 
setTargetZone(Zone) - Method in class org.dartra.games.practice.TargetPracticeGame
 
setTeam(Team) - Method in interface org.dartra.framework.Player
Set the team that this player is a member of, or null if this player is not a member of a team.
setTeam(Team) - Method in class org.dartra.standard.StandardPlayer
 
setUsePoints(boolean) - Method in class org.dartra.games.cricket.CricketGame
 
setUserName(String) - Method in interface org.dartra.framework.User
Set the username of this user.
setUserName(String) - Method in class org.dartra.standard.StandardUser
 
setValid(boolean) - Method in interface org.dartra.framework.Throw
Set whether or not this is a valid throw.
setValid(boolean) - Method in interface org.dartra.framework.Turn
Set whether or not this was a valid turn.
setValid(boolean) - Method in class org.dartra.standard.StandardThrow
 
setValid(boolean) - Method in class org.dartra.standard.StandardTurn
 
setWinner(Player) - Method in interface org.dartra.framework.Game
Set the player that won the game.
setWinner(Player) - Method in class org.dartra.standard.StandardGame
Set the winner of the game.
setZoneSuggestionStrategy(ZoneSuggestionStrategy) - Method in class org.dartra.games.x01.X01Game
 
signal() - Method in class org.dartra.framework.GameEvent
Signal a game event to all interested parties, that is, game event listeners known to the source object.
size() - Method in class org.dartra.standard.StringProperties
Returns the number of known properties.
sprintf(Object[]) - Method in class org.dartra.util.PrintfFormat
Format an array of objects.
sprintf() - Method in class org.dartra.util.PrintfFormat
Format nothing.
sprintf(int) - Method in class org.dartra.util.PrintfFormat
Format an int.
sprintf(long) - Method in class org.dartra.util.PrintfFormat
Format an long.
sprintf(double) - Method in class org.dartra.util.PrintfFormat
Format a double.
sprintf(String) - Method in class org.dartra.util.PrintfFormat
Format a String.
sprintf(Object) - Method in class org.dartra.util.PrintfFormat
Format an Object.
start() - Method in interface org.dartra.framework.Game
Start the game.
start() - Method in class org.dartra.games.cricket.ScramCricketGame
Starts the scram game.
start() - Method in class org.dartra.standard.BestOfMatch
Starts the best-of match.
start() - Method in class org.dartra.standard.StandardGame
Start the game.
start() - Method in class org.dartra.standard.StandardMatch
Subclasses should redefine the start method appropriately.
startNewGame() - Method in class org.dartra.games.cricket.ScramCricketGame
Starts a new game in this match.
startNewGame() - Method in class org.dartra.standard.BestOfMatch
Starts a new game in this match.
suggestZone(int, int) - Method in class org.dartra.games.cricket.CricketGame
 
suggestZone(int, int) - Method in class org.dartra.games.cricket.ScramCricketGame.ScramCricketGamePart
 
suggestZone(int) - Method in class org.dartra.games.x01.StaticZoneSuggestionStrategy
 

T

TargetPracticeGame - class org.dartra.games.practice.TargetPracticeGame.
Simple game of target practice: try to hit the target zone as quickly as possible.
TargetPracticeGame(String, Board, Player[], StringProperties) - Constructor for class org.dartra.games.practice.TargetPracticeGame
 
TargetPracticeGame(String, Board, Player[], Zone) - Constructor for class org.dartra.games.practice.TargetPracticeGame
 
TargetPracticeGame(Board, Player[], StringProperties) - Constructor for class org.dartra.games.practice.TargetPracticeGame
 
TargetPracticeGame(Board, Player[], Zone) - Constructor for class org.dartra.games.practice.TargetPracticeGame
 
Team - interface org.dartra.framework.Team.
A team of players.
Throw - interface org.dartra.framework.Throw.
The throw of a dart by a player in a particular turn.
ThrowStatisticsVisitor - class org.dartra.standard.visitor.ThrowStatisticsVisitor.
A game visitor that gathers throw related statistics for a standard game.
ThrowStatisticsVisitor(boolean) - Constructor for class org.dartra.standard.visitor.ThrowStatisticsVisitor
Create a new throw statistics visitor.
Tournament - interface org.dartra.framework.Tournament.
A darts tournament, consisting of several matches.
Turn - interface org.dartra.framework.Turn.
The turn of a player in a game.
toArray(Vector, Object[]) - Static method in class org.dartra.util.CollectionTools
Copies given list into given array and returns the resulting array.
toString() - Method in class org.dartra.framework.GameEvent
 
toString() - Method in class org.dartra.framework.dao.DataAccessException
 
toString() - Method in class org.dartra.games.cricket.CricketGame
 
toString() - Method in class org.dartra.games.cricket.CricketMatch
 
toString() - Method in class org.dartra.games.cricket.CutThroatCricketGame
 
toString() - Method in class org.dartra.games.golf.GolfGame
 
toString() - Method in class org.dartra.games.practice.TargetPracticeGame
 
toString() - Method in class org.dartra.games.x01.X01Game
 
toString() - Method in class org.dartra.standard.BestOfMatch
 
toString() - Method in class org.dartra.standard.StandardBoard
 
toString() - Method in class org.dartra.standard.StandardDartsSet
 
toString() - Method in class org.dartra.standard.StandardGame
 
toString() - Method in class org.dartra.standard.StandardHit
 
toString() - Method in class org.dartra.standard.StandardLocation
 
toString() - Method in class org.dartra.standard.StandardObjective
 
toString() - Method in class org.dartra.standard.StandardPlayer
 
toString() - Method in class org.dartra.standard.StandardScore
 
toString() - Method in class org.dartra.standard.StandardTeam
 
toString() - Method in class org.dartra.standard.StandardThrow
 
toString() - Method in class org.dartra.standard.StandardTurn
 
toString() - Method in class org.dartra.standard.StandardUser
 
toString() - Method in class org.dartra.standard.StandardZone
 
toString() - Method in class org.dartra.standard.StringProperties
Returns a string representation of the properties contained by this object.
tokenizeString(String, char) - Static method in class org.dartra.util.StringTools
Similar to the J2SE java.util.StringTokenizer.
totalScore(Player) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 
turnOver() - Method in class org.dartra.games.cricket.CricketGame
 

U

User - interface org.dartra.framework.User.
A unique user of the system.
UserDAO - interface org.dartra.framework.dao.UserDAO.
Data access object for users.
undoHit() - Method in interface org.dartra.framework.Game
Undo the effect of the last hit that was registered via registerHit() method.
undoHit() - Method in class org.dartra.standard.StandardGame
Undo the effect of the last hit.
undoHit() - Method in class org.dartra.standard.StandardMatch
Undo the last hit of the match.
updateUser(User) - Method in interface org.dartra.framework.dao.UserDAO
Update the information of given user in the persistent store.

V

visitGame(Game) - Method in interface org.dartra.framework.GameVisitor
Process game data.
visitGame(Game) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 
visitGame(Game) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
visitGame(Game) - Method in class org.dartra.standard.visitor.LastCompletedGameVisitor
 
visitGame(Game) - Method in class org.dartra.standard.visitor.ScoreBoardVisitor
 
visitGame(Game) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
 
visitMatch(Match) - Method in interface org.dartra.framework.GameVisitor
Process match data.
visitMatch(Match) - Method in class org.dartra.games.cricket.visitor.CricketScoreVisitor
 
visitMatch(Match) - Method in class org.dartra.games.golf.visitor.GolfStatisticsVisitor
 
visitMatch(Match) - Method in class org.dartra.standard.visitor.LastCompletedGameVisitor
 
visitMatch(Match) - Method in class org.dartra.standard.visitor.ScoreBoardVisitor
 
visitMatch(Match) - Method in class org.dartra.standard.visitor.ThrowStatisticsVisitor
 

W

wasClosedByOtherPlayer(Hashtable, int, Player) - Method in class org.dartra.games.cricket.CricketGame
 
wasClosedByPlayer(Hashtable, int, Player) - Method in class org.dartra.games.cricket.CricketGame
 

X

X01Game - class org.dartra.games.x01.X01Game.
An x01 darts game.
X01Game(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.x01.X01Game
 
X01Game(StandardBoard, Player[], int, boolean, boolean) - Constructor for class org.dartra.games.x01.X01Game
 
X01Match - class org.dartra.games.x01.X01Match.
An x01 darts match.
X01Match(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.x01.X01Match
 
X01Match(StandardBoard, Player[], int, int, int, boolean, boolean) - Constructor for class org.dartra.games.x01.X01Match
 
X01Set - class org.dartra.games.x01.X01Set.
Set of an x01 match.
X01Set(StandardBoard, Player[], StringProperties) - Constructor for class org.dartra.games.x01.X01Set
 
X01Set(StandardBoard, Player[], int, int, boolean, boolean) - Constructor for class org.dartra.games.x01.X01Set
 

Z

Zone - interface org.dartra.framework.Zone.
A zone of a darts board.
ZoneSuggestionStrategy - interface org.dartra.games.x01.ZoneSuggestionStrategy.
Interface for all algorithms that can suggest target zones for an x01 darts game.
zoneToCloseHighestOpenForPlayer(Player) - Method in class org.dartra.games.cricket.CricketGame
 

A B C D E F G H I L M N O P R S T U V W X Z