|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.common.ArgumentList
ks.common.command.Command
ks.protocol.CreateCommand
Class to represent the command to create a table.
Constructor Summary | |
CreateCommand()
Default CreateCommand Constructor. |
Method Summary | |
static java.lang.String |
failureCreate(java.lang.String tableName,
java.lang.String reason)
Error generated when a failure occurs when creating the table. |
java.lang.String |
getAccessType()
Return access type of table. |
int |
getGameIncrement()
Return Game Increment (of seed) |
int |
getGameLength()
Return length of game in seconds |
int |
getNumPlayers()
Return number of players for game. |
int |
getSeed()
Return seed for game. |
java.lang.String |
getTableName()
Return name of table. |
java.lang.String |
getTableType()
Return type of table. |
void |
setAccessType(java.lang.String accType)
Set the access type for this table. |
void |
setGameIncrement(int newGameIncrement)
Set the game increment. |
void |
setGameLength(int newGameLength)
Set Game Length. |
void |
setNumPlayers(int newNumPlayers)
Set the number of players for desired game. |
void |
setSeed(int newSeed)
Set seed value for this create game request. |
void |
setTableName(java.lang.String newTableName)
Set table name. |
void |
setTableType(java.lang.String newTableType)
Set table type. |
static java.lang.String |
tableAlreadyExists(java.lang.String tableName)
Error generated when table already exists |
Methods inherited from class ks.common.command.Command |
formatString, isError, isQuittable, setQuittable, toString |
Methods inherited from class ks.common.ArgumentList |
addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, clearArg, clearArg, clearArgMulti, clearArgMulti, getArg, getArg, getArgMulti, getArgMulti, multiArgs, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, setArg, setArg, singleArgs |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CreateCommand()
Method Detail |
public static final java.lang.String failureCreate(java.lang.String tableName, java.lang.String reason)
public java.lang.String getAccessType()
public int getGameIncrement()
public int getGameLength()
public int getNumPlayers()
public int getSeed()
public java.lang.String getTableName()
public java.lang.String getTableType()
public void setAccessType(java.lang.String accType)
accType
- Stringpublic void setGameIncrement(int newGameIncrement)
newGameIncrement
- intpublic void setGameLength(int newGameLength)
newGameLength
- intpublic void setNumPlayers(int newNumPlayers)
newNumPlayers
- intpublic void setSeed(int newSeed)
newSeed
- intpublic void setTableName(java.lang.String newTableName)
newTableName
- java.lang.Stringpublic void setTableType(java.lang.String newTableType)
newTableType
- java.lang.Stringpublic static final java.lang.String tableAlreadyExists(java.lang.String tableName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |