|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.module.th.shc.StartingHandChart
bot.module.th.shc.TableCSV
public class TableCSV
CSV startinghandchart custom table by importing own csv file
| Field Summary | |
|---|---|
(package private) int[][][][] |
csvArr
helper Array to store csv data temporary - card rows * numPosition * numCalls * numRaises |
private static java.lang.String |
csvPath
|
private static int |
numCalls
table offers 0-4 Calls |
private static int |
numPosition
table wants the 5 standard position classes 0-4 |
private static int |
numRaises
table offers 0-3 Raises |
| Fields inherited from class bot.module.th.shc.StartingHandChart |
|---|
rank, suite, table |
| Constructor Summary | |
|---|---|
TableCSV(java.lang.String csvDat)
Constructor calls super of StartingHandChart |
|
| Method Summary | |
|---|---|
private int |
betStringToInt(java.lang.String s)
converts csv's String to int |
private void |
createTable()
fills the table in defined order from helperArray |
private void |
fixTable()
correct priority of raises over calls into table |
private int[][][][] |
importCSV(java.lang.String csvDat)
parses csv file |
| Methods inherited from class bot.module.th.shc.StartingHandChart |
|---|
getProposal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String csvPath
private static final int numPosition
private static final int numCalls
private static final int numRaises
int[][][][] csvArr
| Constructor Detail |
|---|
public TableCSV(java.lang.String csvDat)
csvDat - - myTable.csv| Method Detail |
|---|
private int[][][][] importCSV(java.lang.String csvDat)
csv_dat - - myTable.csv
private int betStringToInt(java.lang.String s)
s - - String from csv (e.g. "RAISE4")
private void createTable()
private void fixTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||