public abstract class AbstractHost extends Object implements IHost
| Modifier and Type | Field and Description |
|---|---|
protected com.github.siwenyan.common.MyEnvironment |
myEnvironment |
protected Map<String,ITable> |
tablesByName |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHost(Scanner in,
PrintStream feedback) |
| Modifier and Type | Method and Description |
|---|---|
void |
dying() |
ITable |
getCurrentTable() |
com.github.siwenyan.common.MyEnvironment |
getMyEnvironment() |
ITable |
getTable(String tableName) |
Set<String> |
getTableNames() |
Map<String,ITable> |
getTables() |
com.github.siwenyan.dish_parser.ISupply |
input(Scanner scanner) |
abstract void |
inviteExternalGuests(String tableName) |
abstract com.github.siwenyan.dish_parser.ISupply |
loadSupply(Scanner loader) |
void |
print(ITable table,
String text) |
void |
println(ITable table,
String text) |
com.github.siwenyan.dish_parser.ISupply |
quest() |
void |
register(ITable myTable) |
String |
reportTables() |
void |
resupply(com.github.siwenyan.dish_parser.ISupply supply,
String targetTableName) |
void |
setCurrentTable(String name) |
void |
start(String[] args) |
void |
unregisterTable(ITable table) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTable, defaultCook, getTemplateDish, getTemplateSupply, getTemplateSupply, initSupplyprotected AbstractHost(Scanner in, PrintStream feedback)
public com.github.siwenyan.dish_parser.ISupply input(Scanner scanner)
public abstract com.github.siwenyan.dish_parser.ISupply loadSupply(Scanner loader) throws com.github.siwenyan.dish_parser.BadSmellException
loadSupply in interface IHostcom.github.siwenyan.dish_parser.BadSmellExceptionpublic abstract void inviteExternalGuests(String tableName)
public void unregisterTable(ITable table)
unregisterTable in interface IHostpublic String reportTables()
reportTables in interface IHostpublic ITable getCurrentTable()
getCurrentTable in interface IHostpublic void setCurrentTable(String name) throws com.github.siwenyan.common.NGException
setCurrentTable in interface IHostcom.github.siwenyan.common.NGExceptionpublic com.github.siwenyan.common.MyEnvironment getMyEnvironment()
getMyEnvironment in interface IHostpublic void resupply(com.github.siwenyan.dish_parser.ISupply supply,
String targetTableName)
throws com.github.siwenyan.dish_parser.BadSmellException
public Set<String> getTableNames()
getTableNames in interface IHostCopyright © 2020. All rights reserved.